Ed: Try the following from line 4 Spot_1 EQU 030H ; some register movlw .5 ; decimal value declared by"." movwf spot_1 ; put value in reg clrw ; clear w clrf spot_1 ; and the register nop ; then wait for a bit end Mplab expects to see directives in different columns to code. The "." is a good (but not the only) way of defining a dec number and a hex definition usually has a leading zero and a "h or H"at the end Regards Steve -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Dr. Ed Edmondson, PhD Sent: 13 November 2006 19:51 To: piclist@mit.edu Subject: Re:[PIC]: Very New User Problem I am attempting to use the "PIC Elmer 160 Course" as referenced on the new user FAQ. My problem is every time I try to build the code I get an Error 152 on lines 5 thru 9. Error 152 tells me: "Executable code and data must be defined in an appropriate section" I looked the error up in Chapter 8 of the Assembler,Linker/Librarian User Guide and it tells me that "When generating an object file, all executable code and data declarations must be placed within appopriate sections". I am using MPLAB 7.43 (what I downloaded from the Microchip web site) an installed it on my computer which runs Windows XP. I am using the Microchip 16F84.lnk . The code is as follows: 1. Processor 16F84 2. include 3. __config _HS_OSC & _WDT_OFF & _PWRTE_ON 4. spot1 equ H'30' 5. movlw D'5' 6. movwf spot1 7. clrw 8. clrf spot1 9. nop 10. end Please tell me what I am missing? I have been working on this problem for several days now. Thanks, Ed --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist