PDA

View Full Version : Isolated A/D converter, SPI I/F



srob
- 2nd November 2004, 12:09
Am building a circuit that requires two isolated analogue inputs to be recorded, was going to use two CA3162 (A/D to BCD), and opto isolate the 7 outputs to a 16F73.

However, have come across the Agilient HCPL 7860 isolated ADC, which uses a serial I/F which are "SPI", "QSPI" and "Microwire" compatable.

These are new to me, has anyone used these standards, and can give me pointers how to program my PIC.

Thanks

Bruce
- 3rd November 2004, 07:18
I haven't used the HCPL 7860, but I have used Microwire & SPI devices with PBP.

PBP's SHIFTOUT / SHIFTIN commands are used for Microwire & SPI communications.

Here's a few examples;

SPI:
http://www.microengineeringlabs.com/resources/samples/x1/pbp/spix.bas

Microwire:
http://www.microengineeringlabs.com/resources/samples/x1/pbp/mwx.bas