This is my new project . I want to interface ATmega32 microcontroller with visual basic 6.0. I can communicate with visual basic through serial port bidirectionally. Aim of the project is that i have to monitor the ADC values of 2 channels in two text boxes in visual basic. The method i chose is that i use a timer in visual basic to send two characters to microcontroller and when the controller receives these characters the controller will send corresponding ADC values with one additional characters. When VB receives these character it will show the following value in the text box.
I use a string array to receive values coming from controller. When i use Asc() function in VB it showing some error. How can i convert the incoming values to ascii.
Also i giving the code in VB and the code for controller