public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Some thoughts on ADC
@ 2009-02-27 13:02 Simon Kallweit
  2009-02-27 13:12 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Kallweit @ 2009-02-27 13:02 UTC (permalink / raw)
  To: eCos Disuss

Hi

I just sent a preliminary ADC driver for STM32. During development I 
started to wonder if it would be helpful to have a few common tests in 
the ADC I/O package. The current "performance test" provided with the 
STM32 driver could be extended and made more generic. What do you think?

Also, what do you think of a synth ADC driver? It would probably only 
provide constant or random data on it's channels, but may be useful for 
testing. Any ideas?

Simon

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Some thoughts on ADC
  2009-02-27 13:02 [ECOS] Some thoughts on ADC Simon Kallweit
@ 2009-02-27 13:12 ` Andrew Lunn
  2009-02-27 13:17   ` Simon Kallweit
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2009-02-27 13:12 UTC (permalink / raw)
  To: Simon Kallweit; +Cc: eCos Disuss

> Also, what do you think of a synth ADC driver? It would probably only  
> provide constant or random data on it's channels, but may be useful for  
> testing. Any ideas?

Saw tooth or sine waves should not be too hard. 

If you want to go a little further, with a bit of work it would be
possible to open a file on the host system and read samples from
there.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Some thoughts on ADC
  2009-02-27 13:12 ` Andrew Lunn
@ 2009-02-27 13:17   ` Simon Kallweit
  2009-02-27 13:26     ` Andrew Lunn
  2009-02-27 13:32     ` alys
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Kallweit @ 2009-02-27 13:17 UTC (permalink / raw)
  To: Simon Kallweit, eCos Disuss

Andrew Lunn wrote:
>> Also, what do you think of a synth ADC driver? It would probably only  
>> provide constant or random data on it's channels, but may be useful for  
>> testing. Any ideas?
>>     
>
> Saw tooth or sine waves should not be too hard. 
>
> If you want to go a little further, with a bit of work it would be
> possible to open a file on the host system and read samples from
> there.
>   

Reading samples from a file on the host may be a nice idea. I was also 
thinking about interfacing the driver with a synth TCL script so it may 
be extended easily. But I don't really like writing TCL scripts ... 
already did some synth drivers for leds/key switches etc. and almost 
pulled my hair out :)

Other ideas?

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Some thoughts on ADC
  2009-02-27 13:17   ` Simon Kallweit
@ 2009-02-27 13:26     ` Andrew Lunn
  2009-02-27 13:32     ` alys
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2009-02-27 13:26 UTC (permalink / raw)
  To: Simon Kallweit; +Cc: eCos Disuss

On Fri, Feb 27, 2009 at 02:17:34PM +0100, Simon Kallweit wrote:
> Andrew Lunn wrote:
>>> Also, what do you think of a synth ADC driver? It would probably only 
>>>  provide constant or random data on it's channels, but may be useful 
>>> for  testing. Any ideas?
>>>     
>>
>> Saw tooth or sine waves should not be too hard. 
>>
>> If you want to go a little further, with a bit of work it would be
>> possible to open a file on the host system and read samples from
>> there.
>>   
>
> Reading samples from a file on the host may be a nice idea. I was also  
> thinking about interfacing the driver with a synth TCL script so it may  
> be extended easily. But I don't really like writing TCL scripts ...  
> already did some synth drivers for leds/key switches etc. and almost  
> pulled my hair out :)
>
> Other ideas?

Save you hair and don't use TCL.

With care, you can open files on the host from within eCos. Take a
look at the synthetic flash driver. 

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [ECOS] Some thoughts on ADC
  2009-02-27 13:17   ` Simon Kallweit
  2009-02-27 13:26     ` Andrew Lunn
@ 2009-02-27 13:32     ` alys
  1 sibling, 0 replies; 5+ messages in thread
From: alys @ 2009-02-27 13:32 UTC (permalink / raw)
  To: 'Simon Kallweit', 'eCos Disuss'

May be some DDS software module?
http://en.wikipedia.org/wiki/Direct_digital_synthesis


Best regards.
Alys.
 
> Other ideas?
> 
> --
> Before posting, please read the FAQ:
http://ecos.sourceware.org/fom/ecos
> and search the list archive:
http://ecos.sourceware.org/ml/ecos-discuss


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-27 13:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 13:02 [ECOS] Some thoughts on ADC Simon Kallweit
2009-02-27 13:12 ` Andrew Lunn
2009-02-27 13:17   ` Simon Kallweit
2009-02-27 13:26     ` Andrew Lunn
2009-02-27 13:32     ` alys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).