Just started playing around with a 12f675 and just to make sure of a program I plugged in a LED flasher program of the web using GP0 pin 7 output.
But the method used I had not seen before but what puzzles me is how is pin GP0 turned on with this method, there is no direct operation on GP0 as in 'bsf GP0, o etc.
This is essentially the command with just a constant loop back to a 1 sec delay.
Code:
; Toggle the LED every second.
movlw b'00000001'
xorwf GPIO, 1
; Repeat this forever.
; goto loop to delay.
Max.
.
But the method used I had not seen before but what puzzles me is how is pin GP0 turned on with this method, there is no direct operation on GP0 as in 'bsf GP0, o etc.
This is essentially the command with just a constant loop back to a 1 sec delay.
Code:
; Toggle the LED every second.
movlw b'00000001'
xorwf GPIO, 1
; Repeat this forever.
; goto loop to delay.
Max.
.
Last edited: