Shop OBEX P1 Docs P2 Docs Learn Events
Max1270 adc — Parallax Forums

Max1270 adc

GJGJ Posts: 19
edited 2006-07-19 20:34 in General Discussion
Has anyone used the MAX 8 channel 12bit ADC with the Javelin and if so, would you be willing to post your code?

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-07-19 06:08
    See last post in this thread:
    http://forums.parallax.com/showthread.php?p=585808
    You can send a private message to that member.

    Also see
    http://forums.parallax.com/showthread.php?p=508752
    In one of the posts there is talk about a Nuts & Volts magazine that
    explains javelin code regarding the max1270.

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-07-19 06:14
    Go here
    http://www.parallax.com/detail.asp?product_id=30064

    and get the docs and example code (also for javelin) for the StampPLC board.
    This board utilizes a MAX1270.
    The javelin example code has a read routine and conversion routines.

    regards peter
  • GJGJ Posts: 19
    edited 2006-07-19 17:11
    the code for the Javelin StampPLC board was very useful, thanks for the suggestion.
  • GJGJ Posts: 19
    edited 2006-07-19 20:34
    There appears to be an error in the PLC code for the javelin as it relates to selecting the ADC range. There is a set of variables for identifing the ADC mode. In the original code, the ADC_UP10 and ADC_BP10 are reversed. They should read as follows


    static final int ADC_UP5 = 0; // unipolar, 0-5 volts
    static final int ADC_BP5 = 1; // bipolar, +/- 5 volts
    static final int ADC_UP10 = 2; // unipolar, 0-10 volts
    static final int ADC_BP10 = 3; // bipolar, +/- 10 volts
    static final int ADC_420 = 4;
Sign In or Register to comment.