MC68302EH16C Freescale Semiconductor, MC68302EH16C Datasheet - Page 367

IC MPU MULTI-PROTOCOL 132-PQFP

MC68302EH16C

Manufacturer Part Number
MC68302EH16C
Description
IC MPU MULTI-PROTOCOL 132-PQFP
Manufacturer
Freescale Semiconductor

Specifications of MC68302EH16C

Processor Type
M683xx 32-Bit
Speed
16MHz
Voltage
5V
Mounting Type
Surface Mount
Package / Case
132-MQFP, 132-PQFP
Controller Family/series
68K
Core Size
32 Bit
Ram Memory Size
1152Byte
Cpu Speed
16MHz
No. Of Timers
3
Embedded Interface Type
SCP, TDM
Digital Ic Case Style
PQFP
Rohs Compliant
Yes
Family Name
M68000
Device Core
ColdFire
Device Core Size
32b
Frequency (max)
16MHz
Instruction Set Architecture
RISC
Supply Voltage 1 (typ)
5V
Operating Temp Range
0C to 70C
Operating Temperature Classification
Commercial
Mounting
Surface Mount
Pin Count
132
Package Type
PQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Features
-
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68302EH16C
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
MC68302EH16C
Manufacturer:
PANA
Quantity:
99
Part Number:
MC68302EH16C
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68302EH16C
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC68302EH16CB1
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68302EH16CR2
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
D.4 CONFIGURING A UART ON THE MC68302
The following paragraphs discuss a working example of software that configures the
MC68302 SCC3 for the UART mode. The code receives data from the UART receiver on a
character-by-character basis and retransmits it out of the UART transmitter. The code,
which runs as is on the ADS302 board, is an excellent starting point for understanding how
to program the UART mode or to create a simple UART handler to support a debug monitor.
D.4.1 Purpose of the Code
This code is really a character “echo” generator — every character received is retransmitted
under control of the M68000 core on the MC68302. An automatic echo mode is available
with each SCC in the SCM register. Why do it manually in software? The answer is that de-
veloping this concept in software is a good way to begin a more complete design since it
demonstrates reception, transmission, and some real-time issues.
The code receives and transmits data on a character-by-character basis, with interrupts
generated on each character received. Although the MC68302 UART mode has much more
flexibility and power than what is used by this code, many applications just require a simple
low-speed UART channel for debugging during the design. SCC3 is often chosen to run at
9600 baud for this purpose as shown in the example.
The code is shown in standard M68000 assembler. Efficiency was sacrificed, when neces-
sary, to enhance readability. The code is comprised of three basic parts. The first part ini-
tializes the MC68302 with everything required to set up SCC3 for the UART mode. The
MOTOROLA
* none of the Rx BDs will be available (all BDs Empty = 0). Thus, the
* status of this BD will be saved for examination later.
* Status bits are all 0
Wrap_T
EXIT_TX
* Back to the main handler, that handles the rest of the events
********************Data after transmission ********************
* 00030000 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 0
* 00030010 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 1
* 00030020 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 2
* 00030030 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 3
* 00030040 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 4
* 00030050 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 5
* 00030060 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 6
* 00030070 0001 0203 0405 141A xxxx xxxx xxxx xxxx # Receiver Buffer 7
• 00030080 0001 0203 0405 0607 0809 0A0B 0C0D 0E0F # Transmit Buffer
• Notice that 141A is the 16-bit CRC
END
CMPI.B
BNE.B
CLR.B
BTST.B
BNE.B
ADDQ.W
BRA.B
LEA.L
BRA.B
JMP
#0,SS_BD(A1)
EXIT_TX
SS_BD(A1)
#WRAP,ST_BD(A1)
Wrap_T
#SZ_BD,A1
NxtCTD
TXBD_01,A1
NxtCTD
OthrlNT
MC68302 USER’S MANUAL
;Check status bits
;Clear out all status bits
;Test Wrap bit
;
;Increment CTD to next BD
;Back to while loop
;Wrap back to the first Tx BD
;Back to the while loop
;Exit confirmer potion of the handler
MC68302 Applications
D-17

Related parts for MC68302EH16C