| поискавой системы для электроныых деталей |
|
LTC1289BCSW датащи(PDF) 24 Page - Linear Technology |
|
|
|||||||||||||||||||||||||||||
LTC1289BCSW датащи(HTML) 24 Page - Linear Technology |
|
24 / 28 page ![]() 24 LTC1289 1289fb LDA #$50 Configuration data for SPCR STA $0A Load configuration data into $0A LDA #$FF Configuration data for port C DDR STA $06 Load configuration data into port C DDR BSET 0, $02 Make sure CS is high JSR READ –/+ Dummy read configures LTC1289 for next read JSR READ +/– Read CH6 with respect to CH7 JSR READ –/+ Read CH7 with respect to CH6 JSR CHK SIGN Determines which reading has valid data, converts to 2's complement and stores in RAM READ – / + : LDA #$3F Load DIN word for LTC1289 into ACC JSR TRANSFER Read LTC1289 routine LDA $60 Load MSBs from LTC1289 in ACC STA $71 Store MSBs in $71 LDA $61 Load LSBs from LTC1289 in ACC STA $72 Store LSBs in $72 RTS Return S APPLICATI TYPICAL SNEAK-A-BIT Code for the LTC1289 Using the MC68HC05C4 SNEAK-A-BIT Code SNEAK-A-BIT Code for the LTC1289 Using the MC68HC05C4 MNEMONIC DESCRIPTION DOUT from LTC1289 in MC68HC05C4 RAM Location $77 B12 B11 B10 B9 B8 B7 B6 B5 Location $87 B4 B3 B2 B1 B0 filled with 0s DIN words for LTC1289 Sign LSB MUX Addr. UNI MSBF Word Length DIN1 0 0 1 1 1 1 1 1 DIN2 0 1 1 1 1 1 1 1 DIN3 0 0 1 1 1 1 1 1 (ODD/SIGN) LTC1289 TA05 MNEMONIC DESCRIPTION READ +/–: LDA #$7F Load DIN word for LTC1289 into ACC JSR TRANSFER Read LTC1289 routine LDA $60 Load MSBs from LTC1289 into ACC STA $73 Store MSBs in $73 LDA $61 Load LSBs from LTC1289 into ACC STA $74 Store LSBs in $74 RTS Return TRANSFER: BCLR 0, $02 CS goes low STA $0C Load DIN into SPI. Start transfer LOOP 1: TST $0B Test status of SPIF BPL LOOP 1 Loop to previous instruction if not done LDA $0C Load contents of SPI data reg into ACC STA $0C Start next cycle STA $60 Store MSBs in $60 LOOP 2: TST $0B Test status of SPIF BPL LOOP 2 Loop to previous instruction if not done BSET 0, $02 CS goes high LDA $0C Load contents of SPI data reg into ACC STA $61 Store LSBs in $61 RTS Return CHK SIGN: LDA $73 Load MSBs of +/– read into ACC ORA $74 Or ACC (MSBs) with LSBs of +/– read BEQ MINUS If result is 0 goto minus CLC Clear carry ROR $73 Rotate right $73 through carry ROR $74 Rotate right $74 through carry LDA $73 Load MSBs of +/– read into ACC STA $77 Store MSBs in RAM locations $77 LDA $74 Load LSBs of +/– read into ACC STA $87 Store LSBs in RAM location $87 BRA END Goto end of routine MINUS: CLC Clear carry ROR $71 Shift MSBs of –/+ read right ROR $72 Shift LSBs of –/+ read right COM $71 1's complement of MSBs COM $72 1's complement of LSBs LDA $72 Load LSBs into ACC ADD #$01 Add 1 to LSBs STA $72 Store ACC in $72 CLRA Clear ACC ADC $71 Add with carry to MSBs. Result in ACC STA $71 Store ACC in $71 STA $77 Store MSBs in RAM locations $77 LDA $72 Load LSBs in ACC STA $87 Store LSBs in RAM location $87 END: RTS Return |
|
ссылки 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 |