MC68HC11E0CFN3 Freescale Semiconductor, MC68HC11E0CFN3 Datasheet - Page 198

MC68HC11E0CFN3

Manufacturer Part Number
MC68HC11E0CFN3
Description
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC68HC11E0CFN3

Cpu Family
HC11
Device Core Size
8b
Frequency (max)
3MHz
Interface Type
SCI/SPI
Program Memory Type
ROMLess
Program Memory Size
Not Required
Total Internal Ram Size
512Byte
# I/os (max)
38
Number Of Timers - General Purpose
8
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
3V
On-chip Adc
8-chx8-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
52
Package Type
PLCC
Lead Free Status / Rohs Status
Not Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC11E0CFN3
Manufacturer:
MOT
Quantity:
119
Part Number:
MC68HC11E0CFN3
0
Part Number:
MC68HC11E0CFN3R2
Manufacturer:
FREESCALE
Quantity:
1 831
Main Bootloader Program
Samples taken at [7] detect the failing edge of the start bit and verify it is a logic 0. Samples taken at the
middle of what the receiver interprets as the first five bit times [8] detect logic 0s. The sample taken at the
middle of what the receiver interprets as bit 5 [9] may detect either a 0 or a 1 because the receive data
has a rising transition at about this time. The samples for bits 6 and 7 detect 1s, causing the receiver to
think the received character was $C0 or $E0 [10] at 7812 baud instead of the $FF which was sent at 1200
baud. The stop bit sample detects a 1 as expected [11], but this detection is actually in the middle of bit
0 of the 1200 baud $FF character. The SCI receiver is not confused by the rest of the 1200 baud $FF
character because the receive data line is high [12] just as it would be for the idle condition. If a character
other than $FF is sent as the first character, an SCI receive error could result.
Main Bootloader Program
Figure 3
demonstrates the most important features of the bootloaders used on all M68HC11 Family members. For
complete listings of other M68HC11 versions, refer to
end of this application note, and to Appendix B of the M68HC11 Reference Manual, Freescale document
order number M68HC11RM/AD.
The reset vector in the boot ROM points to the start [1] of this program. The initialization block [2]
establishes starting conditions and sets up the SCI and port D. The stack pointer is set because there are
push and pull instructions in the bootloader program. The X index register is pointed at the start of the
register block ($1000) so indexed addressing can be used. Indexed addressing takes one less byte of
ROM space than extended instructions, and bit manipulation instructions are not available in extended
addressing forms. The port D wire-OR mode (DWOM) bit in the serial peripheral interface control register
(SPCR) is set to configure port D for wired-OR operation to minimize potential conflicts with external
systems that use the PD1/TxD pin as an input. The baud rate for the SCI is initially set to 7812 baud at a
2-MHz E-clock rate but can automatically switch to 1200 baud based on the first character received. The
SCI receiver and transmitter are enabled. The receiver is required by the bootloading process, and the
transmitter is used to transmit data back to the host computer for optional verification. The last item in the
initialization is to set an intercharacter delay constant used to terminate the download when the host
computer stops sending data to the MC68HC711E9. This delay constant is stored in the timer output
compare 1 (TOC1) register, but the on-chip timer is not used in the bootloader program. This example
198
$FF CHARACTER
@ 7812 BAUD
$FF CHARACTER
@ 1200 BAUD
Rx DATA SAMPLES
Rx DATA SAMPLES
( FOR 7812 BAUD )
is a flowchart of the main bootloader program in the MC68HC711E9. This bootloader
S
S
START
[1]
[7]
[6]
0
0
Figure 2. Automatic Detection of Baud Rate
BIT 0
1
0
BIT 1
1
0
START
[8]
M68HC11 Bootstrap Mode, Rev. 1.1
BIT 2
1
0
[5]
BIT 3
1
0
or $E0
$C0
$FF
[2]
BIT 4
1
0
[10]
Listing 3. MC68HC711E9 Bootloader ROM
BIT 5
1
?
[9]
BIT 6
1
1
BIT 7
1
1
STOP
1
1
BIT 0
[11]
[3]
Tx DATA LINE IDLES HIGH
Freescale Semiconductor
[4]
[12]
BIT 1
at the

Related parts for MC68HC11E0CFN3