Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

New!

Thinking MCU? Think TI
Visit the new
TI MCU resource center for the latest videos and documents to help support your design efforts.

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | Reading Input voltage with a BasicX


Advertise Here

Discussion forum for the BasicX family of microcontroller chips.

Reading Input voltage with a BasicX - slimsohn - May 6 17:02:00 2003

Hi, I'm trying to read an input voltage of 3.2V from the BasicX.
I want to input it into pin 13 and then output it.

My current code is: Const Volt_in As Single = 0.0

Dim Volt_in_ADC As Single
Const PinNumber As Byte = 13

Call GetADC(13, Volt_in_ADC)

This should output 0-1.0 depending on the percentage of my 5V
reference. I was wondering how to actually output onto the computer
the value that the program is getting from teh GetADC function.

Can I implement something like Voltage = Call GetADC(13,
Volt_in_ADC)? and then manipulate Voltage like a varialble?

any help would be greatly appreciated. THank you


______________________________
Have a look at the new TI MCU Center on EmbeddedRelated.com!


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )