ts-7000
[Top] [All Lists]

Re: [ts-7000] Direct ADC access?

To:
Subject: Re: [ts-7000] Direct ADC access?
From: Joel Morgan <>
Date: Sun, 23 Oct 2011 13:31:03 -0500




On Sat, Oct 22, 2011 at 7:11 PM, Mike Dodd <> wrote:
 

Let me try again with a correctly-typed subject line....

I'm booting a TS-7250 into Debian over NFS, and everything is sweet.

I can compile my HVAC-monitoring program using GCC, and it runs just
fine. It reads DIO port B with hvac_in = *PBDR' and flashes the LEDs
with '*PEDR = (1 << RED_LED_BIT)', etc.

My application writes HTML pages that are updated each hour with the
HVAC compressor and/or fan run-time for that hour. It would be nice if
each hour could include the outdoor temperature, and I think I can wire
a thermistor to an ADC input.

But I'd like to read/control the ADC directly via the memory-mapped I/O,
like the DIO and LED ports, instead of installing the ADC driver in the
Files section, and opening the ADC like a file.

Is this possible, or an I stuck with installing the driver?

Thanks for any insights.

--- Mike


I use the example functions at ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/samples/adc_72xx.tar.gz assuming you are using the ep93xx onboard ADC


--
Joel R. Morgan
Morgan Millwright Services, Inc.
Linux User #504110   http://counter.li.org/


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU