I missed the start of this thread. But if this is HiTech, three observations. First, its PWRTEN, not PWRTE. Second, i do not see any declaration for MCLRE or MCLREN. The definitions are found in the PIC1662x.h file. Third, you need AND the FLAGS, not OR them. Again, looking at the include file and the datasheet, it's easy to see. For example, PRWTEN = 0xFFF7. the datasheet says bit 3 of of configuration word has to be CLEAR to enable PWRT. so the CONFIG(); directive selectively turns bits off. Thats why you need to AND insead or OR. make sense? > -----Original Message----- > Subject: Re: [PIC]: PS+ problem programming a 16F628 > > > > __CONFIG( PWRTE|MCLRE|UNPROTECT ); > > > > and it won't compile! saying I'm missing a ) > > I can't for the life of me see where it is missing! > > any ideas? > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body