yep hendric , not good at ASM yet myself , so will up the clock speed to see what i get ,
in relation to mem map to consecutively get to io port , looking at the combined 16F1825/29 data sheet , it lists bank 0 , portA - 000C , Portb- 000D , portc -000E ( each 8 bits wide) ,
chip 1825 has port A( 6 ports - bits 0-5 of TRIS reg) , Port C (6 ports - bits 0-5 of TRIS reg )
chip 1829 has port A( 6 ports - bits 0-5 of TRIS reg), port B (4 ports - bits 4-7 of TRIS reg) , Port C (8 ports - bits 0-7 of TRIS reg )
Now assuming ( hate to ) that i want to use Port c 0 , i would set offset from portA,0 as 16 .cos port c.0 is 16 bits in mem from port a.0 , is that correct ??
i will try and see but , just to get it clear ?
cheers
Sheldon




Bookmarks