> I couldn't find help on the __config word or any language reference. I  
> have looked in the Wiki but I have not found anything.

You have to use something like (untested)

static __code unsigned short __at(0x2007) _conf =
        _WDT_OFF & _BOR_OFF & _INTOSC;

assuming that the config word is mapped at 0x2007 (-> datasheet), you
want to turn off the watchdog and brown-out-reset, and use the internal
oscillator. The symbolic constants are all defined in pic16f690, around
line 400.

> Any suggestion about converting assembler config into C __config words  
> would be greatfully received. Or where do I find the language reference?

If you have the config word value (in 0x<hex>, <decimal>, or 0<octal>),
you can simply use

static __code unsigned short __at(0x2007) _conf = <value>;

If you only have the symbolic values, try to match them to the symbols
 from sdcc's 16f690.h device header and combine them all via bitwise AND.

Hope that gets you started,
Raphael

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to