| поискавой системы для электроныых деталей |
|
AD8600AP датащи(PDF) 12 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD8600AP датащи(HTML) 12 Page - Analog Devices |
|
12 / 16 page ![]() REV. 0 –12– AD8600 * This program contains subroutines to read and write * to the AD8600 from the 68HC11. Additionally, a ramp * program has been included, to continuously ramp the * output giving a triangle wave output. * * The following connections need to be made: * 68HC11 AD8600 * GND DGND1,2 * PC0-PC7 DB0–DB7 respectively, data port * PB0-PB3 A0–A3 respectively, address port * PB4 LD * PB5 EN * PB6 R/W * PB7 CS * portc equ $1003 define port addresses portb equ $1004 ddrc equ $1007 * org $C000 read lds #$CFFF subroutine to read from AD8600 * ldaa #$00 initialize port c to 00000000 staa ddrc configures PC0-PC7 as inputs. * ldx #$00 points to DAC address in 68HC11 memory ldaa 0,x put the address in the accumulator adda #$70 add the control bits to the address * R/W, LD, EN are high, CS is low. staa portb output control and address on port b. * inx points to memory location to store the data ldaa portc read data from DAC staa 0,x Store this data in memory at address “x” * ldy #$1000 bset portb,y $f0 Set CS, LD, EN high jmp $e000 Return to BUFFALO * * write lds #$cfff routine to write to AD8600 ldaa #$ff initialize port c to 11111111 staa ddrc configures PC0-PC7 as outputs. * ldx #$00 points to DAC address in 68HC11 mem ldaa 0,x puts the address in the accumulator adda #$30 set CS, R/W low and LD, EN high staa portb output to portb for control and address * inx points to memory location to store the data ldaa 0,x load the data into the accumulator staa portc write the data to the DAC * ldy #$1000 bclr portb,y $30 Set LD, EN low to latch data bset portb,y $b0 Bring LD, EN, CS high, write is complete * jmp $e000 Return to BUFFALO * * ramp lds #$cfff routine to generate a triangle wave ldaa #$ff configure port c as outputs |
|
|
ссылки 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 |