SKFYP-01 UIC00B debug mode

Programmer, In-Circuit Debugger, PIC Start-Up Kit, Memory Interface...

SKFYP-01 UIC00B debug mode

Postby khmok » Fri Mar 08, 2013 6:31 pm

Hi, SKFYP is my first project of using PIC and I am using "SK40C 16F877A Sample Program - led blinking" to blink the two LEDs on SK40C. I would like to try the feature of single stepping the program and found out that:

Problem: In debug mode, LED is always light up regardless of whether step over "off LED" or "toggle LED"
Description: As you can see that, LED1 and LED2 are connected to RB6 and RB7 respectively. When stepping over below code, LEDs do not turn off.

LED1=0; //OFF LED1
LED2=0; //OFF LED2

LEDs do not toggle when stepping over below code:

LED1^ = 1; //toggle LED1
delay(delay_time);
LED2^ = 1; //toggle LED2
delay(delay_time);

When I WATCH RB6 and RB7, it is always 0x00 (as you can see from the attachment) but the LEDs are light up.

Can anyone please tell me what is the problem or if the debug mode is working?

Debug_5.PNG
khmok
Newbie
 
Posts: 13
Joined: Fri Mar 08, 2013 6:08 pm

Re: SKFYP-01 UIC00B debug mode

Postby robosang » Fri Mar 08, 2013 6:37 pm

in debug mode, RB7 and RB6 is being used for communication, so basically you cannot use it for code.

Use other pin for LEDs.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: SKFYP-01 UIC00B debug mode

Postby khmok » Fri Mar 08, 2013 6:46 pm

Is this because of RB6 and RB7 also use as function PGC and PGD when connecting UIC00B and stepping over?
the clashing of toggling LED with the function of PGC and PGD?

Regards,
KH
khmok
Newbie
 
Posts: 13
Joined: Fri Mar 08, 2013 6:08 pm

Re: SKFYP-01 UIC00B debug mode

Postby ABSF » Fri Mar 08, 2013 11:04 pm

Yes, that's exactly what Robosang meant. :mrgreen:

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia


Return to PIC Development Tool

Who is online

Users browsing this forum: No registered users and 1 guest