OK I got the program to load backwards. I think it was sucessfull. I imported the hex into the MPLAB and programed it with my ICD2, it seemed to work.
Now that I am using MPASM and the ICD2, I don't know how to turn on the internal oscillator or mclr since they are not legal statements for the PIC18s
how do I program the following statemements in now?
@ device INTRC_OSC_NOCLKOUT
'@ DEVICE XT_OSC ' System Clock Options
@ DEVICE WDT_ON ' Watchdog Timer
@ DEVICE PWRT_ON ' Power-On Timer
@ DEVICE BOD_ON ' Brown-Out Detect
@ DEVICE MCLR_OFF ' Master Clear Options
@ DEVICE LVP_OFF ' Low-Voltage Programming
@ DEVICE CPD_OFF ' Data Memory Code Protect
@ DEVICE PROTECT_OFF ' Program Code Protection
OSCCON = $60 'sets the oscillator speed
DEFINE OSC 4 'Oscillator speed in MHz: 3(3.58) 4 8 10 12 16 20 24 25 32 33
I actually really only need the internal osc at 8mHz and the MCLR off, the rest would be nice to know for future reference.
Any help? Thanks




Bookmarks