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.

Problems with compiling PIC18f4580 using PIC-C

Status
Not open for further replies.

ahmet2004

Member level 3
Joined
Jan 1, 2004
Messages
63
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
383
2 threads with same title joined

The Pic-C compiler seems to have problem using the PIC18F4580's internal oscillator with the following code:

#include <18f4580.h>
#device ADC=8
#fuses INTOSC,NOWDT,NOPROTECT,NOLVP
#use delay(clock=8000000)
#use rs232(baud=9600,parity = E, bits = 7, xmit=PIN_C1, rcv=PIN_C0)


What sort of cajolling does one have to do to get Pic-C to compile to use the built in internal Oscillator. I don't want to use the internal rc circuit (INTRC).
 

pic18f4580

I'm starting now with a new project and the PIC18F4580.

When I'm compiling my project, the compiler stops with an strange (for me) error.

These are the first 2 lines in 18F4580.h:
//////// Standard Header file for the PIC18F4580 device ////////////////
#device PIC18F4580

But this #device causes the error: "Can not change device type this far into the code"

?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top