Mode 3 (TV remote) Receive Choices
The modulation frequency must be set into the
modulator divider registers. The tolerance on the
expected frequency must be programmed into
the Receive ASK Timing Sensitivity (RATS) reg-
ister. The RATS register sets the time window
that the demodulator will accept for the period of
valid data. Since the RATS register specifies
time windows which are negative (e.g. 1000b (8)
= +0.27 µs to -4.61 µs), then the modulation
frequency must be set to lower than the desired
nominal setting. For example, with RATS set to
1000 (8), and the desired nominal frequency be-
ing 38 kHz, then set the modulation divider
registers to 35.10 kHz. With these settings, the
demodulator will accept any frequency from
34.78 kHz to 41.88 kHz as valid. Smaller RATS
register settings will result in tighter tolerance on
the accepted receive modulation frequency.
Changes in the RATS register settings must be
accompanied by changes in the modulation fre-
quency register to keep the nominal desired
frequency in the center of the valid frequency
band.
There are two TV remote receive data modes:
"oversampled" mode and "programmed T pe-
riod" mode. For "oversampled" mode, first
choose the UART to CS8130 baud rate, typically
115.2 kbps. Then set the TV remote receive tim-
ing register to a rate which is less than 80% of
the UART baud rate. The CS8130 will now start
sampling the demodulated infrared data at the
TV remote receive sample rate. The stream of
samples will be assembled into characters, with a
start bit and a stop bit, and will be transmitted to
the UART via RXD at the UART baud rate. The
system software can then concatenate successive
characters and reconstruct the incoming bit
stream.
"Programmed T period" mode requires that the
bit period of the bursts of modulated carrier be
known. This period is programmed into the TV
remote receive timing registers. The UART to
CS8130 baud rate must be set to at least 20%
greater than 1/T. The CS8130 will now use the
edges of the demodulated incoming infrared data
to indicate each bit state. For continuous periods
of low or high, the CS8130 will sample the level
in the center of each incoming bit period (using
T as the bit period). Any transition will reset the
timer that is used for the sampling process,
thereby eliminating errors caused by the sample
timing being different to the incoming bit period.
Characters are assembled and sent to the UART
every 8 bits (see Figure 6).
If the T period is not known, it is possible to
measure T by using "oversampled" mode, and
1
0 1
1
00
1
110
0
11
0
01 1
0
0
1
01
1
00
1
1
1/2400
LIGHT
INPUT
RXD*
RXD*
LIGHT
NO LIGHT
Stop
Bit
8 data bits
Start
Bit
*RXD Baud rate can be set
from 4800 to 115200 bps
Figure 6. Mode 3 (TV remote) Receive Data Format
CS8130
10 DS134PP2
CS8130
10 DS134F1
then switch to "programmed T period" mode to
reduce processing overhead in the host CPU.
Clock Generation
The primary clock required is 3.6864 MHz. This
may be generated by attaching a 3.6864 MHz
crystal to the XTALIN and XTALOUT pins. In
this case, the EXTCLK pin becomes an output,
and may be used to drive external devices. If this
is not required, power may be saved by disabling
the EXTCLK output. The CLKFR pin should be
connected to DGND, which causes the clock cir-
cuits to be configured for 3.6864 MHz operation.
The oscillator has a low power mode. This re-
duces the internal crystal loading capacitance on
XTALOUT and XTALIN. The selection of this
mode is via a bit in Control Register #4. Since
the loading capacitance is reduced, then the crys-
tal frequency will increase by approximately
0.03%.
Alternatively, a 3.6864 MHz clock may be input
into the EXTCLK pin, in which case XTALIN
must be grounded, and XTALOUT is left float-
ing. The CLKFR pin must be connected to
DGND.
If only a 1.8432 MHz clock is available, then it
may be input into the EXTCLK pin and the
CLKFR pin connected to VD+. This causes the
CS8130 to double the incoming 1.8432 MHz
clock to 3.6864 MHz for internal use. XTALIN
must be grounded, and the XTALOUT pin is left
floating.
The CS8130 automatically sets the direction of
the EXTCLK pin. If the crystal oscillator is run-
ning when RESET goes high, then EXTCLK
becomes an output. Since the crystal oscillator
can take up to 25 ms to start, then it follows that
RESET must be held low, with PWRDN high
and power applied, for at least 25 ms. If using an
external clock, then RESET low can be short
(>1 µs).
Power Down
When the
PWRDN pin is brought low, all inter-
nal logic is stopped, including the crystal
oscillator. The power consumption in power
down mode is very low (<1 µA). When the
PWRDN pin is brought high, the crystal oscilla-
tor will start. If using the crystal oscillator, allow
25 ms for oscillator start up after bringing
PWRDN high, before trying to use the CS8130.
The control register status will not be changed
by toggling PWRDN.
Control Register #1 allows for individual dis-
abling and enabling of the transmit and receive
sections of the CS8130.
The CS8130 also goes into power down if both
transmit enable and receive enable bits are false,
and the D/C pin is brought high. This allows
control of power down in a pod environment,
where access to the
PWRDN pin is difficult. In
this mode, it is possible to select, via a control
register bit, whether the crystal oscillator remains
running, or is powered off. If the oscillator re-
mains running, then it consumes power, but
offers instant wake up. If the oscillator is pow-
ered off, then it consumes no power, but will
take 25 ms to start up.
The
PWRDN pin must always be ’high’ or
’low’. If this pin is allowed to float, excessive
power consumption may occur. All other digital
inputs may be allowed to float without causing
excessive power consumption in the CS8130 in
power down mode.
The RXD and FORM/BSY output pins may be
programmed to be high, low or float in power
down. This allows maximum flexibility in differ-
ent applications.
CS8130
DS134PP2 11
CS8130
DS134F1 11
Reset
Bringing the
RESET pin low will force the inter-
nal logic, including the control registers, into a
known state, provided the
PWRDN pin is high.
RESET is disabled if the PWRDN pin is low.
The reset state is given in each register definition
table.
RESET must be low for >25 ms if using
the crystal oscillator (see Clock Generation
above).
Control Register Definitions
The various control registers within the CS8130
may be written by setting the D/
C pin to low,
and sending characters from the UART to the
TXD pin. The characters are interpreted as a 4-
bit address field and a 4-bit data field, as shown
in Figure 7. After the control character is re-
ceived and written into the control register, it is
optionally echoed back out the RXD pin. The
baud rate used for this control mode is whatever
is currently set in the baud rate register. If the
"load baud rate" bit is written to, then the new
baud rate takes effect after the character has been
echoed back, if echo is enabled. Otherwise, the
new baud rate is effective immediately.
One of the control registers contains a shadow
register set enable bit, which effectively becomes
the MSB of the 5-bit register address. Hence
there are 31 4-bit registers. The shadow bit must
be written to a 1 to allow access to the registers
with addresses 16 through 31. The shadow bit
register is always accessible, independent of the
state of the shadow bit. The shadow bit must be
written to 0 to enable access to registers 0
through 15.
The following tables define the detailed function
of all the registers inside the CS8130.
CD0 CD1 CD2 CD3 AD0 AD1
AD2
AD3
CD0 CD1 CD2 CD3 AD0
AD1
AD2
AD3
Start
Bit
Data Address
Stop
Bit
Start
Bit
Data Address
Stop
Bit
TXD
D/C
RXD
Figure 7. Control Mode Timing
CS8130
12 DS134PP2
CS8130
12 DS134F1

CS8130-CS

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Infrared Transceivers IC Multi-Standard Infrared Transceiver
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet