Hello, What is the "proper" way to write the CONFIG register on the pic14 port, for example the PIC16F690?
I've seen things like: typedef unsigned int config; config at 0x2007 __CONFIG = _CP_OFF & _WDT_OFF & _BOR_OFF & _PWRTE_OFF & _INTRC_OSC_NOCLKOUT & _MCLRE_OFF ; but this seems quite... messy. And what about the pic16 port, where there are many registers, like CONFIG1L, CONFIG1H and so on, for example PIC18F2550? Probably, as with most programming issues, there are several approaches to do this, I'd like to use some method that is easy to understand and easy to read, as I am not very familiar with all that header file code Is there a tutorial for this somewhere? Thanks, Robert Bergfors ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
