Electronic Components Datasheet Search
  English  ▼

X  

ST2202 Datasheet(PDF) 46 Page - List of Unclassifed Manufacturers

Part # ST2202
Description  8 BIT Integrated Microcontroller with 256K Bytes ROM
PDF  65 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ETC [List of Unclassifed Manufacturers]
Direct Link  
Logo ETC - List of Unclassifed Manufacturers

ST2202 Datasheet(HTML) 46 Page - List of Unclassifed Manufacturers

Back Button ST2202 Datasheet HTML 42Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 43Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 44Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 45Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 46Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 47Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 48Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 49Page - List of Unclassifed Manufacturers ST2202 Datasheet HTML 50Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 65 page
background image
Sitronix
ST2202
Ver 2.0a
46/65
2003-May-05
MSB
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
LSB
MSB
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
LSB
POL = 0
POL = 1
Output From Master
(MOSI)
From Master
Output From Slave
(MISO)
SS
FIGURE 17-2 Transmission Format (PHA = 0)
MSB
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
LSB
MSB
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
LSB
POL = 0
POL = 1
Output From Master
(MOSI)
From Master
Output From Slave
(MISO)
SS
FIGURE 17-3 Transmission Format (PHA = 1)
17.1.2 Transmit Buffer and Receive Buffer
Operations of transmit and receive buffers are discussed
below.
Transmit Buffer
The transmit buffer is 16-bit long, and is write-only. This
buffer is empty after the SPI was enabled at the beginning.
In the meantime, the transmit buffer empty flag TXEMP
(SSR[5]) will be set to indicate the status of buffer. Up to 16
bits of data can be filled with writes to SPI data registers
(SDATAL and SDATAH). TXEMP will be cleared after
SDATAL is wrote a value (Writing SDATAH will not affect
TXEMP). Once the shift register proceeds to exchange,
data in buffer will be loaded into shift register and TXEMP
will be set again. Meanwhile a SPI transmitter interrupt will
be issued and the transmit buffer can be filled with new
data for next transmission.
Receive Buffer
The receive buffer is 16-bit long, and is read-only. This
buffer is empty after the SPI was enabled first. In the
meantime, the receive buffer ready flag RXRDY (SSR[6])
will be cleared to indicate status of buffer. Two bytes of data
can be read from SDATAL and SDATAH. After completing
exchange, data in shift register will be loaded into receive
buffer, and then RXRDY will be set to indicate that the
received data is available. Next, RXRDY should be cleared
by one read instruction to SDATAL (Reading SDATAH will
not affect RXRDY). In case of master mode, if one
completed data is moving into receive buffer and RXRDY is
still set, the moving activity will no stop but the receive
buffer overrun flag OERR (SSR[1]) will be set to indicate
that an old data is overwrote. If it is in slave mode, the
receive buffer will not be overwrote while OERR equals “1”.
OERR can be cleared by reading SDATAL or by any write
to SSR.
17.1.3 Master, Slave Modes and The Shift Register
The SPI can operate in master or slave mode according to
SMOD (SCTR[0]). These two modes and operations of the
shift register for each are discussed below.
Master Mode
The SPI operates as a master device when setting SMOD.
In this mode, communication clock is provided by ST2202
with SCK (PC1). If there may have more than one master
connected, bus contention can be detected by setting mode
fault detection bit MEREN (SCTR[4]). SS signal should be
input and pulled high temporarily during this detection.
Once SS inputs low level, a mode fault status can be
reported at MDERR (SSR[2]).
Some SPI devices have DATA_READY output to suspend
the incoming transmission. Setting SRDY (PFC[5]) may
include timing of DATA_READY , while clearing this bit to
discard it. Communication clock and data transmission only
starts after DATA_READY returns to low level. The active
level of DATA_READY can be inverted to be high level
active by setting inversion control bit DRINV (SCTR[3]).
When transmission, data in shift register will be shifted to
master data output MOSI (PC3) with most significant bit
(MSB) first, while data from serial data input MISO (PC2)



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


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