Shop OBEX P1 Docs P2 Docs Learn Events
SHIFTIN Example at 50 Mhz — Parallax Forums

SHIFTIN Example at 50 Mhz

VonSzarvasVonSzarvas Posts: 3,527
edited 2007-09-11 11:11 in General Discussion
Hello all,

In the SX/B help chm, is an example "SHIFTIN Example using ADC0831"

The device setting are:

DEVICE         SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ          4_000_000




If I change them to:

DEVICE          SX28, OSCHS2, TURBO, STACKX, OPTIONX
FREQ              50_000_000




it stops working. I get samples of FF from the ADC.

Is there some guideline somewhere which I am clearly blind to find about how to modify the SHIFTIN for different frequencies?

Thank you.

Comments

  • JonnyMacJonnyMac Posts: 9,216
    edited 2007-09-11 09:16
    The example has the clock speed multiplier enabled -- try removing this or changing the setting. SHIFTIN and SHIFTOUT should be FREQ setting agnostic, but there may be something with the speed multiplier that is being adversely affected at fast clock settings.
  • VonSzarvasVonSzarvas Posts: 3,527
    edited 2007-09-11 11:11
    Yes, that was it. The clock speed multiplier - commented out and issue solved.

    Cheers.


    SHIFTIN Dio, Clk, MSBPOST, tmpB1\1  ', 4       ' start conversion
    SHIFTIN Dio, Clk, MSBPOST, tmpB1     ', 4     ' shift in the data
    
    
Sign In or Register to comment.