AN2502 Freescale Semiconductor / Motorola, AN2502 Datasheet - Page 51
![no-image](/images/no-image-200.jpg)
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
1.AN2502.pdf
(56 pages)
- Current page: 51 of 56
- Download datasheet (890Kb)
ptyrec:
sb1rec:
sb2rec:
MOTOROLA
TXA
ADD
TAX
PSHH
PULA
ADC
PSHA
PULH
STHX
MOV
PULH
RTI
BRCLR PEN,rSCCR,sb1rec
PULA
EOR
EOR
AND
BCLR
ORA
STA
BCLR
BSET
BRA
BRCLR SB,rSCCR,sb2rec
PULA
LSLA
EOR
AND
BCLR
ORA
STA
BSET
BSET
BRA
PULA
BRSET FE,rSCSR1,rxfinished
LSLA
EOR
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
#BITLO
#BITHI
TCH0H
#$50,TSC0
rSCSR2
rSCCR
#$01
PE,rSCSR1
rSCSR1
rSCSR1
PTYRX,rSCSR2
STBRX,rSCSR2
nextRXtime
#$02
#$02
FE,rSCSR1
rSCSR1
rSCSR1
PTYRX,rSCSR2
STBRX,rSCSR2
nextRXtime
#$02
Freescale Semiconductor, Inc.
For More Information On This Product,
; Add 1 bit time
; Store new calculated time into
; channel registers
; config. channel 0 as output
; compare with int enabled
; Pin under port control.
; Return from interrupt
; If Parity disabled, branch
; to 1st SB reception
; Program goes here if the parity bit
; is being received. CCR is poped from
; stack and stored in the accumulator
; Calculate Parity Error
; (A.0 = 1)? -> PE=1
; ELSE -> PE=0
; Indicate next reception
; to be 1st Stop Bit
; Branch to calculate next output
; compare time
; Branch to 2nd Stop Bit reception if
; SB=0
; Pop CCR and store it in the acc.
; Calculate Framing Error
; flag
; (A.1 = 1)? -> FE=1
; ELSE -> FE=0
; Indicate that the next received bit
; is the second stop bit
; Calculate next output compare time
; If FE=1, rx done
; Calculate Framing Error
Go to: www.freescale.com
AN2502/D
Software
51
Related parts for AN2502
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN177](/images/no-image3.png)
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
![AN1268](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
![AN1315](/images/no-image3.png)
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
![AN1998](/images/no-image3.png)
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
![AN2124](/images/no-image3.png)
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
![AN2428](/images/no-image3.png)
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
![AN2708](/images/no-image3.png)
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
![AN2783](/images/no-image3.png)
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
![MC33394DH](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
![MC33394DWB](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
![MSC7110](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
![MSC7116](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7119](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7118](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC8101](/images/no-image3.png)
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola