Changeset 10102 for firmware/FSC/src/ad7719_adc.c
- Timestamp:
- 01/14/11 07:46:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/ad7719_adc.c
r10094 r10102 51 51 const U8 WR_TO_AD0CON = 0x02; 52 52 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 53 62 54 63 CLR_BIT(PORTD,SPI_AD_CS); // Set CS low
Note:
See TracChangeset
for help on using the changeset viewer.