![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
The brown-out example shows how to use the brown-out detector (BOD) on the LPC11XX.The BOD is setup to generate a BOD interrupt when power is lost. The interrupt will attempt to toggle the LED on as power is lost.
To use this example, build and program it and then run it on the board. Power off the board by removing the power (USB) cable. As the power is declining on the board, the LED will toggle on (quickly) and then turn off as power is lost.
Special connection requirements
There are no special connection requirements for this example.
Build procedures:
LPC13xx example quickstart for Code Red Xpresso
LPC13xx example quickstart for Keil uVision4
LPC13xx example quickstart for IAR EWARM
Supported boards and board setup:
NXP Xpresso LPC1347 board
Submitting LPCOpen issues:
Community support for LPCOpen
Functions | |
| void | BOD_IRQHandler (void) |
| Handle interrupt from Brown-out detector. | |
| int | main (void) |
| main routine for brown-out example | |
Variables | |
| static volatile uint8_t | isPORReset = 0 |
| void BOD_IRQHandler | ( | void | ) |
| int main | ( | void | ) |