| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
LPC8xx Brown-out detector example
Peripheral examples

## Detailed Description

Example description
The brown-out example shows how to use the brown-out detector (BOD) on the LPC8XX.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:
LPC8xx example quickstart for IAR EWARM
LPC8xx example quickstart for Keil uVision4
LPC8xx example quickstart for Code Red Xpresso

Supported boards and board setup:
NXP Xpresso LPC812 board

Submitting LPCOpen issues:
Community support for LPCOpen

## Functions
void | BOD_IRQHandler (void)
int | main (void)
| main routine for bown-out example

## Function Documentation

void BOD_IRQHandler | ( | void |  | ) |

Definition at line 76 of file bod.c.

int main | ( | void |  | ) |

main routine for bown-out example

Main program body.

Returns
  Function should not exit.

defined(CHIP_LPC175X_6X)

Definition at line 93 of file bod.c.