CoX Peripheral Interface V2.1
API Reference
TIMER

Timer controller Peripheral Driver. More...

Collaboration diagram for TIMER:

Modules

 xTIMER
 

CoX TIMER Peripheral Interface.



Detailed Description

Timer controller Peripheral Driver.

Timer controller allows user to implement a timer control for application easily. The timer can perform functions like frequency measurement, event counting, interval measurement, clock generation, delay timing, and so on. The timer can generate an interrupt signal upon timeout, or provide the current value during operation.


Contents


1. TIMER Physical Block


2. TIMER Functional Description


2.1 Internal Timer

Users can select the Internal clock source as the timer clock source, and start the timer with diffierent mode, such as one shot mode, periodic mode. when the timer's count value reaches the compared value, its corresponding interrupt flag will be set.


2.2 Event counting

Timer can be configured to count the event signal which is selected as rising or falling edge form the corresponding pin.


2.3 Pulse Width Modulation

Timer's Pulse width modulation can be used to output an 0 ~ 100% duty ratio.


2.4 Delay Timing

Timer also can be used to make a accurate delay for the application.


3. TIMER Applications


Note:
Here describes the common functions of the TIMER Peripheral. The CoX Peripheral Interface is based on the functions above.