Since We are talking about the include file here I am trying to assemble a code using one of the c5x parts. How do you set the configs for the device in the include file I.E. when you look at the include file for the c5x. it lists the follow for each chip: IFDEF __16C54C __MAXRAM H'01F' #define __CONFIG_1 ENDIF then when you go down to the area where it shows the config bits you see the following definitions; IFDEF __CONFIG_0 _CP_ON EQU H'0FF7' _CP_OFF EQU H'0FFF' _WDT_ON EQU H'0FFF' _WDT_OFF EQU H'0FFB' _LP_OSC EQU H'0FFC' _XT_OSC EQU H'0FFD' _HS_OSC EQU H'0FFE' _RC_OSC EQU H'0FFF' #undefine __CONFIG_0 ENDIF IFDEF __CONFIG_1 _CP_ON EQU H'0007' _CP_OFF EQU H'0FFF' _WDT_ON EQU H'0FFF' _WDT_OFF EQU H'0FFB' _LP_OSC EQU H'0FFC' _XT_OSC EQU H'0FFD' _HS_OSC EQU H'0FFE' _RC_OSC EQU H'0FFF' #undefine __CONFIG_1 ENDIF IFDEF __CONFIG_2 _CP_ON EQU H'0FF7' _CP_OFF EQU H'0FFF' _XT_OSC EQU H'0FFD' _RC_OSC EQU H'0FFF' #undefine __CONFIG_2 ENDIF I tried commenting them out but i read some where where this wasnt the correct to do this. Thanks Michael Johnston ----- Original Message ----- From: "Jinx" To: Sent: Sunday, January 25, 2004 6:24 PM Subject: Re: [PIC]: Trouble assembling code for 16F84A > > Yes, it is kind of strange that MPASM accepts both > > formats below without complaint (with or without the > > preceding number sign '#'): > > > > include > > #include > > And include "P16F84.inc" > > > Talk about creating confusion. :) > > > > Sigh, > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body