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.
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.
sure, here it is.
i spoke with a really clever electronics guy today about that capacitor thing mentioned in the last thread. he showed me the best way to do it but its not done in this circuit obviously.
the only interrupt pin is RB0 which is the 4th pin up on the left and thats in use on the first triac optoisolator
Edit: aparently the bmp is too big. sorry for the jpeg quality
no i meant a real schematic, not a board layout
![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks