Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Serial test
Author | Message | ||||
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239 |
Interesting result open "com2:4800" as #1 do print loc(#1) ' print rx buffer size loop Gets up to "127" and maxes out // open "com2:4800,2048" as #1 do print loc(#1) ' print rx buffer size loop Gets up to "255" and maxes out - Andrew - Andrew Rich VK4TEC www.tech-software.net |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Which version of MMBasic is this? 4.2? Micromites and Maximites! - Beginning Maximite |
||||
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239 |
MMBasic Version 4.0B I have something else intersting. I am reading from a GPS. I think the PIC is too fast ( if that is feasable ) If I read two bytes really quickly, sometimes they come out null. Or one is populated and the second is not. If I slow down the read with a pause 10, I can get 100% read rate from the com port. I think I need to check if there are some characters to read first . LOC(#1) - Andrew - Andrew Rich VK4TEC www.tech-software.net |
||||
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239 |
not quite sure how to code that one do while loc(#1) = 0 : loop - Andrew - Andrew Rich VK4TEC www.tech-software.net |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
I've duplicated these results on 4.2. Micromites and Maximites! - Beginning Maximite |
||||
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239 |
I did a dumb thing Threw my GPS from 19200 to 38400 baud And of course the PIC on this port does not do 38400 Out with the serial port PC - Andrew - Andrew Rich VK4TEC www.tech-software.net |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
255 may be related to the max string size (though it probably should not be) John |
||||
Print this page |