Shiftin with external Clock howto ?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    hardware MSSP

  2. #2
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    It might be very difficult to capture the 12-bit DAC transfer with an 8-bit MSSP module.

  3. #3
    Join Date
    Aug 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    really?

  4. #4
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    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.

  5. #5
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    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

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    Hi all

    First of all thanks for the reply's

    I'm measuring 28.2 uS periode for the clock going to the DAC7611

  7. #7
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Shiftin with external Clock howto ?

    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

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts