| Electronic Components Datasheet Search |
|
MPC82x52AS Datasheet(PDF) 49 Page - Megawin Technology Co., Ltd |
|
|
|||||||||||||||||||||||||||||
MPC82x52AS Datasheet(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 |
|
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 |
| 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 |