Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HT56RB688 Datasheet(PDF) 75 Page - Holtek Semiconductor Inc

Part # HT56RB688
Description  TinyPowerTM A/D Type Smart Card OTP MCU with LCD, DAC, ISO 7816 and USB Interfaces
PDF  164 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT56RB688 Datasheet(HTML) 75 Page - Holtek Semiconductor Inc

Back Button HT56RB688_13 Datasheet HTML 71Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 72Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 73Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 74Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 75Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 76Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 77Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 78Page - Holtek Semiconductor Inc HT56RB688_13 Datasheet HTML 79Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 75 / 164 page
background image
SPI Registers
There are three internal registers which control the overall operation of the SPI interface for each SIM.
These are the SIMnDR data register and two control registers SIMnCTL0 and SIMnCTL2. Note that
the SIMnCTL1 register is only used by the I
2C interface.
Pin
Master/Salve
SIMnEN=0
Master - SIMnEN=1
Slave - SIMnEN=1
CSENn=1
CSENn=0
CSENn=0
SCSn Line=0
(CSENn=1)
SCSn Line=1
(CSENn=1)
SCSn
ZL
Z
Z
I, Z
I, Z
SDOn
Z
OOOO
Z
SDIn
Z
I, Z
I, Z
I, Z
I, Z
Z
SCKn
Z
H: CKPOLn=0
L: CKPOLn=1
H: CKPOLn=0
L: CKPOLn=1
I, Z
I, Z
Z
Note:
²Z² floating, ²H² output high, ²L² output low, ²I² Input, ²O²output level, ²I,Z² input floating (no pull-high)
SPI Interface Pin Status
The SIMnDR register is used to store the data being transmitted and received. The same register is
used by both the SPI and I
2C functions. Before the microcontroller writes data to the SPI bus, the actual
data to be transmitted must be placed in the SIMnDR register. After the data is received from the SPI
bus, the microcontroller can read it from the SIMnDR register. Any transmission or reception of data
from the SPI bus must be made via the SIMnDR register.
Bit
76543210
Label
SnD7
SnD6
SnD5
SnD4
SnD3
SnD2
SnD1
SnD0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
XXXXXXXX
There are also two control registers for the SPI interface, SIMnCTL0 and SIMnCTL2. Note that the
SIMnCTL2 register also has the name SIMnAR which is used by the I
2C function. The SIMnCTL1
register is not used by the SPI function, only by the I
2C function. Register SIMnCTL0 is used to con-
trol the enable/disable function and to set the data transmission clock frequency. Although not con-
nected with the SPI function, the SIMnCTL0 register is also used to control the Peripheral Clock
prescaler. Register SIMnCTL2 is used for other control functions such as LSB/MSB selection, write
collision flag etc.
The following gives further explanation of each SIM related register bit.
· SIMIDLE
The SIMIDLE bit is used to select if the master SPI interface continues running when the device is in
the IDLE mode. Setting the bit high allows the clock source of the master SPI interface or the
Peripheral clock PCLK, which is selected to come from the divided system clock, to keep active
when the device is in the IDLE mode. This will maintain the master SPI interface operation or the
Peripheral clock PCLK output active if the PCKEN bit is set to 1 in IDLE mode. Clearing the bit to
zero disables any master SPI interface operations or PCLK output in the IDLE mode. This SPI/I
2C
idle mode control bit SIMIDLE is located at CLKMOD register bit4.
· SIMnEN
The bit is the overall on/off control for the SPI interface. When the SIMnEN bit is cleared to zero to
disable the SPI interface, the SDIn, SDOn, SCKn and SCSn lines will be in a floating condition and
the SPI operating current will be reduced to a minimum value. When the bit is high the SPI interface
is enabled. The SIMn configuration option must have first enabled the SIMn interface for this bit to
be effective. Note that when the SIMnEN bit changes from low to high the contents of the SPI
control registers will be in an unknown condition and should therefore be first initialised by the
application program.
HT56RB688
TinyPowerTM A/D type Smart Card OTP MCU
with LCD, DAC, ISO 7816 and USB Interfaces
Rev. 1.10
75
April 15, 2013



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com