Reading BOD in PICAXE-08M. Possible?

jcgalvezv

New Member
May I read BOD in PCON register after a Brown Out reset in PICAXE-08M?

I mean, I need to be able to establish if a BOR occurred after the reset. That information is in PCON register ($8E). I just want to know if PICAXE-08M preserves that information upon reset so can read it using a PEEK Basic command.

Respectfully,

Juan C.
 

westaust55

Moderator
Reading BOR in PICAXE-08M.

DO you mean the BOR bit in PCON (not the BOD)?

This requires a reply from technical to confirm how the PIACXE software operates.

Otherwise you could try a test yourself. VBOR is factory set and between 2.0 and 2.2V. so you could try:
1. peek PCON and check the BOR bit (should be high)
2. reduce the voltage on VDD to say 1.95 Volts
3. Increase the voltage on VDD back to 5 Volts
4. peek PCON again and see it the BOR bit has gone low.
 
Last edited:

westaust55

Moderator
Reading BOR in PICAXE-08M

But note that the PICAXE 08M is based upon the 12F683 PIC - See PICAXE Manual 1 (rev 6.6) page 12.
You should download the correct datasheet from the microchip website.

You will also need to ensure that Brown Out Reset function is enabled with the ENABLEBOD command.
Hmmm maybe Rev Ed need to rename this command to "ENABLEBOR" in line with the PIC chips (08M to 28X1/40X1).
 

Attachments

Last edited:

jcgalvezv

New Member
In the datasheet from 2004 "DS41211B-page 10" the one I have in my computer (outdated) it is named BOD. In the last datasheet they changed the name to BOR.

So, you are right.

Thank you for your clarification.
 
Last edited:
Top