Linking a microcontroller to a pc application
Discussion in "Project Doubts" started by sheduh Oct 20, 2010.
Wed Oct 20 2010, 10:31 am
Hi guys,I requested 4 the Vb code 4 DAQ using 89...can some1 help me write the firmware code to link ATMEGA168 wit such an application. C or assembly codes r fine wit me.how can I initiate the communication
Wed Oct 20 2010, 10:46 am
hi sheduh
dear if ur familiar with embedded system then u will do it soon
first read the tutorial on this site for serial communication in tutorial section there a avr serial communication topic read that for avr
i recommend u to use c as compare to asm u can do speedy working and editing in c let come to initiate by reading a tutorial as i mention
can some1 help me write the firmware code to link ATMEGA168 wit such an application.
dear if ur familiar with embedded system then u will do it soon
first read the tutorial on this site for serial communication in tutorial section there a avr serial communication topic read that for avr
C or assembly codes r fine wit me.how can I initiate the communication
i recommend u to use c as compare to asm u can do speedy working and editing in c let come to initiate by reading a tutorial as i mention
Thu Oct 21 2010, 05:50 pm
Vb code 4 DAQ is available in download section. the zip file contains complete software and firmware code.
do u have experience with 8051? if not then i will tell you basic of firmware code what abbas did in his project, so it will be easy for you to port.
do u have experience with 8051? if not then i will tell you basic of firmware code what abbas did in his project, so it will be easy for you to port.
sheduh like this.
Fri Nov 05 2010, 08:22 pm
hi am back, Ajay you can tell me the basic firm ware code abbas used in his project.I have never used 8051 and have only started with ATMEGA168
Fri Nov 05 2010, 10:03 pm
hi sheduh
these r the steps in that project
1) initializing serial port at 9600 bps
2) generate us delay using timer
3) there is a latch(); function it enable the adc and select a sensor 1
4) start conversion by startConv(); function
5) wait(); function wait for conversion time
6) get(); function read the value of adc convert
7) sendReading send that data to pc
if data is 15 then send 1 ascii then 5 ascii to pc
now select sensor 2 and repeat from 3rd step
now select sensor 3 and repeat from 3rd step
and so on
these r the steps in that project
1) initializing serial port at 9600 bps
2) generate us delay using timer
3) there is a latch(); function it enable the adc and select a sensor 1
4) start conversion by startConv(); function
5) wait(); function wait for conversion time
6) get(); function read the value of adc convert
7) sendReading send that data to pc
if data is 15 then send 1 ascii then 5 ascii to pc
now select sensor 2 and repeat from 3rd step
now select sensor 3 and repeat from 3rd step
and so on
Sun Nov 07 2010, 09:35 am
thanks Majoka,but the problem is interpreting the codes.can u please demonstrate this by writing the codes and adding a comment to interpret them, just a simple demmo.
Sun Nov 07 2010, 03:11 pm
hi sheduh
i comment the code for ur easiness
i comment the code for ur easiness
sheduh like this.
Tags data acquisition system by abbas explained
Powered by e107 Forum System