hardware MSSP
It might be very difficult to capture the 12-bit DAC transfer with an 8-bit MSSP module.
Yes. The DAC7611 can accept a clock up to 20MHz (50ns). I doubt that it's being used that fast, but who (other than the OP) knows.
Potentially that doesn't give you much time between the first and second bytes, but since the second "byte" is only four bits long it won't set BF anyway so I'm not sure how you'd get at it/know when it's done being transferred.
Also, with CS wired low, you'll have to come up with some way of using the LOAD pulse to resync transfers if you ever get out of sync with the transmitter. Otherwise, you'll never know high bytes from low bytes.
There is probably a slick way of doing all of this with the standard PIC hardware, but maybe this is the time to get two cascaded 8-bit serial in / parallel out shift registers and use them.
But another possibility: Since you are trying to read what is sent to the DAC - There are quite a few PICs with 12 bit A/Ds. (18F8723 for one). You could just A/D the DACs output. The PIC will convert in about 25uSec, if you have a low source impedance (which you should with the DAC). 25uSec is fast enough to digitize audio.
Charles Linquist
Hi all
First of all thanks for the reply's
I'm measuring 28.2 uS periode for the clock going to the DAC7611
If you run an 18F at 40Mhz, you can decode that in software. If you don't need to do anything else at the same time, it is easy. But
if you have to read continuously while you are doing something else, then I would recommend making friends with someone who can write you an ISR in ASM.
Charles Linquist
Bookmarks