AN2502 Freescale Semiconductor / Motorola, AN2502 Datasheet - Page 52

no-image

AN2502

Manufacturer Part Number
AN2502
Description
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2502/D
rxfinished:
adjustdata:
noORerror:
RXEXIT:
52
AND
BCLR
ORA
STA
LDA
LDX
CLC
RORA
RORX
BCC
BCLR
BRCLR SCRF,rSCSR1,noORerror
BSET
STA
STX
BCLR
BSET
MOV
PULH
BRCLR RIEN,rSCCR,RXEXIT
JMP
RTI
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
#$02
FE,rSCSR1
rSCSR1
rSCSR1
rSCRSRH
rSCRSRL
adjustdata
ORE,rSCSR1
ORE,rSCSR1
rSCRDRH
rSCRDRL
RPF,rSCSR1
SCRF,rSCSR1 ; valid data on rSCRDRH:rSCRDRL
#$48,TSC0
SCIRXFULL
Freescale Semiconductor, Inc.
For More Information On This Product,
; flag
; (A.1 = 1)? -> FE=1
; ELSE -> FE=0
; The same formula for framing error is
; computed for the second stop bit
; Prepare received data for the adjust
; operation
; Accommodate data. Rotate right until
; the rotated bit is a logic '1', which
; is the bit that was set at the
; beginning of the reception
; If the previously received data has
; not been read, the Overrun Error ORE
; is set
; Store adjusted data into
; Receive Data Registers
; Indicate that there's a
; IC, Falling edge, with
; interrupt enabled
; If enabled, jump to Rx done
; Subroutine
; Else Exit
Go to: www.freescale.com
MOTOROLA

Related parts for AN2502