selfish
Newbie level 5

Dear friends,
Following is a part of my programme. this part is executed every 10 mili second.
I expect the portd to function as a counter and increment every 10ms. (TRISD is all output)
However i get the output only on the PORTD,1. This confirms the the TM in incremented as expected , but movwf PORTD is not working.
I was struggling with this for more than a week but no success. Can someone help?
First part
Second part for testing
Following is a part of my programme. this part is executed every 10 mili second.
I expect the portd to function as a counter and increment every 10ms. (TRISD is all output)
However i get the output only on the PORTD,1. This confirms the the TM in incremented as expected , but movwf PORTD is not working.
I was struggling with this for more than a week but no success. Can someone help?
First part
Code:
incf TM
movf TM
movwf PORTD
Second part for testing
Code:
btfss TM,1
goto ON
goto OFF
ON
bsf PORTD,1
goto LCD0
OFF
bcf PORTD,1
Last edited by a moderator: