Picbasic pro help please + hardware suggestions
Hi
Can anyone give me some advice on how to go about a project I have been asked to look at please.
I need to extract the data from a series of remote data loggers which have in their event list lines of data similar to the following:-
1,yyyyyyy,zzzzzzzz,xxxxxxxxxxxxxxxxxxxxxx, CR,LF
1,yyyyyyy,zzzzzzzz,xxxxxxxxxxxxxxxxxxxxxx, CR,LF
1,yyyyyyy,zzzzzzzz,xxxxxxxxxxxxxxxxxxxxxx, CR,LF
Depending on the logger, there can be anything from 1 up to 500 lines.
I need to capture the zzzzzzzz and the xxxxxxxxxxxxxxxxxxxxxx bits of each line and store them in either the pic memory or some external memory.
I can then use two buttons to scroll the data onto an lcd .
the zzzzzzzz will be a number like 10978561 and the xxxxxxxxxxxxxxxxxxxxx will be an ascii text message up to 20 characters long terminated in a comma, followed by a CR and LF.
The actual hardware design shouldn't be a problem, but I am uneasy about bits of the programming.
I would like to use Picbasic Pro which I have some experience with using 16F876's and a bootloader.
My worries are that I will not be able to read in a line up to the CR,LF, parse it and store it somehow before the next line comes in.
There is no handshaking available on the devices, and data is transferred at 19.2k or 38.4kbaud.
Can anyone give me some pointers on which pic would be best, and running at what speed and how and where to store the incoming strings, would I be able to use the internal program memory or an external device like a Fram?
Any help would be appreciated.
Regards
Tony