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.

PIC18F C program in MPLAB doesn't work but simulation is ok

Status
Not open for further replies.

sreejith

Member level 3
Joined
Apr 17, 2006
Messages
64
Helped
3
Reputation
6
Reaction score
0
Trophy points
1,286
Location
India
Activity points
1,781
I am using PIC18F458 and i have don a program in MPLAB in C, which runs well during simulation process. But when i programmed the pic and connected Vdd, Vss, Oscillator, and disabled the MCLR pin in the real ckt and try to run the program, it is not working.I had set the GIE to 0.
Is there some connection missing? or some interrupt to be disabled?

Please give me an advise.
Thanks in advance :D
 

Re: PIC18F

Hi!
I think that something related to hardware is missing. Check the fuse settings for the oscillator according to the crystal that u r using. The MCLR pin should be pulled up.

I will be in a better position to help if u can uload ur C file or can explain the purpose of ur code.

Regards.
 

PIC18F

It could also be timeing and errors due phisical properties of external componnents connected to PIC.
IE,: you connect u buzzer to PORTD,1 and PORTD,2. In a routine subsequently you toggle those two bits to create AC on beeper. In SIM, I'ts OK, in reality It doesn't work becouse of the capacitance of the buzzer.

Post more info of the project..
 

Re: PIC18F

Now I checked the Ckt by programming the pic using picsimulator-ide with basic language.Then the program is running well with the same hardware..So I think it is some problem with configuring or programming in MPLAB.
I want to utilise the advantages in programming with C as compared to Basic. Is there something more to do in MPLAB to make the program working..
 

Re: PIC18F

I used PIC18f programmer by Oshon soft.If you give me your email address,
I will send you the program.
 

Re: PIC18F

sreejith said:
I used PIC18f programmer by Oshon soft.If you give me your email address,
I will send you the program.

my id is

raghvendra.chaudhary@yahoo.co.in


:|
 

Re: PIC18F

I have send programmer to you to the emails given here.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top