steve langner
Member
PIC Simulator IDE, PIC 12F683.
When I use the simulator on this simple test, the only pin that goes high is GP0, the last output in the series. So I reversed the order of the outputs, ie., GP0=1, GP1=1, etc. Again, the only output to go high is the last in the series, ie., GP4.
Can someone please explain why only one output goes high while the others remain low?
TRISIO = %00001000
GPIO = %00000000
GP4 = 1
GP2 = 1
GP1 = 1
GP0 = 1
End
When I use the simulator on this simple test, the only pin that goes high is GP0, the last output in the series. So I reversed the order of the outputs, ie., GP0=1, GP1=1, etc. Again, the only output to go high is the last in the series, ie., GP4.
Can someone please explain why only one output goes high while the others remain low?
TRISIO = %00001000
GPIO = %00000000
GP4 = 1
GP2 = 1
GP1 = 1
GP0 = 1
End