Intel 8XC196MC 사용자 설명서

다운로드
페이지 579
5-39
STANDARD AND PTS INTERRUPTS
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. 
where:
Baud_value
is a 16-bit integer that is loaded into the 
BAUD register 
F
XTAL
1
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 EPA
x
_TIME or 
COMP
x
_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
PTS Serial I/O Mode Control Block 1 (Continued)
(8XC196MC, MD)
Figure 5-19.  PTS Control Block 1 – Serial I/O Mode (Continued)
Baud_value
F
X T A L
1
Multiplier Ba ud_ra te
EPA_prescale
×
(
)
----------------------------------------------------------------------------------------------------------------
=