lpit_chained_channel
Overview
The LPIT chained_channel project is a simple example of the SDK LPIT driver. It sets up the LPIT hardware block to trigger a periodic interrupt after every 1 second in the channel No.0, the channel No.1 chained with channel No.0, if LPIT contain more than two channels, the channel No.2 chained with channel No.1….the channel No.N chained with Channel No.N-1. Chaining the timer channel causes them to work in a ‘nested loop’ manner thereby leading to an effective timeout value up to TVALn × ((TVALn-1) + 1) at channel No.N. The timer counts down for 5 (TVALn + 1) timer cycles until the timer reaches 0, then the timer generates an interrupt and loads the Timer Value register (TVALn) value again. The example sets the timer period of the channel to 5 by using the API LPIT_SetTimerPeriod(). When the LPIT interrupt is triggered a message a printed on the serial terminal.