Hi Vasile,
vasile surducan wrote: > Hi Rob, > > So far I found at least two problems with the pair serial_hw_int_cts and > usart_common. > > With pragma target clock 14_745_600 it does not compute correct the > spbrg/brgh pair for 19200bps, but it's correct for 115200. > I guess there are other wrong computed values because this crystal value > gives zero error. I'm afraid I didn't write that part of the lib, and I have not such a crystal... I believe Joep did the baudrate setting code. If so, Joep could you jump in please!? > > Using a dummy cts bit is sending only a part from the string, instead of > "Hello serial" is sending "Hell_" (the road to hell...) :) Stange! CTS handshake is for receive flow control, has nothing to do with sending data (well, should not disturb the transmit part). I'll load your program here on a testboard and see what happens. I'll be back on this. > Just curious if someone find in previous projects those errors. Can be > suspected the print_string procedure, particullary counting the number of > the elements inside the string? You have a print_string() procedure in your source *and* include the print library which has one too. Which procedure will be used by the compiler? I'm not sure, but when they are identical it shouldn't be a problem. Regards, Rob. -- Rob Hamerling, Vianen, NL (http://www.robh.nl/) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
