Sorry, I'm using: - Internal oscillator -> 8MHz - 5V power supply - External MCLR (also tried internal) - BOR on - PWRUPTMR on - No WDT Mauricio Jancic Janso Desarrollos Microchip Consultant Program Member info@janso.com.ar www.janso.com.ar +54 11 4542 3519 > -----Original Message----- > From: piclist-bounces@MIT.EDU [mailto:piclist-bounces@MIT.EDU] On Behalf > Of alan smith > Sent: Monday, November 28, 2005 11:42 AM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] PIC 16F913 EEPROM > > supply voltage..... > > If you stay within the operating range as defined in the data > sheet....isnt the the charge pumps for the EEPROM writing built in? I > havent implemented EEPROM interfacing yet, but will be in the next week or > so and will be running this at 3V > > Mike Harrison wrote: > On Sat, 26 Nov 2005 19:25:03 -0300, you wrote: > > >Alan, and everybody else. > > > > Did you try to write the 16F913 EEPROM? I cant doit... the program > >get's stuck at the second write waiting for the first write to be > >completed... the code to write the EEPROM is: > > > >while(WR) > > continue; // I get stuck here after the first write > > EEADR=ADD; > > EEDATA=DATA; > > EEPGD = 1; > > WREN=1; > > EECON2=0x55; > > EECON2=0xAA; > > WR=1; > > WREN=0; > > > >Interrupts are not enabled... > >Reading the PIC with MPLAB reveals that the EEPROM was not programmed... > > Have you looked at the assembler code generated, e.g. to ensure that the > compiler is not inserting > unnecessary bank-switching between the enable sequence which might stop it > working. > Is the supply voltage adequate ? > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > --------------------------------- > Yahoo! Personals > Single? There's someone we'd like you to meet. > Lot's of someone's, actually. Yahoo! Personals > -- > 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