ht82k75rew Holtek Semiconductor Inc., ht82k75rew Datasheet - Page 85

no-image

ht82k75rew

Manufacturer Part Number
ht82k75rew
Description
Ht82m75rew/ht82k75rew 2.4ghz Transceiver 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Rev. 1.00
As the RF Transceiver slave SPI timing diagram shows, the SPI data output mode selection SPI_MODE and the
clock polarity selection SPI_CPOL of the master SPI should be correctly set to fit the slave SPI protocol requirement.
To successfully communicate with the RF Transceiver slave SPI, the SPI_MODE and SPI_CPOL of the MCU master
SPI should be set to [1, 1].
For the MCU master SPI to completely control the slave SPI SEN line, the MCU master SPI uses a general purpose
I/O line via application program instead of the SPI SCS line with hardware mechanism. To achieve this requirement,
the software CSEN enable control bit SPI_CSEN of the Master SPI should be set to 0, then the master SPI SCS line
will lose the SCS line characteristics and be configured as a general purpose I/O line.
Finally set the SPI_EN bit to 1 to ensure that the pin-shared function for other three SPI lines known as SCK, SDI and
SDO are surely selected.
SPI_MODE and SPI_CPOL setup in SPIR Register
The relevant timing diagram for the above setting is shown in the preceding SPI Bus Timing diagram in SPI Serial
Interface section.
SPI_CSEN software CSEN enable control bit in SPIR Register
0: the software CSEN function is disabled and the SCS line is configured as an I/O line
SPI_EN software SPI interface lines enable control bit in SPIR Register
1: the pin-shared function of the SPI interface lines is enabled.
After the above setup conditions have been implemented, the MCU can enable the SPI interface by setting the
SBEN bit high. The MCU can then begin communication with the RF Transceiver using the SPI interface. The de-
tailed MCU Master SPI functional description is provided within the SPI Serial Interface section of the MCU
datasheet.
Setting value
Name
Setting value
Setting value
Bit
Name
Name
Bit
Bit
SPI_MODE
Bit 1
1
SPI_CSEN
SPI_EN
Bit 5
Bit 5
SPI_CPOL
0
1
Bit 0
1
85
HT82M75REW/HT82K75REW
June 11, 2010

Related parts for ht82k75rew