I'm using a PIC16F88 as a MIDI command filter.
It runs @ 8mhz (internal clock).
Every bytes received on the MIDI input at 31250bauds
must be looped back to a MIDI output but the MIDI command '0xFE'
which is the 'Active Sensing' sent any 0.5 sec. or so..
This byte must be intercepted.
I want to use an RX interrupt function in the process.
So I want to let pass all the received bytes but the '0xFE'.
My question is:
Can I fill the PIC Tx register with any acceptable received bytes
-->inside the Rx interrupt routine<---
and not in a polling loop inside the main() program ?
Will-it be any possible loss of byte(s) because
of the waiting of 'Tx ready' flag to do so ?
Thanks.
It runs @ 8mhz (internal clock).
Every bytes received on the MIDI input at 31250bauds
must be looped back to a MIDI output but the MIDI command '0xFE'
which is the 'Active Sensing' sent any 0.5 sec. or so..
This byte must be intercepted.
I want to use an RX interrupt function in the process.
So I want to let pass all the received bytes but the '0xFE'.
My question is:
Can I fill the PIC Tx register with any acceptable received bytes
-->inside the Rx interrupt routine<---
and not in a polling loop inside the main() program ?
Will-it be any possible loss of byte(s) because
of the waiting of 'Tx ready' flag to do so ?
Thanks.