Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help in uart ascii ???

Status
Not open for further replies.

5282604

Full Member level 4
Full Member level 4
Joined
Dec 19, 2009
Messages
194
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
egypt
Activity points
2,404
hiiiiiiiiii ,
i use c keil for arm
but i have problem if i want to send 'a' character i should to send ascii value of 'a' character mean 65 in ascii.
i want how to convert from char to ascii to send it via uart.
:-D:-D:-D:-D
 

try this snippet...

u8 fnConvertHexToAscii ( u8 hexValue )
{

hexValue &= 0x0F;

if ( hexValue <= 9 )
{
return ( hexValue + 0x30 );
}
else
{
return ( hexValue + 0x37 );
}

}
 
thank's :-D

but any explains about this code
and this function his input ahex i want function like this
Code:
ascii=character_to_hex('a'); // ascii is variable 'a' is char
 
Last edited:

Ya.You can do it like the way you have posted.....
Regards,
Jerin.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top