| 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
Macros | Functions
LPC18xx/43xx ATIMER example
Peripheral examples

## Detailed Description

Example description
This example shows how to use Alarm Timer to generate interrupt.

The ATIMER is configured for a 1s period. On each expiration of the ATIMER, an ATIMER interrupt is generated and cleared. The background loop will toggle an LED at the ATIMER interrupt rate and sleep while it's doing nothing.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC18xx/43xx example quickstart for Keil uVision4
LPC18xx/43xx example quickstart for IAR EWARM
LPC18xx/43xx example quickstart for Code Red Xpresso

Supported boards and board setup:
Hitex 1850 evaluation boards
Hitex 4350 evaluation boards
Keil 1857 evaluation boards
Keil 4357 evaluation boards
NGX 1830 Xplorer boards
NGX 4330 Xplorer boards

Submitting LPCOpen issues:
Community support for LPCOpen

## Macros
#define | PresetCount (CRYSTAL_32K_FREQ_IN / 32)

## Functions
static void | ATIMER_ClearInts (void)
void | EVRT_IRQHandler (void)
| Handle interrupt from ATIMER source.
int | main (void)
| main routine for ATIMER example

## Macro Definition Documentation

#define PresetCount (CRYSTAL_32K_FREQ_IN / 32)

Definition at line 68 of file atimer.c.

## Function Documentation

static void ATIMER_ClearInts | ( | void |  | ) |
| static

Definition at line 79 of file atimer.c.

void EVRT_IRQHandler | ( | void |  | ) |

Handle interrupt from ATIMER source.

Returns
  Nothing

Definition at line 96 of file atimer.c.

int main | ( | void |  | ) |

main routine for ATIMER example

Main program body.

Returns
  Nothing (function should not exit)

Definition at line 108 of file atimer.c.