Ignore:
Timestamp:
01/14/11 07:46:11 (14 years ago)
Author:
neise
Message:
- still testing - 
AD7719 and ATmega ADC work 
muxers as well
output via USB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FSC/src/ad7719_adc.c

    r10094 r10102  
    5151  const U8 WR_TO_AD0CON = 0x02;
    5252  const U8 WR_TO_MODE = 0x01;
     53  const U8 RD_FROM_FILTER = 0x44;
     54
     55  CLR_BIT(PORTD,SPI_AD_CS);     // Set CS low
     56  spi_transfer_byte(RD_FROM_FILTER);            // Next Operation is write to IOCON1 and IOCON2  Start SPI
     57  spi_transfer_byte(0xFF);      // Next Operation is write to IOCON1 and IOCON2  Start SPI
     58  SET_BIT(PORTD,SPI_AD_CS);     // Set CS high
     59
     60
     61
    5362
    5463  CLR_BIT(PORTD,SPI_AD_CS);     // Set CS low
Note: See TracChangeset for help on using the changeset viewer.