| 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 | Variables
LPC8xx State Configurable Timer (SCT) example
Peripheral examples

## Detailed Description

Example description
The SCT example demonstrates the match functionality using the State Configurable Timer.

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

## Macros
#define | TICKRATE_HZ (10)/* 10 ticks per second */

## Functions
void | SysTick_Handler (void)
| Handle interrupt from SysTick timer.
void | SCT_IRQHandler (void)
| Handle interrupt from State Configurable Timer.
int | main (void)
| Application main program.

## Variables
static volatile uint32_t | ticks

## Macro Definition Documentation

#define TICKRATE_HZ (10)/* 10 ticks per second */

Definition at line 60 of file sct.c.

## Function Documentation

int main | ( | void |  | ) |

Application main program.

Main program body.

Returns
  Nothing (This function will not return)

defined(CHIP_LPC175X_6X)

Definition at line 107 of file sct.c.

void SCT_IRQHandler | ( | void |  | ) |

Handle interrupt from State Configurable Timer.

Returns
  Nothing

Definition at line 90 of file sct.c.

void SysTick_Handler | ( | void |  | ) |

Handle interrupt from SysTick timer.

SysTick 1mS tick handler.

Returns
  Nothing

Definition at line 80 of file sct.c.

## Variable Documentation

volatile uint32_t ticks
| static

Definition at line 62 of file sct.c.