I am currently reading a port value in embedded programing. The port value may be eg: 29 decimal . This is an integer value . I want to use SBUF to transmit this value down the serial port . I have all the code set up nfor this :
ie code :
int i = 29 ; // ie : port value
TI=1; // enable transmission
SBUF = i ; // transmit 'i'
TI=0; // disable transmission
Transmission is at 4800 baud . i am reading the serial port with a VB application and i keep getting the 'character represenation of the integer' ( ie : ASCii table )
Is there any way i can get SBUF toi transmit the integer value '29' as a string and not an ascii representation. NOTE that i want this to be less code , fast speed , no large lookup tables ..