AN2502 Freescale Semiconductor / Motorola, AN2502 Datasheet - Page 47
![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: 47 of 56
- Download datasheet (890Kb)
; Set the bit at the left of the MSB depending
; on the Character Length Selection and Parity Enable bit (M & PEN)
; to know the end of the transmission.
; For example for 8 data bits and no parity enabled:
; rSCTSRH = #%00000001
;
; rSCTSRL = #%databits
__07BIT:
__09BIT:
_conf_OC:
_storeinCH1:
MOTOROLA
CBEQA #$02,__07BIT
CBEQA #$10,__09BIT
MOV
BRA
CLR
BSET
BRA
LDA
AND
ORA
STA
BCLR
BSET
LDHX
TXA
ADD
TAX
PSHH
PULA
ADC
PSHA
PULH
BRCLR SB,rSCCR,_storeinCH1
TXA
ADD
TAX
PSHH
PULA
ADC
PSHA
PULH
STHX
LDA
AND
STA
MOV
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
#$01,rSCTSRH
_conf_OC
rSCTSRH
7,rSCTSRL
_conf_OC
rSCTSRH
#$01
#$02
rSCTSRH
CH1F,TSC1
SCTE,rSCSR1 ; Set transmitter empty flag to allow
TCH1H
#BITLO
#BITHI
#BITLO
#BITHI
TCH1H
rSCSR2
#$0D
rSCSR2
#$58,TSC1
\______ Will indicate end of Tx
Freescale Semiconductor, Inc.
For More Information On This Product,
; 08 BIT SELECTION
; 07 BIT SELECTION
; 09 BIT SELECTION
; Clear Channel Flag
; another data to be queued
; Read current channel value
; Add 1 bit time for next compare
; Add 1 more bit time
; for next compare
; to handle 2 stop bits of the current
; data being sent
; Store calculated data into the
; channel register
; Reset Flags for next transmission
; Clear TX Flags in rSCSR2
; config. channel 1 as OC
Go to: www.freescale.com
AN2502/D
Software
47
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