Hi Ben,
No biggie, just do......
PortA.0 = OutputValue.0
PortB = OutputValue
PortA.0 will now output the LSB and PortB.1-7 will output the rest.
You should be aware that there will be a slight delay between the transition on Porta.0 and the transition on PortB. If you need it to happen EXACTLY at the same time you're in bad luck. Then you'll need an external bufferchip or a bigger Pic.
There might be a way to get an external interrupt without using PortB.0. Often you can use Timer0 configured as an external counter, causing an interrupt. If you preload it with $ff, all that's needed is one pulse on PortA.4 to rollover the counter and trigger an interrupt. When you're handling the interrupt you need to preset the counter to $ff again. Now it's ready to trigger again.
/Ingvar




Bookmarks