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.

Problem with fuse settings of a circuit for PIC16f877

Status
Not open for further replies.

smiles

Advanced Member level 4
Joined
Jul 27, 2007
Messages
110
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,096
Here is the simple circuit for PIC16f877A that I design , I check the hardware very carefully but when I embed my charged PIC into the circuit, just to test output high and low, it not work ??? I also wonder why the crystal measured by oscillatior has no signal, try to replace another crystal but still the same, do you think that I have to check software also ???
MCLR pin is ok (5V, press button to reset then 0V)
I use CCS compiler, here is .h file

#include <16F877A.h>
#device adc=8

#FUSES NOWDT //No Watch Dog Timer
#FUSES RC //Resistor/Capacitor Osc with CLKOUT
#FUSES PUT //Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NODEBUG //No Debug mode for ICD
#FUSES BROWNOUT //Reset when brownout detected
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#FUSES NOWRT //Program memory not write protected

#use delay(clock=4000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)

Hope you help me, thanks so much :)
 

#fuses pic16f877a

Where is crystal setting?
Code:
#FUSES RC //Resistor/Capacitor Osc with CLKOUT
It is external RC oscillator by me!
 

    smiles

    Points: 2
    Helpful Answer Positive Rating
pic16f877a rc oscillator

Hi!
Your fuse setting is probably wrong.
#FUSES RC //Resistor/Capacitor Osc with CLKOUT.
it should be
#FUSES XT //External crystal oscillator
Regards.
 

    smiles

    Points: 2
    Helpful Answer Positive Rating
pic16f877 rc oscillator example

Thanks !!!
I will try it :)
 

I want to know how to add #fuse libraries in MPLAB. Pls Help
 

I think it depends which compiler you are using. For example in C18 you just write #pragma config, for example: #pragma config FOSC = INTOSC_HS. You can set then outside code in mplab, you have to go in "configure", then "Configuration Bits".
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top