Hi Everyone, I'm trying to get a simple program running on one of our firms development boards using SDCC, however I'm having problems setting the configuration bits. The board uses a PIC18F97J60 chip.
There seems to be some differing ways of setting these bits throughout other posts around the internet. So far the best I've come up with is: __code __at 0x1FFF8 __CONFIG = _EXTCLK_OSC & _WDT_OFF & _LVP_OFF & _DATA_CP_OFF & _PWRTE_ON; However, this tells me that several of the macros are not defined: hello_led.c:12: error 20: Undefined identifier '_EXTCLK_OSC' hello_led.c:12: error 20: Undefined identifier '_WDT_OFF' hello_led.c:12: error 20: Undefined identifier '_LVP_OFF' hello_led.c:12: error 20: Undefined identifier '_DATA_CP_OFF' hello_led.c:12: error 20: Undefined identifier '_PWRTE_ON' And indeed if I look in pic18f96j60.h (which is included from pic18f97j60.h) there are no macros for configuration bits. So, my question is, what is the best way to go about this? Thanks in advance, Rob Connolly, BE HMI Technologies Ltd. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user