shari2643
Newbie level 4
- Joined
- Jul 27, 2013
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 44
Hi ppl, i am trying to set
but it is continuously giving the error
. i referred to htc.h and pic18f4520.h but config settings are not there.I also read blogs and datasheets still yet no progress . Could anyone plz guide me thankx
Compiler:hitech PICC18 PRO 9.63
HTML:
external oscillator RC
HTML:
Undefined symbol
Compiler:hitech PICC18 PRO 9.63
Code:
#include<htc.h>
#define _XTAL_FREQ 20000000 // 20Mhz crystal for delay in ms
//__CONFIG(1, FOSC_EXTRC & FCMDIS & IESODIS); undefined FOSC_EXTRC
//__CONFIG(1, RC & FCMDIS & IESODIS); undefined RC // 1H
__CONFIG(1, XT & FCMDIS & IESODIS); //WORKS PERFECTLY
__CONFIG(2, WDTDIS & PWRTEN & BORDIS ); // 2H 2L