I just got my PICkit 3 with a PIC 18F45K20 and I am very excited to start.
My problem is I haven't been able to configure my __CONFIG word. Before when I used a PIC12 I didn't really have to worry much about what the __CONFIG word said because I had sample code. Basically I am trying to use the PIC as a fast oscillator that sends data out one of the ports. So I would prefer to use the PLL enabled oscillator setting that allows internal oscillations of up to 64 MHz. I am not interested in BOREN,Watchdog timer or the other config options that are used because I don't need them for my application. The line where I have
is highlighted red except for 20 so maybe there is also a problem there. Here is the code that won't compile...
My problem is I haven't been able to configure my __CONFIG word. Before when I used a PIC12 I didn't really have to worry much about what the __CONFIG word said because I had sample code. Basically I am trying to use the PIC as a fast oscillator that sends data out one of the ports. So I would prefer to use the PLL enabled oscillator setting that allows internal oscillations of up to 64 MHz. I am not interested in BOREN,Watchdog timer or the other config options that are used because I don't need them for my application. The line where I have
Rich (BB code):
list p=18f45k20
Rich (BB code):
list p=18f45k20 ; list directive to define processor
#include <p18f45k20.inc> ; processor specific variable definitions
__CONFIG _FOSC_HSPLL_1H
;******************** INITIALIZATION PROTOCOL **************************
org 0x000 ; BIG BANG
goto Initialize ; Initialization call
;Interrupt Vector
org 0x004
retfie
org 0x005 ; Start of Programm Memory Vector
Initialize
end