Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

ST7LITE2 Datasheet(PDF) 73 Page - STMicroelectronics

Part # ST7LITE2
Description  8-BIT MICROCONTROLLER WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Download  133 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST7LITE2 Datasheet(HTML) 73 Page - STMicroelectronics

Back Button ST7LITE2 Datasheet HTML 69Page - STMicroelectronics ST7LITE2 Datasheet HTML 70Page - STMicroelectronics ST7LITE2 Datasheet HTML 71Page - STMicroelectronics ST7LITE2 Datasheet HTML 72Page - STMicroelectronics ST7LITE2 Datasheet HTML 73Page - STMicroelectronics ST7LITE2 Datasheet HTML 74Page - STMicroelectronics ST7LITE2 Datasheet HTML 75Page - STMicroelectronics ST7LITE2 Datasheet HTML 76Page - STMicroelectronics ST7LITE2 Datasheet HTML 77Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 73 / 133 page
background image
ST7LITE2
73/133
SERIAL PERIPHERAL INTERFACE (Cont’d)
11.4.3.3 Master Mode Operation
In master mode, the serial clock is output on the
SCK pin. The clock frequency, polarity and phase
are configured by software (refer to the description
of the SPICSR register).
Note: The idle state of SCK must correspond to
the polarity selected in the SPICSR register (by
pulling up SCK if CPOL=1 or pulling down SCK if
CPOL=0).
How to operate the SPI in master mode
To operate the SPI in master mode, perform the
following steps in order (if the SPICSR register is
not written first, the SPICR register setting (MSTR
bit ) may be not taken into account):
1. Write to the SPICR register:
– Select the clock frequency by configuring the
SPR[2:0] bits.
– Select the clock polarity and clock phase by
configuring the CPOL and CPHA bits. Figure
46 shows the four possible configurations.
Note: The slave must have the same CPOL
and CPHA settings as the master.
2. Write to the SPICSR register:
– Either set the SSM bit and set the SSI bit or
clear the SSM bit and tie the SS pin high for
the complete byte transmit sequence.
3. Write to the SPICR register:
– Set the MSTR and SPE bits
Note: MSTR and SPE bits remain set only if
SS is high.
Important note: if the SPICSR register is not writ-
ten first, the SPICR register setting (MSTR bit)
may be not taken into account.
The transmit sequence begins when software
writes a byte in the SPIDR register.
11.4.3.4 Master Mode Transmit Sequence
When software writes to the SPIDR register, the
data byte is loaded into the 8-bit shift register and
then shifted out serially to the MOSI pin most sig-
nificant bit first.
When data transfer is complete:
– The SPIF bit is set by hardware
– An interrupt request is generated if the SPIE
bit is set and the interrupt mask in the CCR
register is cleared.
Clearing the SPIF bit is performed by the following
software sequence:
1. An access to the SPICSR register while the
SPIF bit is set
2. A read to the SPIDR register.
Note: While the SPIF bit is set, all writes to the
SPIDR register are inhibited until the SPICSR reg-
ister is read.
11.4.3.5 Slave Mode Operation
In slave mode, the serial clock is received on the
SCK pin from the master device.
To operate the SPI in slave mode:
1. Write to the SPICSR register to perform the fol-
lowing actions:
– Select the clock polarity and clock phase by
configuring the CPOL and CPHA bits (see
Figure 46).
Note: The slave must have the same CPOL
and CPHA settings as the master.
– Manage the SS pin as described in Section
11.4.3.2 and Figure 44. If CPHA=1 SS must
be held low continuously. If CPHA=0 SS must
be held low during byte transmission and
pulled up between each byte to let the slave
write in the shift register.
2. Write to the SPICR register to clear the MSTR
bit and set the SPE bit to enable the SPI I/O
functions.
11.4.3.6 Slave Mode Transmit Sequence
When software writes to the SPIDR register, the
data byte is loaded into the 8-bit shift register and
then shifted out serially to the MISO pin most sig-
nificant bit first.
The transmit sequence begins when the slave de-
vice receives the clock signal and the most signifi-
cant bit of the data on its MOSI pin.
When data transfer is complete:
– The SPIF bit is set by hardware
– An interrupt request is generated if SPIE bit is
set and interrupt mask in the CCR register is
cleared.
Clearing the SPIF bit is performed by the following
software sequence:
1. An access to the SPICSR register while the
SPIF bit is set.
2. A write or a read to the SPIDR register.
Notes: While the SPIF bit is set, all writes to the
SPIDR register are inhibited until the SPICSR reg-
ister is read.
The SPIF bit can be cleared during a second
transmission; however, it must be cleared before
the second SPIF bit in order to prevent an Overrun
condition (see Section 11.4.5.2).
1


Similar Part No. - ST7LITE2

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
ST7LITE2 STMICROELECTRONICS-ST7LITE2 Datasheet
1Mb / 131P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
August 2003 Rev. 2.0
ST7LITE20 STMICROELECTRONICS-ST7LITE20 Datasheet
1Mb / 131P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
August 2003 Rev. 2.0
ST7LITE20F2 STMICROELECTRONICS-ST7LITE20F2 Datasheet
1Mb / 166P
   8-bit microcontroller with single voltage Flash memory, data EEPROM, ADC, Timers, SPI
June 2013 Rev 5
ST7LITE25 STMICROELECTRONICS-ST7LITE25 Datasheet
1Mb / 131P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
August 2003 Rev. 2.0
ST7LITE25F2 STMICROELECTRONICS-ST7LITE25F2 Datasheet
1Mb / 166P
   8-bit microcontroller with single voltage Flash memory, data EEPROM, ADC, Timers, SPI
June 2013 Rev 5
More results

Similar Description - ST7LITE2

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
ST7FLITE25F1B6 STMICROELECTRONICS-ST7FLITE25F1B6 Datasheet
1Mb / 166P
   8-bit microcontroller with single voltage Flash memory, data EEPROM, ADC, Timers, SPI
June 2013 Rev 5
ST7LITE0X STMICROELECTRONICS-ST7LITE0X Datasheet
1Mb / 125P
   8-BIT MICROCONTROLLER WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
ST7LITE0XY0 STMICROELECTRONICS-ST7LITE0XY0 Datasheet
2Mb / 124P
   8-bit microcontroller with single voltage Flash memory, data EEPROM, ADC, timers, SPI
ST7LITE0 STMICROELECTRONICS-ST7LITE0 Datasheet
1Mb / 122P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
August 2003 Rev. 2.4
ST7LITE2 STMICROELECTRONICS-ST7LITE2 Datasheet
1Mb / 131P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
August 2003 Rev. 2.0
ST7DALI STMICROELECTRONICS-ST7DALI Datasheet
2Mb / 141P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI, DALI
ST7FLIT19BF1B6 STMICROELECTRONICS-ST7FLIT19BF1B6 Datasheet
2Mb / 159P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, 5 TIMERS, SPI
ST7LITE1XB STMICROELECTRONICS-ST7LITE1XB_08 Datasheet
2Mb / 159P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, 5 TIMERS, SPI
ST7LITE1XB STMICROELECTRONICS-ST7LITE1XB Datasheet
2Mb / 157P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, 5 TIMERS, SPI
ST7LITE1 STMICROELECTRONICS-ST7LITE1 Datasheet
1Mb / 131P
   8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, 4 TIMERS, SPI
December 2004 Rev. 2.0
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


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   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