Intel 8XC196MC User Manual page 128

Table of Contents

Advertisement

PTS Serial I/O Mode Control Block 2
(8XC196MC, MD)
The PTS control block 2 contains pointers to both the port register (PORTREG) and the data register
(DATA). It also contains a 16-bit value that is used to calculate the sample time for asynchronous
receptions when majority sampling is selected (SAMPTIME), a control register (PTSCON1), and a 16-
bit value that is used to select the port signal that functions as the TXD or RXD signal (PORTMASK).
Unused
SAMPTIME
DATA (H)
DATA (L)
PTSCON1 (Synch)
PTSCON1 (Asynch)
PORTMASK
PORTREG (H)
PORTREG (L)
Register
Location
SAMPTIME
PTSCB2 + 6
Figure 5-20. PTS Control Block 2 – Serial I/O Mode
7
0
0
0
7
15
7
7
0
0
0
7
0
RPAR
PEN
7
15
Port Address Pointer (high byte)
7
Port Address Pointer (low byte)
Sample Time Value
This register controls the time between samples during
asynchronous receive mode when majority sampling is selected.
Use the following formula to calulate the value to load into the
SAMPTIME register.
Sample_ time
where:
Sample_time is an integer, 1–31, that is loaded into the
T
SAM
F
1
XTAL
Get other manuals https://www.bkmanuals.com
STANDARD AND PTS INTERRUPTS
0
0
Sample Time Value
Data Register (high byte)
Data Register (low byte)
0
0
0
0
Port Mask Register
Function
×
T
F
1
S A M
X T A L
------------------------------------------ - 9
=
2
SAMPTIME register
is the desired time between samples, in µs
is the input frequency on XTAL1, in MHz
0
0
0
0
0
8
0
0
0
TRC
0
0
0
FE
TPAR
0
0
0
5-41

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents