![]() Something fundamental is wrong, so you need to fix that first.Īs a matter of interest, what terminal program are you using on your PC to monitor the serial port? What you describe is a Baud Rate mismatch. You keep saying 'I have checked baud rate', but don't mention what you actually checked. ![]() You need to get some SIMPLER code working, which sends just one character, before you try to do something more complicated. If you didn't look at the output with an oscilloscope then it would be difficult to make any progress. We need to step back and see if your code and hardware were working at a more fundamental level. Hence the reason for using an oscilloscope along with the code change. ![]() St2000 I think the assumption was that your setup was not working and the results would be the same even after you changed the code. I think you need to use something called a 'Template Processor'. The reason being it is difficult to implement a method that can accept an arbitrary number of arbitrary types. But it is very unlikely they will try to emulate a printf() type of method. Most people do arrive at a solution where 1 function call is all that is needed to send data out a PIC serial port. ![]() ![]() Or you may try to handle everything in your code for simplicity sake. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |