
Menuyet your rx routine wants 4 chars
HSERIN [RX1, RX2, RX3, rx4]
what is the actual msg you receive [in ascii chrs] is there a start chr how does the msg terminate /n, /CR, /LF?
Hi guys,
I'm facing a weird behaviour with my 18F2580 using Hserin and RX interrupts and I was hoping someone could help.
I'm trying to run a code that when an incoming 2 characters is...
Hi Ioannis
Your links are broken due to the ellipsis within them.
I have just one link here by searching for wilkol and high resolution frequency counter
...
Long time ago, Microchip had that AN592 to show how a PIC16C54 can measure up to 50MHz frequencies, which was indeed very impressive.
About 6 years ago this Instructable by user WilkoL did a High...
maybe like this
https://youtu.be/PQrvgA-w0gk
steps through an array to set portb pin and another array to set timer interval for next interrupt , repeats every 6th pass
ra0 toggles every...
as an example this is what i came up with for your first question
#CONFIG
CONFIG FOSC=INTIO67, FCMEN=OFF, IESO=OFF, PWRT=OFF, BOREN=SBORDIS, BORV=18
CONFIG WDTEN=ON, WDTPS=512,...
whether the vars are in the same bank or not is irrelevant with indirect addressing, the point is that with pic18 chips an array can be more than 255 bytes in length and may cross a bank boundary. ...
richard - 14th February 2026, 00:44
Thanks for the insight! I ended up putting all the variables used in the ISR in bank 3 and starting the interrupt with "banksel _ppm_n" in case I every move them to a different bank. I may not need...
achilles03 - 13th February 2026, 21:11

Re: 18F2580 with strange behaviour when using Hserin and RX interrupt
Hi Richard,
PaulMaker Today, 13:11thanks for the help.
According to the information on the display (when set to show the 4 incoming characters), 2 initial characters are being sent as carriage return (10 and 13)...