chipKIT® Development Platform

Inspired by Arduino™

Adjust Serial Library for High Speed Operation

Created Wed, 30 May 2012 07:47:46 +0000 by Demolishun


Wed, 30 May 2012 07:47:46 +0000

I just figured out how to reliably communicate between 2 Uno32s at 5Mbps. The following thread shows the changes I made: [url][/url]

The first change was adding a function call that allows you to set brgh. The next change was error checking and recovery if the buffer overflows. The third was a while loop to make sure the buffer is cleared out on each serial RX interrupt. Without the error checking and clearing out the buffers it will lock the RX block and it does not recover. Now it recovers very gracefully.

The change to do high speed is not standard to the Arduino functions, but this is an Uno32 and not an Uno. I just created an overloaded "begin" function that adds an additional parameter to determine if brgh is to be set.

Thanks for creating the Uno32. It is helping me cost effectively solve 2 engineering problems on 2 different projects.

Wed, 06 Jun 2012 22:58:34 +0000

It would make a lot easier to overwrite or extent the HardwareSerial class, if the members were made "protected".