B0 B1 B2 B3 B4 B5 B6 B7 D0 D1 D2 D3 D4 D5 D6 D7 and if value is something like
0 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 then you should use something like this in CCS C Code
Code C - [expand]
1
2
output_b(0b00000110);
output_d(0b11100110);
What MOSFET's are you using? The port values I have given might be wrong. The values I have given apply for PORT outputs and no for S1...S14 They might get inverted. Tell me what will be the value of S1 and S2 when RB6 and RB7 is 1 in your circuit.