micropad
Member
Dear All
Program 1
Above code runs two three loops and PORTC rotation stops and PORTD rotation continue some time getting stuck
Then i change program as follows
This program runs well forever
watchdog timer is off
TRIS register configuration is correct
(but both program above mention are working properly in Proteus Simulator and PIC IDE Simulator. The problem occur only my real hardware )
Please advice bit wise command not working properly
Thanks in advance
Program 1
Code:
bsf portc,0
bsf portd,0
loop
rlf portc,f
rlf potrd,f
goto loop
Above code runs two three loops and PORTC rotation stops and PORTD rotation continue some time getting stuck
Then i change program as follows
Code:
bsf portc,0
bsf portd,0
loop
incf portc,f
incf potrd,f
goto loop
This program runs well forever
watchdog timer is off
TRIS register configuration is correct
(but both program above mention are working properly in Proteus Simulator and PIC IDE Simulator. The problem occur only my real hardware )
Please advice bit wise command not working properly
Thanks in advance
Last edited: