Problem Pic18f45k22 and LCD

kle0ps

New Member
hello
I am student and i have the following code that i used last year for programming my pic18f1220 with lcd 16x2. This year I need more pins so i bought the PIC18f45k22. I dont know if its good..
I use mplab and c18 compiler.When I do build for my pic I get this error: [1224] configuration setting 'WDT' not recognized that it is this line of code
# pragma config WDT = OFF, OSC = INTIO2, PWRT = ON, LVP = OFF, MCLRE = OFF
Does anyone know what is the configuration settings for my pic18f45k22?
Thank you in advance
 
Thank you very much for your quickly answer. I changed the WDTEN = OFF, PWRTEN = OFF, LVP=OFF. But i dont know what OSC and MCLR must choose.
 
Last edited:
Your last one had MCLRE OFF and INTIO for your OSC... However its up to you INTIO67 means INTernal osc with IO on port A pins 6 & 7

INTIO7 means io on port A pin 7 only, OSC out on port A pin 6... Do you need these pins for IO?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…