I disagree. Quote from a previous thread...
"Actually PICs do genuinely multitask quite well. They're able to sample an ADC channel, perform multiple Timer functions, execute PWM trains, catch data in the USART and perform Analogue Comparisons all genuinely simultaneously whilst your program is doing something completely different. It's called using the features provided within your PIC and the secrets of exploiting these multitasking features are... in the Datasheet."
Whilst PBP with the HSERIN command is unsuitable, a single PIC is more than capable of catching, caching and acting on data from multiple USARTS by reading the USART registers directly (and you can simply achieve that with PBC or PBP). And because the USARTs have a buffer, you have to be a total klutz to actually miss any incomming data even if your program has the reaction time of a tetraplegic tortoise on valium.
The big problem is that SERIN and HSERIN give the unexperienced or novice programmer powerful string handling features, which otherwise they would find difficult to impliment if faced with a simple RAM buffer with a heap of data in it which now has to be parsed.
Melanie
Bookmarks