Shop OBEX P1 Docs P2 Docs Learn Events
Max1270 help. — Parallax Forums

Max1270 help.

SquigSquig Posts: 13
edited 2008-05-19 22:11 in Propeller 1
Howdy.

Im working on a project that requires 6 to 8 light sensors (CDS) and I was planning on using the MAX1270.
I was going to use Ray's MAX1270 object but im a little confused by the pin setups.

Ive got the Output pin set connected to·DIN(7) and the input to·DOUT (10).
I currently have clock set to CS (6) which I bleieve is coorect, but Im not sure.

Then there's the chip select pin.· I have no idea what that's supposed to connect to.· Any help?

I also have it setup for 5V is that necessary or will it opertate at 3.3v?

Thanks in advance.

Scott

Comments

  • Ken PetersonKen Peterson Posts: 806
    edited 2008-05-19 21:56
    Clock should be connected to SCLK. CS is a chip select line (active low) which is usually used to select multiple devices on a SPI bus. If the MAX1270 object doesn't use the CS, then connect pin 6 to ground.· The MAX1270 operates at 5V, so you need series resistors between DO, DI, and SCLK and the Prop.· 220 ohm should work.· You·probably need·pullup resistors as well.·

    Here's a link to the data sheet.· It should answer most if not all of your questions.

    http://datasheets.maxim-ic.com/en/ds/MAX1270-MAX1271B.pdf

    Regards,
    Ken

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (Ken Peterson) : 5/19/2008 10:07:17 PM GMT
  • RaymanRayman Posts: 14,233
    edited 2008-05-19 22:07
    If you look at the MAX1270_test file (test program for that object), you'll see these lines that shows where you can change pins:

        'PUB get_millivolts      (ChipSelectPin, ClockPin, OutputPin -> 1270:DIN, InputPin -> 1270:DOUT, Channel, bTenVoltRange, bBipolar)
        v:=max1270.get_millivolts(13           , 12      , 14                   , 15                   , 0      , true        , true   )
    
  • SquigSquig Posts: 13
    edited 2008-05-19 22:11
    Doh!

    I get it now, thanks!
Sign In or Register to comment.