8XC196MC, MD, MH USER’S MANUAL

transmitted or received including the parity and stop bits in the asynchronous modes. The serial I/O modes require two PTS control blocks to configure all options (see Figures 5-19 and 5-20). These blocks need not be contiguous, but they must each be located in register RAM on a quad- word boundary. See AP-483, Application Examples Using the 8XC196MC/MD Microcontroller, for application examples with code.

PTS Serial I/O Mode Control Block 1 (8XC196MC, MD)

The PTS control block 1 contains pointers to both the second PTS control block (PTSVEC) and the EPA time register that sets the baud rate (EPAREG). It also contains a 16-bit value that is used to calculate the baud rate, a control register (PTSCON), and a consecutive PTS cycle count (PTSCOUNT).

PTSVEC (H)

PTSVEC (L)

BAUD (H)

BAUD (L)

EPAREG (H)

EPAREG (L)

PTSCON

PTSCOUNT

15

8

SIO PTSCB2 Base Address Pointer (high byte)

7

0

SIO PTSCB2 Base Address Pointer (low byte)

15

 

 

 

 

 

 

 

 

 

 

8

 

 

 

 

Baud Value (high byte)

 

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Baud Value (low byte)

 

 

 

15

 

 

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

EPA Time Register Address (high byte)

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

EPA Time Register Address (low byte)

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

M2

M1

 

M0

 

SA1

 

0

 

0

SA0

MAJ

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Consecutive PTS Cycles

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register

Location

Function

 

 

 

PTSVEC

PTSCB1 + 6

SIO PTSCB2 Base Address Pointer

 

 

This register contains the base address of the second PTS

 

 

control block for serial I/O mode.

 

 

 

Figure 5-19. PTS Control Block 1 – Serial I/O Mode

5-38

Page 125
Image 125
Intel 8XC196MD, 8XC196MH manual PTS Serial I/O Mode Control Block 1 8XC196MC, MD, SA1 SA0 MAJ, Ptsvec