Some one Please help me to program the code.
I am using 89c51 controller, I connected swipe card reader in rx, tx of the controller, when the card is swiped in the swipe card reader "(%B1230020079200000208^HR38J8815 ^69120000000000000?;1230020079200000208=691 2000000000000? ") this type of data will be received by the controller
I want to convert the data format into ascii value and send as an output through any port, because only one RX, TX in 89c51 ic connected to swipe card reader.
Please help me
output through any port,
It looks like it already is just plain, ASCII-coded text.
You need to give a clearer explanation of what you're actually trying to achieve.
It sounds like what you really want is a controller with a second serial port - yes?
If so, then just search here: http://www.keil.com/dd/search_parm.asp
No, i want to get ascii output through p0.1
As what? RS-232? Assuming that: put start bit to p0.0 Wait 1 bit time move bit to the Port shift byte Wait 1 bit time Repeat put stop bit to p0.0 Wait 1 bit time
So it's changed from "any port" to one specific pin on one specific port?!
Please i dono assembly help me in .c
That wasn't assembly - that was pseudo-code
In other words, it's an outline description of what to do - not a detailed implementation.
First, you need to clarify exactly what it is that you need to achieve.
You need to describe this carefully, completely, and in detail - your terse, over-abbreviated posts are not helping!