DS2450 ADC
Discovery
Posts: 606
in Accessories
Hi,
Can someone supply working Basic code for the BS2 one-wire setup of the DS2450 Analog to Digital Converter? All I want is for the four channels to be ADCs, analog range input 5.1 VDC, 12-bits or conversion, and no alarms.
Everything I tried sets the ADC to 2.55 VDC.
Discovery
Can someone supply working Basic code for the BS2 one-wire setup of the DS2450 Analog to Digital Converter? All I want is for the four channels to be ADCs, analog range input 5.1 VDC, 12-bits or conversion, and no alarms.
Everything I tried sets the ADC to 2.55 VDC.
Discovery
Comments
This code is for the BS2P with the built-in Onewire commands:
http://forums.parallax.com/discussion/104391/dallas-ds2450-sample-code
Discovery
Have you actually run this code and verified that channel A and channel D can handle a 5 volt input?
I have this data sheet and modified the code since I did not want alarms and wanted only four analog inputs and could not get the analog inputs to convert a voltage greater than 2.55 vdc.
Discovery
Discovery
Attached is the code as a file. It was posted before the Great Forum Change and required a lot of manual deformatting.
Here is a picture of my setup (BS-2 PDB).
Edit: I had the LEDs returned to ground. The DS2450 outputs are open collector; have to be returned to Vdd. The program does exactly what the poster said it does. Endedit
It displays the voltage as twice what is on the input pin.
I was never able to get anything to show up on the high order byte.
Attached is a program the sets up all four channels, supposedly for 12-bit resolution and 5V full scale. But it ain't.
By any chance do you have contacts at Maxim who might be able to shed some light on this problem. I have lots of these DS2450 devices and really would like to use them only as four channel ADCs with 12-bit conversion. Actually I use them as four channel digital outputs in my control systems as well as four channel ADCs. So far, I never encountered a problem using them as four channel DOs.
Discovery
I really thought that program was working, too. But no.
Many years ago, I developed a unit for stripping out seismic data from a Texas Instruments DSF-9 data acquisition system and send the data to a newly developed RISC chip...actually about eight of them...programmed by an X-employee of Texas Instruments who was on the RISC development team. He knew of a method of reprogramming the RISC so that it could utilize some features not available on the commercial RISC chip. With that knowledge he was able to process all the seismic data on a portable computer in real time and display that data at the data acquisition site. It did the work of a big Sigma-7 main frame computer.
It is too bad that a Dallas Semiconductor X-employee who was on the design team of the DS2450 isn't available to find a way to make the chip work.
Discovery