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.

mikroc 8.2 configuration bits

Status
Not open for further replies.

gehan_s

Member level 3
Member level 3
Joined
Aug 31, 2012
Messages
62
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Sri Lanka
Visit site
Activity points
1,799
Hi all,

Please help me set the configuration bits for my pic18F2550 microcontroller. I am using mikroc v8.2 with an external quartz crystal. I tried the default settings with the following code and the timing was way off. BTW the circuit works even without the oscillator (I think this has to do with the default bit setting).

This is the code that I tried.

Thanks in advance !!!!!!!!!!!!!!!


void main(){

TRISA=0;

while(1){

PORTA=1;
delay_ms(1000);
PORTA=0;
delay_ms(1000);
}

}
 

Ensure that in the mikroC compiler window, you have selected the appropriate oscillator frequency. What frequency did you set in mikroC and what frequency are you using in your circuit?
 

Thank you verymuch for repling.

I am using 4MHz for both of them. It's the configuration bits that are set wrong.

Regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top