RFsolution
- 23rd October 2008, 22:37
Hi PBPers
I have a HSEROUT problem
I have 2 AD converters where a want to sent the result to the serial port
Which is working fine
HSEROUT [DEC AD0," ",DEC AD1] or HSEROUT [#AD0," ",#AD1]
As the software which receives the value's always expect 7 characters
I'm having problems when the AD's value is less than 100, because
then it sends "52 128" instead of "052 128"
ofcourse the same with "0 0" instead of "000 000"
anyone an idea how to solve this ?
Thanks
I have a HSEROUT problem
I have 2 AD converters where a want to sent the result to the serial port
Which is working fine
HSEROUT [DEC AD0," ",DEC AD1] or HSEROUT [#AD0," ",#AD1]
As the software which receives the value's always expect 7 characters
I'm having problems when the AD's value is less than 100, because
then it sends "52 128" instead of "052 128"
ofcourse the same with "0 0" instead of "000 000"
anyone an idea how to solve this ?
Thanks