![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
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 | |
| #define PresetCount (CRYSTAL_32K_FREQ_IN / 32) |
| void EVRT_IRQHandler | ( | void | ) |