Hi Beginner and ferre and others,
There are others of us who did not write the firmware or the like but that use the boards and try to answer questions... The manual is in much better shape than it used to be. Yes it could be better.
the forum up at
http://www.lynxmotion.net is much more active and is where the majority of the users who use the Basic Atom Pros communicate.
On the BasicAtomPro28, the S_IN/S_OUT pins are connected to the DB9 connector, where you can use serin/serout on them. There are some complications with this as they actually only use one IO pin, so there are issues about echoing of characters and the like... The serin/serout functions are bitbang and you can only receive data when you are actually sitting in a SERIN call when the data arrives.
HSERIN/HSEROUT - are not connected to the DB9 connector but are instead connected to IO pins P14 and P15 on the BAP28, which are TTL level signals. Work great with things like XBEES and the like. The data is buffered and the software maintains a queue of characters that was received.
There is lots of code available up on the Lynxmotion site, not sure what to direct you to as I am not sure what you are looking for.
Good Luck
Kurt
P.S. - Nathan (Acidtech) - On Arduinos there is actually input buffering on SoftwareSerial, especially with NewSoftSerial (I prefer the beta version of this). Yes it does use some hardware support for this (Pin Change Interrupt). But it works well enough that I can write a real simple SSC-32 foreworder function that works great on the Megas with multiple USARTS, but also works well on the UNO with only one USART.
Code:
void SSCForwarder(void)
{
int sChar;
int sPrevChar;
Serial.println("SSC Forwarder mode - Enter $<cr> to exit");
for (;;) {
if ((sChar = Serial.read()) != -1) {
SSCSerial.print(sChar & 0xff, BYTE);
if (((sChar == '\n') || (sChar == '\r')) && (sPrevChar == '$'))
break; // exit out of the loop
sPrevChar = sChar;
}
if ((sChar = SSCSerial.read()) != -1) {
Serial.print(sChar & 0xff, BYTE);
}
}
Serial.println("Exited SSC Forwarder mode");
}
I have tried but never had much luck doing something similar on the BAP... But again this is off topic
Kurt