How to trigger LATC latch using C?

What C code can you use to latch J6:SC and J6:RC from the PIC core? Or do I have to insert some assembly here?

I want to use them LED DOUT’s in my C app, similar to the way they’re used as clock and start/stop in the MIDIbox CV.

To set individual pins on PortC you can use PORTCbits.RCX = Y; (with X being 0..7 and Y being 0 or 1).

Danke Nils :slight_smile:

I tried searching the forum for a while but somehow didn’t use the right keywords to catch your other post about this:

http://discourse.midibox.org/t/topic/13248

Interesting - I could have just linked to that thread… If I had remembered writing it… :rolleyes:

:flowers: Have fun!