Add an ADC_Init command?

Post your requests and ideas on the future development of mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Bob Shannon
Posts: 66
Joined: 21 Feb 2006 15:34
Location: Massachusetts, USA

Add an ADC_Init command?

#1 Post by Bob Shannon » 11 Dec 2006 17:28

I think it would be helpful to have some form of ADC_Init command.

In many applications the ADC is given an external Vref, for example 4.096 volts. Using the VDD / VSS supplies can add noise to the measurments so you cannot get the full resolution of the ADC.

Also using an external Vref can expand the range of the ADC when measuring small voltages.

The ADC_Read command overwites the control registers, and resets the settings that control Vref, and other features.

If ADC_Read were to use values set by a ADC_Init command, we could use many of the advanced features the ADC offers.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Add an ADC_Init command?

#2 Post by zristic » 12 Dec 2006 09:01

Great idea, we will probably implement it.

GVHecke
Posts: 77
Joined: 28 May 2005 09:42
Location: Belgium

#3 Post by GVHecke » 02 Jan 2008 19:49

Any news on how to read analog valueswith the ADC that use different reference voltages than Vcc?

berni8k
Posts: 2
Joined: 30 Dec 2007 20:32

#4 Post by berni8k » 02 Jan 2008 22:43

If you really need it you can always do it manually with registers,its not really that hard

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 Wish List”