| 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 | Variables
LPC18xx/43xx State Configurable Timer Traffic Lights example
Misc examples

## Detailed Description

Example description
This example implements the Traffic Lights example using State Configurable Timer module. The FSM is built by using FZM tool. The FZM tool can be downloded from :
SCT Tools

Special connection requirements

- Hitex LPC1850EVA-A4-2 and LPC4350EVA-A4-2 boards
  Connect JP13 pin 1 with connector X19 pin2
  Make sure that the jumper JP34 is in 2-3 position for SCTIN_1
- Keil MCB1857 and MCB4357 boards
  Connect PF_8 pin to CLK3

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

Submitting LPCOpen issues:
Community support for LPCOpen

## Functions
void | SCT_PinsConfigure (void)
void | SCT_IRQHandler (void)
| SCT interrupt handler.
int | main (void)
| Main entry point.

## Variables
static uint16_t | delay

## Function Documentation

int main | ( | void |  | ) |

Main entry point.

Main program body.

Returns
  Nothing

Definition at line 163 of file sct_trafficlight.c.

void SCT_IRQHandler | ( | void |  | ) |

SCT interrupt handler.

Returns
  Nothing

Definition at line 146 of file sct_trafficlight.c.

void SCT_PinsConfigure | ( | void |  | ) |

Definition at line 86 of file sct_trafficlight.c.

## Variable Documentation

uint16_t delay
| static

Definition at line 75 of file sct_trafficlight.c.