Hi Nick,
I haven't used a PIC in this manner but I think the line:
"TRISA = %00001111 'Bits 0-3 address select"
is wrong. TRISA sets the data direction for PortA.
Now if you had "TRISA = %00000000" then all of the lines of PortA are set as outputs. The next line should then be "PortA = %00001111".
This would then turn PortA 0 - 3 on and 4 - 7 off.
BobK
Sorry, I didn't look at the date of the original post!




Bookmarks