English
Language : 

TDA7333N Datasheet, PDF (30/36 Pages) STMicroelectronics – RDS/RBDS processor
Functional description
3.10
SPI Mode
Figure 16. SPI data transfer
TDA7333N
CSN
CLK
DATAIN
DATAOUT
tcsu
tsu
th
todv toh tcl tch
1
2
3
4
5
6
7
8
tcsh td
63
64
rds_int[1] rds_int[0]
rds_int[7] rds_int[6] rds_int[5] rds_int[4] rds_int[3] rds_int[2] rds_int[1] rds_int[0]
testreg[1] testreg[0]
update of shift of DATAIN
shiftregister with in shiftregister
registers content
update of registers
with shiftregister
content if requested
This interface consists of four lines (Figure 16). A serial data input (DATAIN), a serial data
output (DATAOUT), a chip select input (CSN) and a bit clock input (CLK).
The interface is capable of operating up to 1 MHz. If during the setup the system clock fsys
is smaller then 8.55 MHz, then the max. SPI speed decreases linear (e.i. if fsys = 4.275 MHz
then the maximum SPI speed is 500 kHz for setup).
CSN starts and stops the data transfer. After starting data transfer, one bit is shifted out
(DATAOUT) with the active bit clock edge (CLK) and at the same time one bit in (DATAIN).
When CSN stops the data transfer, the pllreg0[7:0], pllreg1[7:0] pllreg2[7:0], pllreg3[7:0],
pllreg4[7:0], rdstest[7:0], sinc4reg[7:0], rds_bd_ctrl[7:0], rds_int[7:0] registers can be
updated with the last bytes which have been shifted in.
The last byte shifted in on DATAIN must be always rds_int[7:0] and the last but one is
rds_bd_ctrl[7:0], and so on, as listed above. In other words, the master has take into
account the number of bytes to transfer before starting, to be sure that the last byte shifted in
at DATAIN is rds_int[7:0].
If the pllreg0[7:0], pllreg1[7:0] pllreg2[7:0], pllreg3[7:0], pllreg4[7:0], rdstest[7:0],
sinc4reg[7:0], rds_bd_ctrl[7:0], rds_int[7:0] registers will be updated depends on the MSB of
rds_int. If rds_int[7] = 1 all registers listed above are updated (refer to page 18). The
registers pllreg3-1 are only updated if they are shifted completely into the SPI.
sinc4reg[7:0] and testreg[7:0] are dedicated for test and have to be kept zero filled in the
application, independent if rds_int[7] bit is set or not.
Only the “bne” flag can be used for polling mode. There are two different ways to use
polling mode, while the first one causes less bus traffic than the second:
1. Read only the first register rds_int to check the “bne” bit.
If “bne” bit is not set, the CSN can be set, as shown in (Figure 19).
If “bne” bit is set, the transfer must be continued by the SPI master, until at least the
four register rds_qu, rds_corrp, rds_bd_h and rds_bd_l are read out, then the SPI
master is allowed to stop the transfer by pulling CSN up. Then the whole Buffer must be
read out, by reading each time at least the five registers rds_int, rds_qu, rds_corrp,
30/36