AlGeorge
Member level 1
- Joined
- Nov 17, 2009
- Messages
- 39
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Waihi Beach
- Activity points
- 1,606
Hi I am trying to use CC5x due to BoostC not supporting baseline micros. Unfortunately, CC5x is not altogether clear on how to define some of the #pragma settings. Its help refers you to the respective chip header file, but with the desired chip there is little you can see below I have tried various combos of config, and all of them error out. There seems to be no clock_freq pragma. Any pointers appreciated. Thanks, Alistair.
#pragma config _WDTE_OFF,_MCLRE_OFF
^------
Error C:\Projects\PIC\cc5x\mytest.C 3: Preprocessor error
(The source line starting with '#' contains invalid syntax or context
dependent syntax)
//#pragma config WDTE=off, PWRTE=off, MCLRE=off,CP=off
//#pragma config _PWRTE_OFF & _WDT_OFF //& _MCLRE_OFF _CP_OFF &
//#pragma config CP=OFF PWRTE=OFF,WDT=OFF,INTOSCIO
#pragma chip=PIC10f206
#pragma CLOCK_FREQ 125000 //Set known clock frequency to prescaler
// HEADER FILE
#pragma chip PIC10F206, core 12, code 511, ram 8 : 0x1F
// NOTE: last code location is omitted ^--
#pragma resetVector 0
#pragma config_def 0x0010
#pragma config _WDTE_OFF,_MCLRE_OFF
^------
Error C:\Projects\PIC\cc5x\mytest.C 3: Preprocessor error
(The source line starting with '#' contains invalid syntax or context
dependent syntax)
//#pragma config WDTE=off, PWRTE=off, MCLRE=off,CP=off
//#pragma config _PWRTE_OFF & _WDT_OFF //& _MCLRE_OFF _CP_OFF &
//#pragma config CP=OFF PWRTE=OFF,WDT=OFF,INTOSCIO
#pragma chip=PIC10f206
#pragma CLOCK_FREQ 125000 //Set known clock frequency to prescaler
// HEADER FILE
#pragma chip PIC10F206, core 12, code 511, ram 8 : 0x1F
// NOTE: last code location is omitted ^--
#pragma resetVector 0
#pragma config_def 0x0010