yviswanathbe
Full Member level 4
float division in atmega8
Hi friends,
i have two doubts in microcontroller...
1) I am sending data from PC to 89S8252 microcontroller using VB6.0
The data format is in Hex.i am sending 5 words one after another.
ex:mscomm1.output=word1(word1 contains value in hex formatg)
result1=mscomm1.input
mscomm1.output=word2(same as above)
result2=mscomm1.input
In what format PC send out the data to controller on serial bus.
I have loaded a routine in the controller that when ever it receives the word it will revert back to the PC, But i am not getting the same word using VB6.0.if i doing this in existing software(Docklight) i am getting what ever data i am sending.
Please tell me where i am doing wrong,do i need any conversion before sending and receiving?
2) this is regarding AVR ATMEGA8
While doing multiplication,division,modulas operation what are the datatypes and format specifiers i should assign to the my resultant strings.
i have used longint,unsigned long int,but couldn't success in the manipulation.
help me in this two regards.
Thanking You.
viswanath
Hi friends,
i have two doubts in microcontroller...
1) I am sending data from PC to 89S8252 microcontroller using VB6.0
The data format is in Hex.i am sending 5 words one after another.
ex:mscomm1.output=word1(word1 contains value in hex formatg)
result1=mscomm1.input
mscomm1.output=word2(same as above)
result2=mscomm1.input
In what format PC send out the data to controller on serial bus.
I have loaded a routine in the controller that when ever it receives the word it will revert back to the PC, But i am not getting the same word using VB6.0.if i doing this in existing software(Docklight) i am getting what ever data i am sending.
Please tell me where i am doing wrong,do i need any conversion before sending and receiving?
2) this is regarding AVR ATMEGA8
While doing multiplication,division,modulas operation what are the datatypes and format specifiers i should assign to the my resultant strings.
i have used longint,unsigned long int,but couldn't success in the manipulation.
help me in this two regards.
Thanking You.
viswanath