PDA

View Full Version : Max1270 help.



Squig
05-20-2008, 03:05 AM
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

Ken Peterson
05-20-2008, 04:56 AM
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

Rayman
05-20-2008, 05:07 AM
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 )

Squig
05-20-2008, 05:11 AM
Doh!

I get it now, thanks!