Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.
CC3200 Timer Demo Application
Every GPTM(General purpose timer module) block can be used as two 16-bit timers/counters (referred to as Timer A and Timer B) that can be configured to operate independently as timers or event counters, or concatenated to operate as one 32-bit timer. Timers can also be used to trigger µDMA transfers.
Following operating modes are supported:
- 16 or 32-bit programmable one-shot timer
- 16 or 32-bit programmable periodic timer
- 16-bit general-purpose timer with an 8-bit prescaler
This application is to showcases the usage of Timer DriverLib APIs. The objective of this application is to showcase the usage of 16 bit timers to generate interrupts which in turn toggle the state of the GPIO (driving LEDs).
Two timers with different timeout value(one is twice the other) are set to toggle two different GPIOs which in turn drives two different LEDs, which will give a blinking effect.
Source Files briefly explained
- main - contains main function implementing LED blinking using timers.
- gpio_if - APIs to get pin number from GPIO number and set them.
- pinmux - Pinmux configurations as required by the application.
- timer_if - APIs for timer.
- Run the reference application (Flashing the bin/IAR/CCS).
- Observe the two LEDs blinking with diffent frequencies(one is twice the other).