| Electronic Components Datasheet Search |
|
TMP89FS60 Datasheet(PDF) 212 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP89FS60 Datasheet(HTML) 212 Page - Toshiba Semiconductor |
|
212 / 410 page ![]() Page 198 14. 8-bit Timer Counter (TC0) TMP89FS60 RA002 When write instructions are executed on T00PWM and T01PWM in this order while the timer is stopped, the set value is immediately stored in T01+00PWM. Figure 14-15 12-bit PWM Mode Timing Chart (Example) Operate TC00 and TC01 in the 12-bit PWM mode with the operation clock of fcgck/2 and output a duty pulse nearly equiva- lent to 14.0625 µs in 64µs cycles (fcgck = 8 MHz) (Actually, output a duty pulse of 225 µs in total in 16 cycles (1024 µs)) SET (P7FC).1 ; Sets P7FC1 to "1" SET (P7CR).1 ; Sets P7CR1 to "1" LD (POFFCR0),0x10 ; Sets TC001EN to "1" DI ; Sets the interrupt master enable flag to "disable" SET (EIRH).4 ; Sets the INTTC00 interrupt enable register to "1" EI ; Sets the interrupt master enable flag to "enable" LD (T01MOD),0xF2 ; Selects the 16-bit PWM mode and fcgck/2 LD (T00PWM),0x84 ; Sets the timer register (duty pulse) ; (14.0625 µs × 16) / (2/fcgck) = 0x384 LD (T00PWM),0x03 ; Sets the timer register (duty pulse) LD (T001CR),0x06 ; Starts TC00 and TC01 Source clock Counter Timer start 1 0 km (0001) km km (Duty pulse) 256 counts (Cycle 1) 256 counts (Cycle 2) 256 counts (Cycle 9) 256 counts (Cycle 16) (Cycle 17) rs (0011) rs Write to T00PWM Double buffer Match detection Write m (0001) Write s (0011) Becomes the level selected at TFF0 while the timer is stopped Interrupt request Interrupt reques Interrupt request Write to T01PWM Write k Write r INTT00 interrupt request INTT00 interrupt request 1 km +1 km km +1 km km +1 km km +1 km 0 0001 0011 PWMDUTY PWMAD3 ~ 0 T001CR<T00RUN> 256 Match detection 1 0 256 1 0 256 rs 1 0 256 Match detection Match detection Counter clear Overflow Overflow Overflow Counter clear Counter clear Counter clear T00MOD<TFF0> PWM0 pin output When the double buffer is enabled (T01MOD<DBE1>=”1”) km (Duty pulse) km (Duty pulse) km+1 (Duty pulse) rs (Duty pulse) Additional pulse Interrupt request |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |