Hello friends:
i want to transfer data from avr to pc and 3d graphic program (3Dvisualizer ,Future2003 okm) via usb port.i used atmega8 or atmega32 and ft232bm and i wrote a program for it but i have problem in it.I know that the future 2003 okm get the opamp out put from 0-5 volt dc and 0-1 vdc show as blue color in future2003 okm and 1-3vdc green color and 3-5vdc red color in it.please help me to write the compelet program for it.this is my written program.
$regfile = "m8def.dat"
$crystal = 6000000
$baud = 19200
Config Serialout = Buffered , Size = 10
Config Adc = Single , Prescaler = Auto
Start Adc
Dim A As Word
Dim B As Single
A = 0
Main:
Printbin A
Do
A = Getadc(1)
Waitms 10
B = A * 204.8
Print B
Loop
End
thanks for advise
i want to transfer data from avr to pc and 3d graphic program (3Dvisualizer ,Future2003 okm) via usb port.i used atmega8 or atmega32 and ft232bm and i wrote a program for it but i have problem in it.I know that the future 2003 okm get the opamp out put from 0-5 volt dc and 0-1 vdc show as blue color in future2003 okm and 1-3vdc green color and 3-5vdc red color in it.please help me to write the compelet program for it.this is my written program.
$regfile = "m8def.dat"
$crystal = 6000000
$baud = 19200
Config Serialout = Buffered , Size = 10
Config Adc = Single , Prescaler = Auto
Start Adc
Dim A As Word
Dim B As Single
A = 0
Main:
Printbin A
Do
A = Getadc(1)
Waitms 10
B = A * 204.8
Print B
Loop
End
thanks for advise
Comment