STANDARD AND PTS INTERRUPTS

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

Register

Location

 

 

 

 

 

Function

 

 

 

 

 

 

BAUD

PTSCB1 + 4

Baud Value

 

 

 

 

 

This register contains the 16-bit value that the PTS uses to

 

 

generate the desired baud rate. Use the following formula to

 

 

calculate the value to load into the BAUD register.

 

 

Baud_value

 

 

FX T A L 1

 

 

= ----------------------------------------------------------------------------------------------------------------

 

 

 

 

 

Multiplier

( Baud_rate × EPA_prescale)

 

 

where:

 

 

 

 

 

 

Baud_value

is a 16-bit integer that is loaded into the

 

 

 

 

 

 

BAUD register

 

 

FXTAL1

 

 

is the input frequency on XTAL1, in MHz

 

 

Multiplier

 

is the number 4 in asynchronous modes and

 

 

 

 

 

 

the number 8 in synchronous modes

 

 

Baud_rate

 

is the desired baud rate, in bits per second

 

 

EPA_prescale

is the EPA timer prescale number, 1–64

 

 

 

EPAREG

PTSCB1 + 2

EPA Time Register Address

 

 

This register contains the 16-bit address of the EPAx_TIME or

 

 

COMPx_TIME register.

 

 

 

 

 

 

PTSCON

PTSCB1 + 2

PTS Control Bits

 

 

 

 

 

 

 

 

 

 

M2:0

 

PTS Mode

 

 

 

 

 

 

M2

M1

M0

 

 

 

 

 

0

0

1

SIO Receive Mode

 

 

 

 

0

1

1

SIO Transmit Mode

 

 

 

 

 

 

 

SA1:0

 

Asynchronous, Synchronous Mode Select

 

 

 

 

SA1

SA0

 

 

 

 

 

0

0

enables the asynchronous serial I/O

 

 

 

 

 

 

modes

 

 

 

 

1

1

enables the synchronous serial I/O

 

 

 

 

 

 

modes

 

 

 

 

Always write the same value to both bits.

 

 

MAJ

 

Majority Sampling

 

 

 

 

 

0 =

disable majority sampling in asynchronous receive

 

 

 

 

 

mode; always clear in all other modes

 

 

 

 

1= enable majority sampling in asynchronous receive

 

 

 

 

 

mode

 

 

 

 

 

 

 

 

 

 

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

5-39

Page 126
Image 126
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Baud, Epareg, SA1, SA0 †, Maj