| 전자부품 데이터시트 검색엔진 |
|
MPC82x52AS 데이터시트(PDF) 49 Page - Megawin Technology Co., Ltd |
|
|
|||||||||||||||||||||||||||||
MPC82x52AS 데이터시트(HTML) 49 Page - Megawin Technology Co., Ltd |
|
49 / 72 page ![]() MEGAWIN MPC82x52A Data Sheet 49 Set the clock rate of the SPI as the frequency of the clock source over 64. {1,1} := Set the clock rate of the SPI as the frequency of the clock source over 128. There are two extra SFRs make relation with SPI application. SFR: SPIDAT (SPI Data register) Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0 Data to be transmitted or Data received The SFR SPIDAT holds the data to be transmitted or the data received. SFR: SPISTAT (SPI Status register) Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0 SPIF WCOL - - - - - - SPIF := SPI transfer completion flag. When a serial transfer finishes, the SPIF bit is set and an interrupt is generated if both the ESPI (IE.5) bit and the EA (IE.7) bit are set. If SS is an input and is driven low when SPI is in master mode with SSIG=0, SPIF will also be set to signal the “mode change”. The SPIF is cleared in software by “writing 1 to this bit”. WCOL := SPI Write Collision flag The WCOL bit is set if the SPI data register SPIDAT is written during a data transfer. The WCOL flag is cleared in software by “writing 1 to this bit”. Configure the device to Master/Slave mode SPEN SSIG SS MSTR Mode MISO MOSI SPICLK Remark 0 X X X SPI disable GPI/O GPI/O GPI/O SPI is disabled. 1 0 0 0 Active Salve output input input Selected as slave 1 0 1 0 InActive Slave Hi-Z input input Not selected. 1 0 0 1→0 slave output input input Convert from Master to Slave 1 0 1 1 Master input output output SPICLK depends on CPOL 1 1 X 0 Slave output input input Slave 1 1 X 1 Master input output output Master |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |