Maker Pro
Maker Pro

Difference between Brown out and Power on reset

I am bit confused with these terms as Brown out reset is set when the voltage is less than Vdd. So when you are powering ON it should go from lower voltage to Vdd. In this case how micro chip handles?
 
Brown out reset flag gets set when the VDD drop below the operating voltage. It holds the reset high for some time. Check the datasheet for more information.
 

hevans1944

Hop - AC8NS
You should find that both POR and BOR bits <1:0> are set in RCON after initial power on. All other bits in RCON should have been cleared as a result of the power-on reset. As part of your program initialization after initial power on you should clear both POR and BOR bits so that the contents of RCON represent future events accurately.

Have you read, and do you understand, the datasheet for this microprocessor? It appears to be quite sophisticated. It has been my experience with PIC micros that it is absolutely necessary to understand how each and every bit in all the registers functions before you can write correct code. The RCON register is just a status register to provide information to your program. Setting or clearing any of the bits in RCON will not create an actionable event for the microprocessor. This will not be true for other bits in other registers, whose state will determine what the microprocessor does. Read carefully and understand the purpose and function of each bit in every register. Consider using a higher level language, such as C, to shelter you from most of this.
 
Last edited:
Top