Hdlc Bus Controller Programming Example - Freescale Semiconductor MPC850 User Manual

Mpc850 family integrated communications microprocessor
Table of Contents

Advertisement

• Configure CRC to 16-bit CRC CCITT (0b00).
• Configure other bits to zero or default.
To program the general SCC mode register (GSMR), set the bits as described below:
• Set MODE to HDLC mode (0b0000).
• Configure CTSS to 1 and all other bits to zero or default.
• Configure the DIAG bits for normal operation (0b00).
• Configure RDCR and TDCR for 1× clock (0b00).
• Configure TENC and RENC for NRZ (0b000).
• Clear RTSM to send idles between frames.
• Set GSMR_L[ENT, ENR] as the last step to begin operation.

23.14.6.2 HDLC Bus Controller Programming Example

Except for the above discussion in Section 23.14.6.1, "Programming GSMR and PSMR for
the HDLC Bus Protocol," use the example in Section 23.13.1, "SCC HDLC Programming
Example #1."
Chapter 23. SCC HDLC Mode
HDLC Bus Mode with Collision Detection

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc850deMpc850dslMpc850sr

Table of Contents