Hello again
I used a bit of a assembler to overcome this problem,
writing bitwise to PORTA register was not successful
the same problem occured.
Writing bitwise to LATA register was the right thing to do,
worked fine.
TRISA = %00000000 'set all PORTA to outputs
Start:
@ bsf 0xf89,0 ;PORTA.0 = 1 'turn on led1
PAUSE 1000
@ bsf 0xf89,1 ;PORTA.1 = 1 'turn on led2
PAUSE 1000
@ bsf 0xf89,2 ;PORTA.2 = 1 'turn on led3
PAUSE 1000
@ bsf 0xf89,3 ;PORTA.3 = 1 'turn ON led4
PAUSE 1000
PORTA = %00000000 'turn OFF all leds
goto Start
I have this question:
Is it possible to write BITWISE directly to memory in PB,
Something like [POKE address, bit no.]
Best Regards
IFF.
Bookmarks