tmp89fm42a TOSHIBA Semiconductor CORPORATION, tmp89fm42a Datasheet - Page 360

no-image

tmp89fm42a

Manufacturer Part Number
tmp89fm42a
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp89fm42aUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
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 341
:
:
; 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
TMP89FM42A

Related parts for tmp89fm42a