Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

bascom and adc and serialout

Status
Not open for further replies.

khatarat

Member level 1
Joined
Mar 2, 2009
Messages
41
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,545
bascom adc

hi
i wanna write a program to read analog values and send it via serial port to computer this is my program its does not work i dont know where is the problem
$regfile "m16def.dat"
$crystal = 4000000

Config Adc = Free , Prescaler = Auto
Config Serialout = Buffered , Size = 20
Open "com1:" For Binary As #1
Enable Interrupts
Start Adc
Dim W As Word
Do
Print #1 , W
W = Getadc(0)
Loop
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top