; BUT, this WORKS at 5V, not at 3.3V
; write a byte in w EEROM @tmp
wreeerom:
bank1
clrf EECON1
movwf EEDATA
movf tmp,w
movwf EEADR
clrwdt
bsf EECON1,WREN
bcf intcon,gie
movlw h'55'
movwf EECON2
movlw h'AA'
movwf EECON2
bsf EECON1,WR
bsf intcon,gie
btfsc EECON1,WR
goto $-1 ;5mS wait max
bcf EECON1,WREN
clrf status ;bank 0
return
; the following WORKS at 3.3V and 5V
; write a byte in w EEROM @tmp
wreeerom:
bank1
clrf EECON1
movwf EEDATA
movf tmp,w
movwf EEADR
bcf intcon,gie
clrwdt
bsf EECON1,WREN
movlw h'55'
movwf EECON2
movlw h'AA'
movwf EECON2
bsf EECON1,WR
bsf intcon,gie
btfsc EECON1,WR
goto $-1 ;5mS wait max
bcf EECON1,WREN
clrf status ;bank 0
return
;
I spent many hours trying to resolve why this simple relocation of BCF
INTCON,GIE
allows the EEPROM to work at 3.3V as well. This is NOT an isolated case,
I have 50
PIC12F629's and 10 PIC12F675's doing the same thing.
My interrupt is trivial:
;*********************************************************;
; Tick interrupt
; Precisely 1.024mS with 4M Int RC Osc
;*******************************************************;
intv:
clrwdt
bcf intcon,t0if
incfsz count,f
nop
bsf flags,flg
retfie
I think that the manual has one instruction out of its proper place.
Anybody else notice
this?
--Bob
--
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist
--Bob
I thought that before waiting for the WR it is better to make a small delay
(1-2ms). Could it be happened that the eeprom writing procedure takes longer
if you are using lower voltage? I will make some tests in the evening with
my 675 playground if you want? (are you using the internal RC osc or
something else?)
Tamas
--
unPIC -- The PIC Disassembler
http://unpic.sourceforge.net
If I move the entire exact code to another device that I can debug
(PIC16F88) [except for GPIO etc]
the code runs perfectly, and the F88 programs ITS EEPROM correctly, too,
with the voltage as low
as 3V (my PS won't go lower). .
I'm really surprised Note: the ICD2 programmer can program the EEPROM
perfectly, but it gets 5V,
too....
- - - -
Yes, it IS supposed to operate slower at lower voltages. I never tried a
1mS delay before actually testing
the WR bit. I could do that, though...I'm exhausted now, up all night on
this...
-----
I have had more trouble with PIC nanowatt EEPROM than anything else in
the whole series.
--Bob
Not at all, Bob.
All of my stuff still runs at 5V which is why I've never noticed this
problem.
That said, though, I *REALLY* appreciate hearing about stuff like
this. I've filed it with all the other little problems that have
been noted - said list is one of the first things I check when I run
into problems.
Thanks again for posting this - I highly suspect it will save me much
effort at some future date.
dwayne
--
Dwayne Reid <dwa...@planet.eon.net>
Trinity Electronics Systems Ltd Edmonton, AB, CANADA
(780) 489-3199 voice (780) 487-6397 fax
Celebrating 22 years of Engineering Innovation (1984 - 2006)
.-. .-. .-. .-. .-. .-. .-. .-. .-. .-
`-' `-' `-' `-' `-' `-' `-' `-' `-'
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.
I have given up. I am redesigning the tiny PCB to accept the PIC12F629
PLUS an external EEPROM
that is guaranteed at 1.8V (24AA00). It is available in SOT23-5 (I have
size constraints).
Just to let everyone know: apparently MY batch of PIC12F629s will not
program its EEPROM below
3.3V. Everything else seems to operate below 3V (down to 2.5V). So I am
adding an external EEPROM
to replace the internal EEPROM. This chip operates on two wires using I2C.
--Bob
WDT does not occure I suppose? Also is there much longer time after reset
than 72ms?
Tamas
On 18/10/06, Bob Axtell <engi...@neomailbox.com> wrote:
>
--
unPIC -- The PIC Disassembler
http://unpic.sourceforge.net
I happened to be looking at the errata sheet for the 16f627A/628A/648A
yesterday, and noticed EEPROM problems that look like they could be
related to what you see, for some revisions of the chips. Might pay to
look at it, and see if there is similar for the chips you are using.
hmmm. Might NOT be waiting before doing work, but EEPROM writes are
AFTER that point, about
600mS is soonest.
Good Q.
--Bob
Thanks again.
--Bob
When I was testing, I caught one device writing 2 bytes correctly, but
not all 6. Very odd. And THAT was
at 5V, too. I'm guessing that there is a problem with the WR bit at all
voltages, but because the write time
lengthens with lower voltages, the problem occurs more often. Hows that
for an explanation (or excuse)?
--Bob
Currently having problems with www.microchip.com.
"Content Server Request Failed"
"Content Server is too busy to handle request."
Well well...
Jan-Erik.
Sounds OK here, but it looks strange!
There is a new banner on top read "STELLENT"...and there is a menu on
that banner: " Login Microsoft Login Home ....." Don't know
what's that!
Best regards,
--
WH Tan
Clicked on link in your message and it came straight up. 10:28 GMT.
I found it varied. Sometimes it had the Stellent frames, and sometimes
didn't. Once I tried to access other pages than the front one it did seem
very slow.