Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pic16f873a is not working in target board

Status
Not open for further replies.

anoop kr

Member level 4
Joined
Aug 6, 2010
Messages
69
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
kerala
Activity points
1,885
Hello everyone
For my new project i am using PIC16F873A MCU. The intention of my project is to monitor 4 analog input values and make the control signals as per the read analog values. The IDE i am using is MikroC pro for PIC. The program is working perfectly in the software and i simulated this in proteus software. But i couldn't work that program in the targtet board. I can program the chip successfully. The programmer i am using is Pickit2. Its showing that programming and verification are all successful. The crystal i used is 4MHz.

But its not working in the real hardware. I changed the crystal, crystal load capacitors and also i tried the code with different Oscillator options like HS oscillator,XT oscillator, RC oscillator etc..but no good results... i can share the screen shot of the IDE configuration of my simple port blinking program. anyone can help??:-(
 

Attachments

  • PIC16F873A.png
    PIC16F873A.png
    159.3 KB · Views: 109

When it comes to things like the correct config settings for the oscillator there is no excuse for guessing. You use a 4MHz crystal which Table 14-2 in the data sheet tells you will need an XT setting (or possibly an HS one).
Can you program the chip correctly? If so then you know that some of the connections are correct.
How do you know that it is "...not working..." as you have not told us what works and what doesn't to let you come to this conclusion.
Can you debug the program? If you can then you know the oscillator is working at least. If you can't then there is a good chance that:
- the oscillator is not correctly wired up
- the MCLR is not set up according to Section 14.4 (or even just a pull-up resistor to Vdd)
- you have left off the bypass capacitors
- bugs in the simulator is covering up mistakes in your code (simulators often just add another layer of bugs)
Susan
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top