LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LPC11xx Brown-out detector example

Detailed Description

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:
LPC11xx example quickstart for Code Red Xpresso
LPC11xx example quickstart for Keil uVision4
LPC11xx example quickstart for IAR EWARM

Supported boards and board setup:
NXP Xpresso LPC11U14 board
NXP Xpresso LPC11C24 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
 

Function Documentation

void BOD_IRQHandler ( void  )

Handle interrupt from Brown-out detector.

Returns
Nothing

Definition at line 87 of file bod.c.

int main ( void  )

main routine for brown-out example

Main program body.

Returns
Function should not exit.

defined(CHIP_LPC175X_6X)

Definition at line 100 of file bod.c.

Variable Documentation

volatile uint8_t isPORReset = 0
static

Definition at line 69 of file bod.c.