This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

convert decimal to hexa and stored it in TIMER

How to convert the decimal value to hexadecimal value which needed to be stored in the timer? for example: Timer Low and Timer High only need 2 values such as the 0xFB. How can we extract it if we able to get the hexa from decimal? Have any ideas abt this ? thanx

Parents
  • I've got some serial port code I tend to reuse or adapt as needed but it always includes some level of error detection and a retransmission request. Having the "What did you say?" command available forgives a lot of errors, of course the host application has to support this so again I usually write my own. The ASCII code wastes( or uses, depending on your viewpoint) a lot of bits to represent digits.

Reply
  • I've got some serial port code I tend to reuse or adapt as needed but it always includes some level of error detection and a retransmission request. Having the "What did you say?" command available forgives a lot of errors, of course the host application has to support this so again I usually write my own. The ASCII code wastes( or uses, depending on your viewpoint) a lot of bits to represent digits.

Children
No data