| Electronic Components Datasheet Search |
|
CDP68HC68A2M Datasheet(PDF) 6 Page - Intersil Corporation |
|
|
|||||||||||||||||||||||||||||
CDP68HC68A2M Datasheet(HTML) 6 Page - Intersil Corporation |
|
6 / 14 page ![]() 6 Serial Communications Hardware Interface All communications between the A2 and the controlling processor are carried out over the Serial Peripheral Interface (SPI) bus lines (MOSI, MISO, SCK, and CE). The SPI bus is directly compatible with the SPI facilities of Intersil’ CDP68HC05 microcontrollers. Data is transmitted over the MISO and MOSI lines synchronous with SCK. Transfers are done most significant bit first. The A2 acts as a “slave” device. The controlling “master” sig- nals the A2 that a SPI transfer is to take place by raising CE and clocking SCK. A single shift register is used for transfer- ring data in and out of the A2. Whenever CE and SCK are activated, data is shifted from the master to the A2 over the Master-Out-Slave-In (MOSI) line and, simultaneously, during read operations, data is shifted to the master from the A2 over the Master-In-Slave-Out (MISO) line. Note that SCK must be provided by the master for both reads and writes. To accommodate various hardware systems, the A2 can shift data on either the rising or falling edge of SCK. The “active” edge is automatically determined by the A2. At the moment that CE is first brought to a high level, the state of SCK is latched. This latched state determines the interpreta- tion of SCK. If SCK is low when CE is activated, data is shifted out on MISO on each rising edge of SCK and data is latched from MOSI on each falling edge of SCK (see SCKa in Figure 2). If SCK is high when CE is activated, data is shifted out on MISO on each falling edge of SCK and data is latched from MOSI on each rising edge of SCK (see SCKb in Figure 2). Hardware Interfacing to CDP68HC05 Controllers When interfacing the A2 to CDP68HC05 controllers, set CPHA = 1 and CPOL = (0 or 1) in the SPI control register. Note that SCK pulses are generated only when data is written to the SPI Data Register in a CDP68HC05. Reading data from or writing data to the A2 requires writing data to the SPI Data Register. The data will be ignored by the A2 for read opera- tions. The read data is available to the CDP68HC05 in the SPI Data Register when SPIF is true in the SPI Status Register. Hardware Interfacing to Non-CDP68HC05 Controllers Most popular microcontrollers have a synchronous commu- nications facility which can be adapted to work with the A2. Those that don’t can be easily interfaced using port lines to synthesize a SPI bus. FIGURE 1. A PROGRAMMER’S MODEL OF THE CDP68HC68A2 HIGH DATA REGISTER 0 LOW DATA REGISTER 0 HIGH DATA REGISTER 7 LOW DATA REGISTER 7 DATA REGISTERS MODE SELECT REGISTER CHANNEL SELECT REGISTER START ADDRESS REGISTER STATUS REGISTER CONTROL/STATUS REGISTERS CHANNEL ADDRESS REGISTER AI0 AI1 AI2 AI3 AI4 AI5 AI6 AI7 8 TO 1 M U X A TO D IN OUT $00 $01 $0E $0F $10 $11 $12 $13 FIGURE 2. TIMING DIAGRAM FOR SERIAL PERIPHERAL INTERFACE TP D7 D6 D5 D4 D3 D2 D1 D0 Tdsu Tdh Tdod CE SCKa SCKb MOSI MISO (READ ONLY) CDP68HC68A2 |
|
|
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 |