TMP89xy60UG/FG Toshiba, TMP89xy60UG/FG Datasheet - Page 361

no-image

TMP89xy60UG/FG

Manufacturer Part Number
TMP89xy60UG/FG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP89xy60UG/FG

Package
LQFP64/QFP64
Rom Types (m=mask,p=otp,f=flash)
M/F
Rom Size
32/60
Ram Size
3K
Driver Led
8
Driver Lcd
-
Spi/sio Channels
-
Uart/sio Channels
2
I2c/sio Channels
1
High-speed Serial Output
-
Adc 8-bit Channels
-
Adc 10-bit Channels
16
Da Converter Channels
-
Timer Counter 18-bit Channel
-
Timer Counter 16-bit Channel
2
Timer Counter 8-bit Channel
4
Motor Channels
-
Watchdog Timer
Y
Dual Clock
Y
Clock Gear
Y
Number Of I/o Ports
58
Power Supply (v)
4.3 to 5.5
RA006
CalcUART secion code abs = 0xF000
; #### Assign TCA input to RXD pin ####
; #### Receive data (0x80) from a master device ####
sTimerStart:
; #### Allocate BOOTROM to the data/code area ####
; #### Calculation for UART setting (API) ####
; #### Setting the calculated result to UART registers ####
; #### End process ####
Example:
pulse width measurement mode. And calculates baud rate for UART from the captured value.
Captures the low width of 8 bit value via RXD pin by 16-bit timer counter which is set to the
.BTCalcUART equ 0x101E
LD
LD
LD
LD
LD
DI
LD
LD
LD
CALL
CMP
J
LD
LD
LD
LD
:
:
(SERSEL),0x40
(TA0MOD),0x5E
(TA0CR),0x01
WA,(TA0DRL)
(TA0CR), 0x00
(FLSCR1),0x50
(FLSCR2),0xD5
C,0x08
(.BTCalcUART)
W, 0xFF
Z, sTimerStart
(UARTCR2),W
(UARTDR), A
(FLSCR1),0x40
(FLSCR2),0xD5
Receives data (0x80) via TCA0 pin
Page 345
:
:
; Calculating the setting for UART (Baud rate)
; Assign TCA0 pin to RXD pin¶
; Set the pulse width measurement mode and select falling
; edge/L level for external trigger
; Select fcgck/2 as the surce clock
; Timer start
; Write the captured data into WA register
; Timer stop
; Set BAREA to "1"
; Reflect the FLSCR1 setting
; The number of bit length (8 bit)
; Calculate UART setting
; Return to sTimerStart if W register equals 0xFF
; Set RTSEL
; Set UARTDR
; Set BAREA to "0"
; Reflect the FLSCR1 setting
TMP89FS60

Related parts for TMP89xy60UG/FG