Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
31
XISR – Xon–Xoff Interrupt Status Register A and B (Reading this register clears XISR(7:4))
Bits 7:6 Bits 5:4 Bits 3:2 Bits 1:0
Received X Character Status Automatic X Character transmission
status
TxD flow status TxD character status
00 = none
01 = Xoff received
10 = Xon received
11 = both received
00 = none
01 = Xon transmitted
10 = Xoff transmitted
11 = Both transmitted
00 = normal transmission
01 = TxD halt pending
10 = re-enabled
11 = flow halted
00 = normal TxD data
01 = Idle wait for FIFO
data
10 = Xoff in pending
11 = Xon in pending
XISR[7:6] Received X Character Status.
This field can be read to determine if the receiver has encountered a
Xon or Xoff character in the incoming data stream. These bits are
maintained until a read of the XISR. The field is updated by X
character reception regardless of the state of MR3(7) and MR3(3:2)
or IMR(4). The field can therefore be used as a character detector
for the bit patterns stored in the Xon and Xoff Character Registers.
XISR[5:4] Automatic transmission Status.
This field indicates the last flow control character sent in the Auto
Receiver flow control mode. If Auto Receiver mode has not been
enabled, this field will always read b’00. It will likewise reset to b’00 if
MR0(3) is reset. If the Auto Receiver mode is exited while this field
reads b’10, it is the user’s responsibility to transmit a Xon, when
appropriate.
XISR[3:2] TxD Condition of the automatic flow control status.
This field tracks the transmitter’s flow status as follows:
00 –
n
ormal transmission. Transmitter is not affected by Xon or
Xoff.
01 – TxD halt pending. After the current character finishes the
transmitter will stop. The status will then change to b’11.
10 –
r
e–enabled. The transmitter had been halted and has been
restarted. It is sending (or is prepared to send) data characters.
After a read of the XISR, it will return to ‘normal’ status.
11 – The transmitter is stopped due to an Xoff character being
received from its associated receiver. The transmitter is ‘flow
controlled’.
XISR[1:0] TxD X character Status.
This field allows determination of the type of character being
transmitted. It will always be b’00 if none of the automatic X
character controls of MR3[3:2] is enabled.
01 – The channel is waiting for a data character to transfer from
the TxFIFO. This condition will only occur for a bit time after a Xon
or Xoff character transmission unless the TxFIFO is empty.
10 – A command to send an Xoff character is pending.
11 – A command to send an Xon character is pending.
Conditions b’10 and b’11 will not exist for more than a character
time.
WCXER Watch Dog, Character, Address and X Enable Register – A and B
Bit 7 Bit 6 Bit 5 Bit 4 BIT 3 BIT 2 BIT 1 BIT 0
Watch dog * Address recognition Xon recognition Xoff Recognition
1 = disable Wd
0 = no action
1 = enable
Wd
0 = no action
1 = disable Ar
0 = no action
1 = enable Ar
0 = no action
1 = disable
Xon
0 = no action
1 = enable
Xon
0 = no action
1 = disable
Xoff
0 = no action
1 = enable
Xoff
0 = no action
This register enables the UART’s Character Recognition, Address
Recognition and Receiver watchdog timer. If both enable and
disable are active a disable results. This register is used to enable
the general–purpose character recognition feature WITHOUT
causing any Xon/Xoff or wakeup mode activities to occur. The
recognition event is reported in the ISR register.
* This bit control is duplicated at MR0[7].
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
32
Programmable Counters, Timers and Baud Rate generators
PBRGPU – Programmable BRG Timer Reload Registers, Upper 0 and 1
Bits 7:0
8 MSBs of the BRG Timer divisor.
This is the upper byte of the 16–bit value used by the BRG timer in generating a baud rate clock
PBRGPL – Programmable BRG Timer Reload Registers, Lower 0 and 1
Bits 7:0
8 LSB of the BRG Timer divisor.
This is the lower byte of the 16–bit value used by the BRG timer in generating a baud rate clock.
CTCS 0 and 1 – Counter Timer clock source
NOTE: Writing to this register removes the control established in the counter/timer portion of the ACR in the default register map
Bit 7:6 Bit 5:4 Bit 3:0
Reserved Mode control Clock selection
00 – Selects Counter Mode. Generates
a timing edge
01 – Selects Timer Mode. Generates a
square wave
10 – Reserved
11 – Selects Timer Pulse Mode.
Generates periodic pulses twice the
frequency as in Timer Mode. Pulse width
is one cycle of the clock as it is delivered to
the C/T. (i.e. after any prescale)
0000 External I/O2 A (for CT 0), I/O7 A (for CT 1)
0001 External I/O2 A/16 (for CT 0), I/O7 A/16 (for CT 1)
0010 Sclk
0011 Sclk / 2
0100 Sclk / 16
0101 Sclk / 32
0110 Sclk / 64
0111 Sclk / 128
TxC1X A
TxC1X B
1010, 1011 Reserved
1100 Rx Character Count (Ch A) Clock is RxFIFO A load pulse
1101 Rx Character Count (Ch B) Clock is RxFIFO B load pulse
1110, 1111 Reserved
CTVU – Counter Timer Value Registers, Upper 0 and 1
Bits 7:0
8 MSBs of the Counter timer preset value
Reading this register gives the value of the upper 8 bits of the counter timer.
CTVL – Counter timer Value Registers, Lower 0 and 1
Bits 7:0
8 LSB of the Counter timer preset value
Reading this register gives the value of the upper 8 bits of the
counter timer.
NOTE: The counter timer should be stopped before reading. Usually
the clock of the counter timer is not synchronized with the read of
the C/T. It is therefore possible to capture changing data during the
read. Depending on the clock speed with respect to the read cycle
this could be made worse or completely eliminated. If the Stop
counter command is issued and following that the C/T is read there
will be no uncertainty go its value. If it is necessary to read the C/T
‘on the fly’ then reading it twice and comparing the values will
correct the problem. The double read will not be effective if the
counter timer clock is faster than a read cycle.
PBRGCS – Programmable BRG Clock Source
Bit 7 Bit 6:4 Bit 3 Bit 2:0
PBRG 1, Register control PBRG 1, Clock selection PBRG 0, Register control PBRG 0, Clock selection
0 = Resets PBRG 1 and
holds it stopped
1 = Allows PBRG 1 to run.
000 = Sclk
001 = Sclk / 2
010 = Sclk/ 16
011 = Sclk / 32
100 = Sclk / 64
101 = Sclk / 128
110 = I/O4 A
111 = Reserved
0 = Resets PBRG 0 and
holds it stopped.
1 = Allows PBRG 0 to run.
000 = Sclk
001 = Sclk / 2
010 = Sclk / 16
011 = Sclk / 32
100 = Sclk / 64
101 = Sclk / 128
110 = I/O3 A
111 = Reserved
Start/Stop control and clock select register for the two BRG
counters. The clock selection is for the input to the counters. It is
that clock divided by the number represented by the PBRGPU and
PBRGPL the will be used as the 16x clock for the receivers and
transmitters. When the BRG timer Clock is selected for the
receiver(s) or transmitter(s) the receivers and transmitters will
consider it as a 16x clock and further device it by 16. In other words
the receivers and transmitters will always be in the 16x ode of
operation when the internal BRG timer is selected for their clock.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
33
CTPU Counter Timer Preset Upper 0 and 1
CTPU
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
The lower eight (8) bits for the 16 bit counter timer preset register
CTPL Counter –Timer Preset Low 0 and 1
CTPL
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
The Upper eight (8) bits for the 16 bit counter timer preset register
The CTPU and CTPL hold the eight MSBs and eight LSBs,
respectively, of the value to be used by the counter/timer in either
the counter or timer modes of operation. The minimum value that
may be loaded into the CTPU/CTPL registers is H‘0000’. Note that
these registers are write–only and cannot be read by the CPU.
In the timer mode, the C/T generates a square wave whose period is
twice the value (in C/T clock periods) of the CTPU and CTPL. The
waveform so generated is often used for a data clock. The formula
for calculating the divisor n to load to the CTPU and CTPL for a
particular 1X data clock is shown below.
NOTE: The 2 in the denominator is for the Square wave generation.
For the Pulse mode change the 2 to a 1.
n +
C/T clock input frequency
(2 16 (Baud rate desired))
(If the pulse mode is selected, then ‘2’ in the divisor should be ‘1’.
This doubles the C/T output speeds for any given input clock.)
Often this division will result in a non–integer number, 26.3 for
example. One can only program integer numbers in a digital divider.
Therefore, 26 would be chosen. This gives a baud rate error of
0.3/26.3, which is 1.14% and well within the ability asynchronous
mode of operation.
If the value in CTPU and CTPL is changed, the current half–period
will not be affected, but subsequent half periods will be. The C/T will
not be running until it receives an initial ‘Start Counter’ command
from the command register (or a read at address A6–A0 = 0001110
in the lower 16 position address space) . After this, while in timer
mode, the C/T will run continuously. Receipt of a start counter
command causes the counter to terminate the current timing cycle
and to begin a new cycle using the values in CTPU and CTPL.
The counter ready status bit (ISR [3]) is set once each cycle of the
square wave. The bit is reset by a stop counter command from the
command register (or a read with A6–A0 = 0x0F in the lower 16
position address space). The command however, does not stop the
C/T. the generated square wave is output on I/O3 if it is programmed
to be the C/T output. In the counter mode, the value C/T loaded into
CTPU and CTPL by the CPU is counted down to 0. Counting begins
upon receipt of a start counter command. Upon reaching terminal
count H‘0000’, the counter ready interrupt bit (ISR [3]) is set. The
counter continues counting past the terminal count until stopped by
the CPU. If I/O3 is programmed to be the output of the C/T, the
output remains high until terminal count is reached; at which time it
goes low. The output returns to the High State and ISR [3] is cleared
when the counter is stopped by a stop counter command. The CPU
may change the values of CTPU and CTPL at any time, but the new
count becomes effective only on the next start counter commands. If
new values have not been loaded, the previous count values are
preserved and used for the next count cycle
In the counter mode, the current value of the upper and lower 8 bits
of the counter (CTPU, CTPL) may be read by the CPU. It is
recommended that the counter be stopped when reading to prevent
potential problems that may occur if a carry from the lower 8 bits to
the upper 8 bits occurs between the times that both halves of the
counter are read. However, note that a subsequent start counter
command will cause the counter to begin a new count cycle using
the values in CTPU and CTPL. When the C/T clock divided by 16 is
selected, the maximum divisor becomes 1,048,575.
The CTS, RTS, CTS Enable Tx signals
CTS (Clear To Send) is usually meant to be a signal to the
transmitter meaning that it may transmit data to the receiver. The
CTS input is on pin I/O0 A for Tx A and on I/O1 A for Tx B. The CTS
signal is active low; thus; it is called CTSN A for Tx A and CTSN B
for Tx B. RTS is usually meant to be a signal from the receiver
indicating that the receiver is ready to receive data. It is also active
low and is, thus, called RTSN A for Rx A and RTSN B for Rx B.
RTSN A is on pin I/O0 B and RTSN B is on I/O1 B. A receiver’s
RTSN output will usually be connected to the CTS input of the
associated transmitter. Therefore, one could say that RTS and CTS
are different ends of the same wire!
MR2 (4) is the bit that allows the transmitter to be controlled by the
CTS pin (I/O0 A or I/O1 A). When this bit is set to one AND the CTS
input is driven high, the transmitter will stop sending data at the end
of the present character being serialized. It is usually the RTS output
of the receiver that will be connected to the transmitter’s CTS input.
The receiver will set RTS high when the receiver FIFO is full AND
the start bit of the ninth character is sensed. Transmission then
stops with nine valid characters in the receiver. When MR2 (4) is set
to one, CTSN must be at zero for the transmitter to operate. If MR2
(4) is set to zero, the I/O pin will have no effect on the operation of
the transmitter. MR1 (7) is the bit that allows the receiver to control
I/O0 B. When the receiver controls I/O0 B (or I/O1 B), the meaning
of that pin will be the RTSN function.

SC28L202A1DGG,129

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
UART Interface IC 3-5V 2CH UART 3MBPS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union