Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

HT56R22 Arkusz danych(PDF) 79 Page - Holtek Semiconductor Inc

Numer części HT56R22
Szczegółowy opis  TinyPowerTM A/D Type 8-Bit OTP MCU with DAC
Download  127 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  HOLTEK [Holtek Semiconductor Inc]
Strona internetowa  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT56R22 Arkusz danych(HTML) 79 Page - Holtek Semiconductor Inc

Back Button HT56R22_14 Datasheet HTML 75Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 76Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 77Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 78Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 79Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 80Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 81Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 82Page - Holtek Semiconductor Inc HT56R22_14 Datasheet HTML 83Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 79 / 127 page
background image
HT56R22/HT56R23/HT56R24/HT56R25/HT56R26
Rev. 1.30
79
December 26, 2014
SPI Bus Enable/Disable
To enable the SPI bus, the SBEN bit should be set high,
then wait for data to be written to the SBDR (TXRX
buffer) register. For the Master Mode, after data has
been written to the SBDR (TXRX buffer) register then
transmission or reception will start automatically. When
all the data has been transferred, the TRF1 bit should be
set. For the Slave Mode, when clock pulses are re-
ceived on SCK1, data in the TXRX buffer will be shifted
out or data on SDI1 will be shifted in. When the SPI bus
is disabled, SCK1, SDI1, SDO1 and SCS1 will be setup
as I/O pins.
SPI Operation
The SPI is selected using the application program. All
communication is carried out using the 4-line interface
for both Master or Slave Mode. The CSEN1 bit in the
SPICTL1 register controls the SCSB line of the SPI in-
terface. Setting this bit high, will enable the SPI interface
by allowing the SCS1 line to be active, which can then
be used to control the SPI interface. If the CSEN1 bit is
low, the SCS1 line will be in a floating condition and can
therefore not be used for control of the SPI interface.
When the CSEN1 bit is set high then SDI1 line will be
placed in a floating condition and the SDO1 line will be
high. If in the Master Mode, the SCK1 line will be either
high or low depending upon the clock polarity configura-
tion option. If in the Slave Mode the SCK1 line will be in a
floating condition. If CSEN1 is low then the bus will be
disabled and SCS1, SDI1, SDO1 and SCK1 will all be in
a floating condition. The SPI function keeps running in
the IDLE mode - the SPI module can still operate after a
HALT instruction is executed. The CKEG1 and CKPOL1
bits must be setup before the SPI is enabled; otherwise
undesired clock edge may be generated.
In the Master Mode, the Master will always generate the
clock signal. The clock and data transmission will be ini-
tiated after data has been written to the SBDR register.
In the Slave Mode, the clock signal will be received from
an external master device for both data transmission or
reception. The following sequences show the order to
be followed for data transfer in both Master and Slave
Modes:
· Master Mode
¨ Step 1
Setup the SPI2~SPI0 bits in the SPICTL0 control
register to select the Master Mode and the required
clock speed. Values of 000~101 can be selected.
¨ Step 2
Setup the SPIEN bit and setup the MLS1 bit to
choose if the data is MSB or LSB first, this must be
same as the Slave device.
¨ Step 3
Setup the CSEN1 bit in the SPICTL1 control regis-
ter to enable the SPI interface.
¨ Step 4
For write operations: write the data to the SBDR
register, which will actually place the data into the
TXRX buffer. Then use the SCK1 and SCS1 lines to
output the data. Then goto to step 5. For read oper-
ations: the data transferred in on the SDI1 line will
be stored in the TXRX buffer until all the data has
been received at which point it will be latched into
the SBDR register.
¨ Step 5
Check the WCOL1 bit, if set high then a collision er-
ror has occurred so return to Step 4. If zero then go
to the following step.
¨ Step 6
Check the TRF1 bit or wait for an SPI serial bus in-
terrupt.
¨ Step 7
Read data from the SBDR register.
¨ Step 8
Clear flag TRF1.
¨ Step 9
Goto step 4.
· Slave Mode
¨ Step 1
Setup the SPI2~SPI0 bits to 101 to select the Slave
Mode.
¨ Step 2
Setup the SPIEN bit and setup the MLS1 bit to
choose if the data is MSB or LSB first, this must be
same as the Master device.
¨ Step 3
Setup the CSEN1 bit in the SPICTL1 control regis-
ter to enable the SPI interface.
¨ Step 4
For write operations: write data to the SBDR regis-
ter, which will actually place the data into the TXRX
register, then wait for the master clock and SCS1
signal. After this goto Step 5. For read operations:
the data transferred in on the SDI1 line will be
stored in the TXRX buffer until all the data has been
received at which point it will be latched into the
SBDR register.
¨ Step 5
Check the WCOL1 bit, if set high then a collision er-
ror has occurred so return to step 4. If equal to zero
then goto the following step.
¨ Step 6
Check the TRF1 bit or wait for an SPI interrupt.
¨ Step 7
Read data from the SBDR register.
¨ Step 8
Clear TRF1
¨ Step 9
Goto step 4


Podobny numer części - HT56R22_14

ProducentNumer częściArkusz danychSzczegółowy opis
logo
Holtek Semiconductor In...
HT56R22 HOLTEK-HT56R22_12 Datasheet
824Kb / 134P
   TinyPowerTM A/D Type 8-Bit OTP MCU with DAC
More results

Podobny opis - HT56R22_14

ProducentNumer częściArkusz danychSzczegółowy opis
logo
Holtek Semiconductor In...
HT56R22 HOLTEK-HT56R22 Datasheet
739Kb / 131P
   TinyPowerTM A/D Type 8-Bit OTP MCU with DAC
HT56R22 HOLTEK-HT56R22_12 Datasheet
824Kb / 134P
   TinyPowerTM A/D Type 8-Bit OTP MCU with DAC
HT56R66 HOLTEK-HT56R66_12 Datasheet
745Kb / 104P
   TinyPowerTM A/D Type with LCD 8-Bit OTP MCU
HT56R62 HOLTEK-HT56R62_12 Datasheet
786Kb / 108P
   TinyPowerTM A/D Type with LCD 8-Bit OTP MCU
HT56R62 HOLTEK-HT56R62_13 Datasheet
5Mb / 145P
   TinyPowerTM A/D Type with LCD 8-Bit OTP MCU
HT56R64 HOLTEK-HT56R64_12 Datasheet
674Kb / 90P
   TinyPowerTM A/D Type with LCD 8-Bit OTP MCU
HT56R67 HOLTEK-HT56R67_10 Datasheet
696Kb / 104P
   TinyPowerTM A/D Type with LCD 8-Bit MCU
HT56R67 HOLTEK-HT56R67_12 Datasheet
758Kb / 104P
   TinyPowerTM A/D Type with LCD 8-Bit MCU
HT45R37 HOLTEK-HT45R37_11 Datasheet
672Kb / 100P
   TinyPowerTM C/R-F Type 8-Bit OTP MCU
HT45R37 HOLTEK-HT45R37 Datasheet
614Kb / 99P
   TinyPowerTM C/R-F Type 8-Bit OTP MCU
More results


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


Arkusz danych Pobierz

Go To PDF Page


Link URL




Polityka prywatności
ALLDATASHEET.PL
Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Linki   |   Lista producentów
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