@john P: thanx for the above!
Sorry 4 da stupid question I'm about to ask:
- so you mean I can write the chip with your Hex file the way it is and it will run? I'm asking this coz they don't have da same pins configuration...
- another thing is I've never program the chip straight from the hex file...would you mind showing me the steps to do so? Coz what I usually do is: I have my asm file, build it then pug errthang and selecting pickit3 programmer then click the program button...and that's it!
- regarding your code, you have configure port c as output 'set_tris_c(ob00000000)' and I can see somewhere u initialise portc with zero 'portc = 0'
And I'm wondering what's 'portc_shadow = 0xF8' for??
And what's the 'set_tris_a(0b00111111) and set_tris_b(0b00010000)' for?
Sorry for being a pain...what I want is trying your hex file and see ie run...also make my assembly version work...then tomorrow I can talk about another story!
I'll post my version right after your comment!
Regards,
Sorry 4 da stupid question I'm about to ask:
- so you mean I can write the chip with your Hex file the way it is and it will run? I'm asking this coz they don't have da same pins configuration...
- another thing is I've never program the chip straight from the hex file...would you mind showing me the steps to do so? Coz what I usually do is: I have my asm file, build it then pug errthang and selecting pickit3 programmer then click the program button...and that's it!
- regarding your code, you have configure port c as output 'set_tris_c(ob00000000)' and I can see somewhere u initialise portc with zero 'portc = 0'
And I'm wondering what's 'portc_shadow = 0xF8' for??
And what's the 'set_tris_a(0b00111111) and set_tris_b(0b00010000)' for?
Sorry for being a pain...what I want is trying your hex file and see ie run...also make my assembly version work...then tomorrow I can talk about another story!
I'll post my version right after your comment!
Regards,