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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/15/03 14:06
Read: times


 
#54748 - RE: C Routine for Hex to ASCII
Responding to: ???'s previous message
Hi Mike,

I've coded a function able to sent on UART or LCD an ASCII string corresponding to a 32 bits value with manual dot placement.

The function is called like :

	U8* = UTIL_LongToAscii (U32 u32Value, U8 u8NumberOfIntegerDigits, U8 u8NumberOfDecimalDigits)
		u32Value = 32 bits Value to display
		u8NumberOfIntegerDigits = Number of interger digits.
					  If this number is higher than the number of integer
					  digits, it will display the non significant '0'
		u8NumberOfDecimalDigits = Number of decimal digits




You can see the detailled code in the resources pages of my website, it may give you some ideas.

Regards
Stephane

List of 18 messages in thread
TopicAuthorDate
C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      
      RE: C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      
      RE: C Routine for Hex to ASCII            01/01/70 00:00      
         RE: C Routine for Hex to ASCII            01/01/70 00:00      
            RE: C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      
      RE: C Routine for Hex to ASCII            01/01/70 00:00      
         RE: C Routine for Hex to ASCII            01/01/70 00:00      
            RE: C Routine for Hex to ASCII            01/01/70 00:00      
            RE: C Routine for Hex to ASCII            01/01/70 00:00      
            RE: C Routine for Hex to ASCII            01/01/70 00:00      
               RE: C Routine for Hex to ASCII            01/01/70 00:00      
         RE: C Routine for Hex to ASCII            01/01/70 00:00      
   RE: C Routine for Hex to ASCII            01/01/70 00:00      

Back to Subject List