[SOLVED] BCF and BSF command seems to not work on PIC10F202

Status
Not open for further replies.

NallS

Newbie
Joined
Mar 10, 2021
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
42
Simple bit of code to change the state of the GPIO pin 1 dependant on what GPIO pin 0's state is. However, using the BSF and BCF instructions don't seem to set GPIO 0's state when stepping through the debugger? I'm confused as to what the issue is here? Any help as I'm really new to PIC assembly language.

 

Did you notice that GPIO bit 0 is tristated in 18 and 19? Thus it doesn't react on output write commands.
 

Did you notice that GPIO bit 0 is tristated in 18 and 19? Thus it doesn't react on output write commands.
Okay I see, I could only change the state of GP0 using the stimulus tool in MPLABX when debugging. I also have another question but I think I'll close this thread and open a new one with a better explanation of my issue- thank you though.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…