数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

T80C5112-RKSCV 数据表(PDF) 43 Page - ATMEL Corporation

部件名 T80C5112-RKSCV
功能描述  8-bit Microcontroller with A/D converter
PDF  97 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ATMEL [ATMEL Corporation]
网页  http://www.atmel.com
标志 ATMEL - ATMEL Corporation

T80C5112-RKSCV 数据表(HTML) 43 Page - ATMEL Corporation

Back Button T80C5112-RKSCV Datasheet HTML 39Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 40Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 41Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 42Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 43Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 44Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 45Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 46Page - ATMEL Corporation T80C5112-RKSCV Datasheet HTML 47Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 43 / 97 page
background image
Rev. B - November 10, 2000
43
Preliminary
T80C5112
Figure 17. Full-Duplex Master-Slave Interconnection
12.4.1.1. Master mode
The SPI operates in Master mode when the Master bit, MSTR1, in the SPCON register is set. Only one Master
SPI device can initiate transmissions. Software begins the transmission from a Master SPI module by writing to
the Serial Peripheral Data Register (SPDAT). If the shift register is empty, the byte is immediately transferred to
the shift register. The byte begins shifting out on MOSI pin under the control of the serial clock, SCK. Simultaneously,
another byte shifts in from the Slave on the MasterÕs MISO pin. The transmission ends when the Serial Peripheral
transfer data flag, SPIF, in SPSTA becomes set. At the same time that SPIF becomes set, the received byte from
the Slave is transferred to the receive data register in SPDAT. Software clears SPIF by reading the Serial Peripheral
Status register (SPSTA) with the SPIF bit set, and then reading the SPDAT.
When the pin SS is pulled down during a transmission, the data is interrupted and when the transmission is
established again, the data present in the SPDAT is resent.
12.4.1.2. Slave mode
The SPI operates in Slave mode when the Master bit, MSTR2, in the SPCON register is cleared. Before a data
transmission occurs, the Slave Select pin, SS, of the Slave device must be set to Õ0Õ.SS must remain low until
the transmission is complete.
In a Slave SPI module, data enters the shift register under the control of the SCK from the Master SPI module.
After a byte enters the shift register, it is immediately transferred to the receive data register in SPDAT, and the
SPIF bit is set. To prevent an overflow condition, Slave software must then read the SPDAT before another byte
enters the shift register3. A Slave SPI must complete the write to the SPDAT (shift register) at least one bus cycle
before the Master SPI starts a transmission. If the write to the data register is late, the SPI transmits the data
already in the shift register from the previous transmission.
12.4.2. Transmission Formats
Software can select any of four combinations of serial clock (SCK) phase and polarity using two bits in the SPCON:
the Clock POLarity (CPOL4) and the Clock PHAse (CPHA4). CPOL defines the default SCK line level in idle
state. It has no significant effect on the transmission format. CPHA defines the edges on which the input data are
sampled and the edges on which the output data are shifted (Figure 18 and Figure 19). The clock phase and polarity
should be identical for the Master SPI device and the communicating Slave device.
1.
The SPI module should be configured as a Master before it is enabled (SPEN set). Also the Master SPI should be configured before the Slave SPI.
2.
The SPI module should be configured as a Slave before it is enabled (SPEN set).
3.
The maximum frequency of the SCK for an SPI configured as a Slave is the bus clock speed.
4.
Before writing to the CPOL and CPHA bits, the SPI should be disabled (SPEN = Õ0Õ).
8-bit Shift register
SPI
Clock Generator
Master MCU
8-bit Shift register
MISO
MISO
MOSI
MOSI
SCK
SCK
VSS
VDD
SS
SS
Slave MCU



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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