hi,
I am using a 8051 microcontroller in my project. The purpose of the project is to count the pulses using a controller. I have configured 8051 in the counter mode and the counted value is being sent to the hyper terminal with the help of RS-232 serial port. In the simulation process of my program I was getting the exact counted value in SBUF register but while practically implementing it I am getting the output as extended standard ASCII characters instead of my desirable count.
I am attaching my program in file called code it is written in C and simulated in Keil microvision.
So anybody who could help me out in this problem please refer your suggestions.!!!!!!!!!!!!!!!!!!!!!
thank you very much kiystron. your solution really works.i have tried it. i have modified the function record_send like this. it converts hexadecimal value into corresponding ascii value. this program is good only when the value of count is 0-9. so please suggest any algorithm or modification in my program to convert hexadecimal value into ascii value.
thank u very much klystron..... your solution really helped us in completing our work..... really appreciate your work...
looking forward for further assistance in future.