pandaemonium
Member
I'm going to use a max232 I have laying around to interface to a uP (89C52), thats no problem and I'm a good C coder, what I want to know is the code procedure.
I assume I would first set the uPs serial buad rate and then loop in a parser? I havent found any clear C code examples and I don't know assembly.
Can someone point me to some good examples or give me an outline of the procedure I should use?
It looks like I can use a printf() function to sent data from the uP to my PC, but how do I send data to the uP from my PC? Some sort of buffer with a getc() or gets()?
I assume I would first set the uPs serial buad rate and then loop in a parser? I havent found any clear C code examples and I don't know assembly.
Can someone point me to some good examples or give me an outline of the procedure I should use?
It looks like I can use a printf() function to sent data from the uP to my PC, but how do I send data to the uP from my PC? Some sort of buffer with a getc() or gets()?