I could analyse the STR macro, but i'm lazy today
So you could still fill ALL variable array cells with zero before SERIN, and after SERIN checking which one is still = 0.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
yep. thats my workaround way :P i wont have to check them after though, just set them to the correct outputs
One thing i could feel... the internal R0 variable should store the last character. Seems there's no counter variable. For that i would prefer to build my own routine BUT using the PIC USART... no SERIN/DEBUGIN/HSERIN at all.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
If your PIC have a USART and you need only 1 SerialInput pin, there's no advantage to use SERIN, SERIN2, DEBUGIN. Even if you need only 1 SerialInput pin, there's no real advantage to not choosing a PIC without USART.
With a built-in USART, the whole thing could be hapilly managed with interrupts, which it's not really reliable with SERIN... unless you send tons of 'preamble' NULL character or so.
Yeah, i'm from an old school![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
i cant do anything with interrupts. ive already made the PCBs up for these circuits and the only interrupt pin is an output. i never thought i would need it
can you post your schematic?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks