Shop OBEX P1 Docs P2 Docs Learn Events
Does anyone have experiences with Maxim AD converters? (MAX1238)(Problem solved) — Parallax Forums

Does anyone have experiences with Maxim AD converters? (MAX1238)(Problem solved)

diafysaldiafysal Posts: 92
edited 2005-09-17 23:28 in General Discussion
Does anyone have experiences with Maxim AD converters? (MAX1238)

I have been trying a MAX1238 (MAX1036-9 , MAX1136-9 and MAX1236-9 should be similar).

At power up I can read value on channel 0 (default at power up).
But if I try to read any other channel I get strange results that leads me to believe that the “analog input mux” is damaged.
I have tested the communication (I2C) and it seams to work. I tested to set a reference voltage output and then turn it on and off (by programming) and it worked.

(here is my first post. Pretty sure now that it is not a programming error)
http://forums.parallax.com/showthread.php?p=549839

Post Edited (diafysal) : 9/16/2005 6:39:26 PM GMT

Comments

  • diafysaldiafysal Posts: 92
    edited 2005-09-16 18:42
    Problem solved.
    It was human error after all. When I thought I was reading a single channel I was actually scanning channels. (one should not read manuals when tired)

    Post Edited (diafysal) : 9/16/2005 6:44:30 PM GMT
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-09-17 17:44
    Hey,

    reading manuals - even when tired - is better than not reading manuals at all. You finally solved your problem, and this is what counts.

    Maybe, the communitiy might be interested in what caused your problem, and how you have fixed it, IOW, which configuration did you send to the MAX1248 in order to read just one specific channel instead of scanning all of them?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • diafysaldiafysal Posts: 92
    edited 2005-09-17 23:28
    Well I'm not sure that reading manuals when tired is better than not reading them at all! wink.gif

    I have posted the complete code in the Javelin forum.

    To read a single channel:
    Default setup byte and:
    int channel = 0x00; // select ADC channel (0x00 to 0x0b)
    ADCPort.write(0x61 | ((channel & 0x0f) << 1)); //config byte

    My error was that I had read (wrongly) that default was "single channel reading".
    And then I read it the same way (wrongly) every time I went trough the manual.
    But after a break and discussing it with another person I once again went through the manual and realized my mistake.

    Post Edited (diafysal) : 9/17/2005 11:32:52 PM GMT
Sign In or Register to comment.