| ??? 12/30/02 16:02 Read: times |
#35240 - RE: To:Rob |
Hi Raja
the code sends the 5 bits of info that the MPC3204/8 needs in lsb first format(plus a null bit that allows the adc to sample)... so to send the code for single ended channel 0 it would be..... 1 x start bit 1 x single mode 000 for address (channel 0) 0 x null bit //sampling time or 000011 (0x03)(-> shifting to lsb each time and comparing with the Ternary operator ) what comes after the 6th bit is not used,so sending 0x8E would actually send 0x0E Remember that the control codes may be different for your ADC,although the process will be the same I will download the datasheet and peruse their control data. |
| Topic | Author | Date |
| serial adc | 01/01/70 00:00 | |
| RE: serial adc | 01/01/70 00:00 | |
| RE: serial adc | 01/01/70 00:00 | |
| To:Rob | 01/01/70 00:00 | |
| RE: To:Rob | 01/01/70 00:00 | |
| RE: To:Rob | 01/01/70 00:00 | |
| RE: To:Rob | 01/01/70 00:00 | |
| RE: To:Rob | 01/01/70 00:00 | |
| RE: To:Rob | 01/01/70 00:00 | |
| hi rob | 01/01/70 00:00 | |
| RE: hi rob | 01/01/70 00:00 | |
| RE: hi rob | 01/01/70 00:00 | |
RE: hi rob | 01/01/70 00:00 |



