----- Original Message -----=20 From: "Philip Pemberton" To: Sent: Friday, December 20, 2002 1:18 PM Subject: [PIC]: 12C509A config word Hello! The CONFIG word must be 0x12 if MCLRE on CP off, WDTE off and INTRC osc. I have recently programmed a PIC 12C508 with the CONFIG word 0x10 and it works properly! So You have to do nothing! Regards =C5keN > Hi, > I'm about half way through my "Program a PIC12C509A/JW Before = Christmas Day" (ho hum) project and I've hit a major stumbling block. = Specifically, the PIC12C5xx Programming Specifications Datasheet = (Microchip doc# DS30557G) says the following on page 8: > CONFIGURATION WORD BIT MAP: > Bits 11-5: Reserved, write as '0' for PIC12C5XX >=20 > Now, if I program these bits as "0" using an "n" value of 100 (100uS = Tpw * 100 attempts =3D 10mS - see pages 2 and 3), they read back as "1". = For example: >=20 > WORD PROGRAMMED: 0x01A (MCLR on, CP off, WDTE off, INTRC osc) > WORD READ BACK: 0xFFA (MCLR on, CP off, WDTE off, INTRC osc) > This seems a little strange to me - surely if these bytes are = programmed as "0", they should read back as "0" too. The 12C5xx databook = says roughly the same thing about reserved bits in file registers - they = should read back as "0". Can someone *please* tell me what I'm doing = wrong here? Should I just add some code to the programmer driver to = ignore bits 11-5 of the config word? >=20 > Thanks. > -- > Phil. > philpem@dsl.pipex.com > http://www.philpem.dsl.pipex.com/ >=20 > ----------------------------------------- > This message sent by OakMailer, a free/donation-ware script > provided by Oakbox Productions http://www.oakbox.com. >=20 > Anti-spam notice, this message originated from IP Address: > 194.238.52.135 > ----------------------------------------- >=20 > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. >=20 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.