tmp89fm46a TOSHIBA Semiconductor CORPORATION, tmp89fm46a Datasheet - Page 232

no-image

tmp89fm46a

Manufacturer Part Number
tmp89fm46a
Description
Tlcs-870/c1 Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
RA005
(Example) Operate TC00 and TC01 in the 16-bit PPG mode with the operation clock of fcgck/2 and output the 68μs duty
pulse in 96μs cycles (fcgck = 10 MHz)
SET
SET
LD
DI
SET
EI
LD
LD
LD
LD
LD
LD
(P7FC).1
(P7CR).1
(POFFCR0),0x10
(EIRH).4
(T01MOD),0xF3
(T00REG),0xE0
(T01REG),0x01
(T00PWM),0x54
(T01PWM),0x01
(T001CR),0x06
Page 213
; Sets P7FC0 to "1"
; Sets P7CR0 to "1"
; Sets TC001EN to "1"
; Sets the interrupt master enable flag to "disable"
; Sets the INTTC00 interrupt enable register to "1"
; Sets the interrupt master enable flag to "enable"
; Selects the 8-bit PPG mode and fcgck/2
; Sets the timer register (cycle)
; Sets the timer register (cycle)
; 96μs / (2/fcgck) = 0x01E0
; Sets the timer register (duty pulse)
; Sets the timer register (duty pulse)
; 68μs / (2/fcgck) = 0x0154
; Starts TC00 and TC01
TMP89FM46A

Related parts for tmp89fm46a