I have a HTC4067 16x1 multiplexer, it's controlled by four lines S0, S1, S2, S3
I have these all connected to Port B pins 4,5,6,7 respectively on my pic. This could be reversed to 7,6,5,4 if that helps.
I'm after ideas on how to step through the input options 0-15 as per the truth table below as efficiently as possible.
i.e. select input 0, then 1, then 2 etc etc in sequence..
Increment a byte from 0 to 15 and mask off the 4 high bits?
Ideally I don't want to effect the output/status etc on the PortB 0,1,2,3 during this operation..
Bookmarks