English
Language : 

HT56RB27 Datasheet, PDF (58/153 Pages) Holtek Semiconductor Inc – TinyPowerTM A/D Type Smart Card OTP MCU with DAC, ISO 7816 and USB Interfaces
HT56RB27
TinyPowerTM A/D Type Smart Card OTP MCU
with DAC, ISO 7816 and USB Interfaces
Serial Interface Function - SIM
The device contains two Serial Interface Modules named SIM0 and SIM1 to implement Serial
Interface Function, which includes both the four line SPI interface and the two line I2C interface types,
to allow an easy method of communication with external peripheral hardware. Having relatively
simple communication protocols, these serial interface types allow the microcontroller to interface to
external SPI or I2C based hardware such as sensors, Flash or EEPROM memory, etc. The SIM
interface pins are pin-shared with other I/O pins therefore the SIM interface function must first be
selected using a configuration option. As both interface types share the same pins and registers, the
choice of whether the SPI or I2C type is used is made using a bit in an internal register.
D a ta B u s
S IM n D R
T x /R x S h ift R e g is te r
S D In P in
S D O n P in
C K E G n b it
C K P O L n b it
S C K n P in
fS Y S
fS U B
T im e r /E v e n t C o u n te r
S C S n P in
C S E N n b it
C lo c k
E d g e /P o la r ity
C o n tro l
C lo c k
S o u r c e S e le c t
B usy
S ta tu s
E n a b le /D is a b le
C o n fig u r a tio n
O p tio n
C o n fig u r a tio n
O p tio n
E n a b le /D is a b le
SPI Block Diagram
W C O L n F la g
T R F n F la g
SPI Interface
The SPI interface is often used to communicate with external peripheral devices such as sensors, Flash
or EEPROM memory devices etc. Originally developed by Motorola, the four line SPI interface is a
synchronous serial data interface that has a relatively simple communication protocol simplifying the
programming requirements when communicating with external hardware devices.
The communication is full duplex and operates as a slave/master type, where the MCU can be either
master or slave. Although the SPI interface specification can control multiple slave devices from a
single master, here, as only a single select pin, SCS, is provided only one slave device can be connected
to the SPI bus.
S P I M a s te r
SCK
SDO
SDI
SCS
S P I S la v e
SCK
SDI
SDO
SCS
SPI Master/Slave Connection
Rev. 1.20
58
April 26, 2013