Shop OBEX P1 Docs P2 Docs Learn Events
strange adc (TLC1549) problems - Solved — Parallax Forums

strange adc (TLC1549) problems - Solved

lincolnlincoln Posts: 23
edited 2009-02-05 17:35 in General Discussion
Hello,
I'm having a problem interfacing a Texas Inst TLC1549 to an SX28 (in an existing product) . to get it it working i am using a sx tech board and the circuit attached.

The problem is i get exactly two full scale readings. With Ref+ tied to +5 in debug mode i can see the output of the adc go from 0 to ~1022 when vin ~2.5, roll over to 0 (say just above 2.5) and continue on to 1023 when vin +5.0

trying to figure it out i have buffered the input with an op amp, same behavior. also i have tied the ref+ to 3.0 v and that changed the roll over point to 1.5 v

attached it the sample programming, the macros have been mainlined in the program.

any ideas?

thank you for you time
link

Post Edited (lincoln) : 2/5/2009 5:31:33 PM GMT
875 x 574 - 50K

Comments

  • BeanBean Posts: 8,129
    edited 2009-02-04 12:30
    It sounds to me like you are not getting the bits in right places.
    Your readings are probably shifted to the left one bit.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ·The next time you need a hero don't look up in the sky...Look in the mirror.


    ·
  • lincolnlincoln Posts: 23
    edited 2009-02-04 17:33
    Hello Bean,
    That was (well still is) my thinking originally.
    the TLC1549 will take clock inputs up to 16 bits, the first 10 are used to transfer the the previous conversion, the extra clocks are used for timing the next conversion in a long mode. During the extra 11 to 16 clocks the output is held low. (if i understand the data sheet correctly)

    if i _shiftinw for 11 or 12 bits i get the right number of trailing 0, (in a binary number)

    the only think i can think of is to hookup a j/k flip flop, witch should reed a bit pattern of 101010101 depending on the starting state...

    link
  • lincolnlincoln Posts: 23
    edited 2009-02-05 17:35
    Took a break last night, reread the data sheet, data coming form the adc is msbpost, my routine was msbpre

    thanks
    link
Sign In or Register to comment.