
MOTOROLA
Chapter 23. SCC UART Mode
23-23
Part V. The Communications Processor Module
16. Write CHARACTER1Ð8 with 0x8000. They are not used.
17. Write RCCM with 0xC0FF. It is not used.
18. Initialize the RxBD. Assume the Rx buffer is at 0x0000_1000 in main memory.
Write 0xB000 to the RxBD[Status and Control], 0x0000 to RxBD[Data Length]
(optional), and 0x0000_1000 to RxBD[Buffer Pointer].
19. Initialize the TxBD. Assume the buffer is at 0x0000_2000 in main memory and
contains sixteen 8-bit characters. Write 0xB000 to the TxBD[Status and Control],
0x0010 to TxBD[Data Length], and 0x00002000 to TxBD[Buffer Pointer].
20. Write 0xFFFF to SCCE2 to clear any previous events.
21. Write 0x0003 to SCCM2 to allow the TX and RX interrupts.
22. Write 0x2000_0000 to the CPM interrupt mask register (CIMR) to allow SCC2 to
generate a system interrupt. The CICR should also be initialized.
23. Write 0x0000_0020 to GSMR_H2 to conÞgure a small Rx FIFO width.
24. Write 0x0002_8004 to GSMR_L2 to conÞgure 16
´
sampling for transmit and
receive, CTS and CD to automatically control transmission and reception (DIAG
bits), and the SCC for UART mode. Notice that the transmitter (ENT) and receiver
(ENR) have not been enabled yet.
25. Set PSMR2 to 0xB000 to conÞgure automatic ßow control using CTS, 8-bit
characters, no parity, 1 stop bit, and asynchronous SCC UART operation.
26. Write 0x0002_8034 to GSMR_L2 to enable the transmitter and receiver. This
ensures that ENT and ENR are enabled last.
Note that after 16 bytes are sent, the transmit buffer is closed. Additionally, the receive
buffer is closed after 16 bytes are received. Data received after 16 bytes causes a busy
(out-of-buffers) condition because only one RxBD is prepared.
23.22 S-Records Loader Application
This section describes a downloading application that uses an SCC UART controller. The
application performs S-record downloads and uploads between a host computer and an
intelligent peripheral through a serial asynchronous line. S-records are strings of ASCII
characters that begin with ÔSÕ and end in an end-of-line character. This characteristic is used
to impose a message structure on the communication between the devices. For ßow control,
each device can transmit XON and XOFF characters, which are not part of the program
being uploaded or downloaded.
For simplicity, assume that the line is not multidrop (no addresses are sent) and that each
S-record Þts into a single buffer. Follow the basic UART initialization sequence above in
Section 23.21, ÒSCC UART Programming Example,Ó except allow for more and larger
buffers and create the control character table as described in Table 23-14.
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......