
Originally Posted by
AvionicsMaster1
In regard to the site mentioned in post #1:
Just to let you know I found the value of the current limiting resistors for the LEDs to be important. Set incorrectly they'd give me ghosting...
I'm using Darrel's interrupts to control blinking; both on and off duration. Ghosting is not a problem.

Originally Posted by
AvionicsMaster1
...You also have to repeatedly set the TRISIO and the GPIO to get the specific LED or LEDs you want lit. Usually once wasn't good enough...
I'm testing activating LEDs in bi-directionnal manner now. It's taking me a while 'cause I'm setting it up so the bytes RX from Master will line up with pin order. I'm also learning bit masking; never did that really.

Originally Posted by
AvionicsMaster1
...If you're in need of more than 20mA per pin I successfully used opto-isolators instead of the LEDs. I don't remember the specific part number but I think I posted that link somewhere. If needed I'll find it and reference it here...
I have MCT6 opto-isolators for now if needed. I don't know if I'll need faster, testing will show.

Originally Posted by
AvionicsMaster1
...I'd also suggest you put a switch in the ICSP clock and data lines to isolate the PIC for programming. It will save you alot of time and effort...
I simplified matters and dedicate MCLR, PGD, PGC, RX1 and TX1 pins.
Now I just have to figure my bits:
Code:
Port has: 10001001
Mask is: 10001111
Desired: 10000110 (bits 7-4 untouched, bits 3-0 reversed)
I made a truth table using an LCD to show how bitwise operators work. It's just setting up this particular syntax.
Robert
UPDATE: Have my bit masking working exsactly like I want it. Thanks everyone.
Bookmarks