Hi,
I'm writing a code that wil receive and send a string through serial port (UART). The setup of the ARM is good. Now, I would like to know if is there a command, function, code, and so one that I can write the message as the way we speak and the program converts it to decimal ASCII and the opposite too.
example:
send 'ARM microprocessor'
I was told that Keil have a key for this but I didn't find it.
I'm using MCB2300 with LPC2368.
Thanks a lot.
Edson
What is decimal ASCII? ASCII is just a numbering of the different characters in a character set. But you can use decimal, hexadecimal, binary or whatever number base you like when expressing these numbers.
The serial port does not operate on strings, so you need to take the characters in a string, one-by-one, and send to the serial port while checking if the port is ready to accept more characeters or if you have to wait.
A more typical beginner's first example would be to send, "Hello, world"
http://www.keil.com/support/man/docs/uv4/uv4_ex_hello.htm
http://www.keil.com/support/man/docs/gsac/