| поискавой системы для электроныых деталей |
|
LTC2415-1IGN датащи(PDF) 37 Page - Linear Technology |
|
|
|||||||||||||||||||||||||||||
LTC2415-1IGN датащи(HTML) 37 Page - Linear Technology |
|
37 / 40 page ![]() LTC2415/LTC2415-1 37 sn2415 24151fs TYPICAL APPLICATIO S ******************************************** * The next short loop waits for the * * LTC2415/LTC2415-1’s conversion to finish before * * starting the SPI data transfer * ******************************************** * CONVEND LDAA PORTD Retrieve the contents of port D ANDA #%00000100 Look at bit 2 * Bit 2 = Hi; the LTC2415/LTC2415-1’s conversion is not * complete * Bit 2 = Lo; the LTC2415/LTC2415-1’s conversion is complete BNE CONVEND Branch to the loop’s beginning while bit 2 remains high * * ******************** * The SPI data transfer * ******************** * TRFLP1 LDAA #$0 Load accumulator A with a null byte for SPI transfer STAA SPDR This writes the byte in the SPI data register and starts * the transfer WAIT1 LDAA SPSR This loop waits for the SPI to complete a serial transfer/exchange by reading the SPI Status Register BPL WAIT1 The SPIF (SPI transfer complete flag) bit is the SPSR’s MSB * and is set to one at the end of an SPI transfer. The branch * will occur while SPIF is a zero. LDAA SPDR Load accumulator A with the current byte of LTC2415/LTC2415-1 data that was just received STAA 0,X Transfer the LTC2415/LTC2415-1’s data to memory INX Increment the pointer CPX #DIN4+1 Has the last byte been transferred/exchanged? BNE TRFLP1 If the last byte has not been reached, then proceed to the * next byte for transfer/exchange BSET PORTD,Y %00100000 This sets the SS* output bit to a logic high, * de-selecting the LTC2415/LTC2415-1 PULA Restore the A register PULY Restore the Y register PULX Restore the X register RTS Figure 38. This is an Example of 68HC11 Code That Captures the LTC2415/LTC2415-1 Conversion Results Over the SPI Serial Interface Shown in Figure 40 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |