PR2 - 7 Segment Decoder

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

PR2 - 7 Segment Decoder

Postby luke_joi » Thu Sep 03, 2009 10:41 am

I can't figure out whether the PIC code had been loaded into PIC16F84A correctly or not into UIC-S.
So I test the PIC output only by using simplified LED program. But still PIC16F84A LED output RA2,RA3 & RA4 did not working.
They just always ON even delay subroutine was implemented.
Then I found out there is some configuration difference between MPLAB v8.3 and PICkit 2.
MPLAB v8.3 seems did not support PICkit 2 for PIC16F84A. Is it true?
If it is true what should I do? Even update the PICkit 2 cannot solve the problem.

Please advice.
luke_joi
Fledgling
 
Posts: 1
Joined: Thu Sep 03, 2009 10:28 am

Re: PR2 - 7 Segment Decoder

Postby sich » Thu Sep 03, 2009 12:29 pm

The first few things you can do is to check the voltage at VDD & VSS pins (should be ~5V), the voltage at OSC1 & OSC2 pins (~1.9 to 2V), and MCLR pin (must be 5V). Make sure these pins are correctly connected and they get the correct voltage.

It’s better to use PR2 source code to test the chip, instead of modify PR1 source code. If everything is correctly connected, 7-segment led should give the desired output. The most common problem when using a breadboard is possibly loose connection. Please do double checking.

About the configuration difference you mentioned, it has nothing to do with the PICkit2 software that we use for UIC00A. It’s talking about the auto program loading when using MPLAB IDE. When you are using MPLAB and the device you select is PIC16F84A, you can't select PICkit2 (Goto Programmer > Select Programmer > ...). "7.PICkit2" is inactive for selection. It means you can’t auto program the PIC by using MPLAB right after you compiled the source code. PICkit2 software supports PIC16F84A because it detects the chip successfully (you'll see “Device: PIC16F84A”).
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm


Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 9 guests