![]() |
ttcps
Xilinx SDK Drivers API Documentation
|
This file contains a example using two timer counters in the Triple Timer Counter (TTC) module in the Ps block in interrupt mode.
The example proceeds using interleaving interrupt handling from both timer counters. One timer counter, Ticker, counts how many interrupts has occurred to it, and updates a flag for another timer counter upon a given threshold. Another timer counter, PWM, waits for the flag set from the Ticker, and increases its duty cycle. When the duty cycle of PWM reaches 100, the example terminates.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 drg/jz 01/23/10 First release 3.01 pkp 01/30/16 Modified SetupTimer to remove XTtcps_Stop before TTC configuration as it is added in xttcps.c in XTtcPs_CfgInitialize 3.2 mus 10/28/16 Updated TmrCntrSetup as per prototype of XTtcPs_CalcIntervalFromFreq *
Functions | |
int | main (void) |
This function calls the Ttc interrupt example. More... | |
int main | ( | void | ) |
This function calls the Ttc interrupt example.
None |
References TmrInterruptExample().