Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/08/02 12:51
Read: times


 
#25429 - RE: SERIAL COMMUNICATION USING VB6
Hi Bikash
When you transmit data in binary format, at the receiving end you receive it in a buffer, to display it you need to convert it to ascii otherwise it would be displayed garbage if displayed at all.
example:
if u have 8 bit adc reading a voltage you transmit the measured value in binary from 0 - FF, when the serial port receives it you cant display it as is, you need to convert it into ASCII. Take the upper nibble first convert it to ascii value display it, take the lower nibble, convert it to ascii and display it again.
text is always ascii while real values are always binary(hex, oct, dec etc... same thing but hex is easiest to work with coz u can convert upper nibble and lower nibble seperately and u display the correct answer while if u need to work with decimal u need 3 digits to display the binary byte then you need to do BCD - binary coded decimal-)

Regards
mahmood

List of 18 messages in thread
TopicAuthorDate
SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: Mahmood            01/01/70 00:00      
RE: Mahmood            01/01/70 00:00      
RE: Mahmood            01/01/70 00:00      
RE: Mahmood - Rob            01/01/70 00:00      
RE: Andy - Rob            01/01/70 00:00      
RE: Mahmood - Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
   how if Chr(129)...?            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      
RE: SERIAL COMMUNICATION USING VB6            01/01/70 00:00      

Back to Subject List