
Originally Posted by
skimask
Guess what? Free help! Deal with it.
Code:
'dcd channel selection
low g_dcd
for i=0 to 15
portb = (portb & %00011111 ) | ( ( i rev 3 ) << 5 )
portc = (portc & %10111111 ) | ( i << 3 )
next i
OR don't ADD
to get rid of the i lower bits for portC ...
i would have used
Code:
portc = (portc & %10111111 ) | ( i.3 << 6 )
but, it's me ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks