AN2295 Freescale Semiconductor / Motorola, AN2295 Datasheet - Page 31
AN2295
Manufacturer Part Number
AN2295
Description
Developers Serial Bootloader for M68HC08 and HCS08 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2295.pdf
(56 pages)
- Current page: 31 of 56
- Download datasheet (452Kb)
Software-SCI Transmit Char Routine
A detailed description of the software-SCI transmit and receive subroutines is provided in this section.
They both are based on a 16-bit timer, and the output-compare event is polled in the background loop.
The source code for the two routines is shown in
variable is used. It contains the actual length of 1 bit at the current communication speed in 16-bit timer
clock cycles. This variable is initialized during the calibration phase (see
Freescale Semiconductor
INITIALIZE, FEED AND
SET BIT COUNTER
RUN 16-BIT TIMER
TXD PIN LOW
ENTER
TO 9
Developer’s Serial Bootloader for M68HC08 and HCS08 MCUs, Rev. 6
CHAR INTO CARRY FLAG
SHIFT-OUT TRANSMIT
Figure 20. Soft-SCI Transmit Char Routine
CLEAR TIMER FLAG
BITS AND TEST
TEST CARRY
TXD PIN LOW
DECREMENT
TIMER FLAG
TIMER FLAG
RECEIVED?
WAIT FOR
CLEAR
YES
= 0
SET
NO
≠ 0
Figure
TXD PIN HIGH
21. Other than a few counters, a 16-bit ONEBIT
Slave Frequency
CLEAR TIMER FLAG
TXD PIN HIGH
STOP TIMER
TIMER FLAG
TIMER FLAG
RECEIVED?
WAIT FOR
MCU Slave Software
EXIT
YES
Calibration).
NO
31
Related parts for AN2295
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola