| 数据搜索系统,热门电子元器件搜索 |
|
DSP56303 数据表(PDF) 196 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
DSP56303 数据表(HTML) 196 Page - Freescale Semiconductor, Inc |
|
196 / 292 page ![]() DSP56303 User’s Manual, Rev. 2 9-4 Freescale Semiconductor Triple Timer Module 3. Configure other registers: Timer Prescaler Load Register (TPLR), Timer Load Register (TLR), and Timer Compare Register (TCPR) as needed for the application. 4. Enable the timer by setting the TCSR[TE] bit. 9.2.3 Timer Exceptions Each timer can generate two different exceptions: Timer Overflow (highest priority) — Occurs when the timer counter reaches the overflow value. This exception sets the TOF bit. TOF is cleared when a value of one is written to it or when the timer overflow exception is serviced. Timer Compare (lowest priority) — Occurs when the timer counter reaches the value given in the Timer Compare Register (TCPR) for all modes except measurement modes. In measurement modes 4–6, a compare exception occurs when the appropriate transition occurs on the TIO signal. The Compare exception sets the TCF bit. TCF is cleared when a value of one is written to it or when the timer compare interrupt is serviced. To configure a timer exception, perform the following steps. The example at the right of each step shows the register settings for configuring a Timer 0 compare interrupt. The order of the steps is optional except that the timer should not be enabled (step 2e) until all other exception configuration is complete: 1. Configure the interrupt service routine (ISR): a. Load vector base address register VBA (b23–8) b. Define I_VEC to be equal to the VBA value (if that is nonzero). If it is defined, I_VEC must be defined for the assembler before the interrupt equate file is included. c. Load the exception vector table entry: two-word fast interrupt, or jump/branch to subroutine (long interrupt). p:TIM0C 2. Configure the interrupt trigger: a. Enable and prioritize overall peripheral interrupt functionality. IPRP (TOL[1–0]) b. Enable a specific peripheral interrupt. TCSR0 (TCIE) c. Unmask interrupts at the global level. SR (I[1–0]) d. Configure a peripheral interrupt-generating function. TCSR0 (TC[7–4]) e. Enable peripheral and associated signals. TCSR0 (TE) |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |