8XC196MC, MD, MH USER’S MANUAL
C-62
WG_OUTPUT (Port 6)
WG_OUTPUT (Port 6)
Address:
Reset State:
1FC0H
0000H
The port 6 output configuration (WG_OUTPUT) register controls port 6 functions. If you are using port
6 for general-purpose outputs, write C0H (for active-high outputs) or 00H (for active-low outputs) to
the high byte of WG_OUTPUT and write the desired pin values to the low byte.
15 8
OP1 OP0 — M7 M6 M5:4 M3:2 M1:0
7 0
D7 D6 D5 D4 D3 D2 D1 D0
Bit
Number
Bit
Mnemonic
Function
15:14 OP1:0 Output Polarity
These bits select the output polarity of the port 6 pins.
0 = active-low outputs
1 = active-high outputs
13 — Reserved; for compatibility with future devices, write zero to this bit.
12:8 M7:0 Mode
These bits select either the peripheral function or general-purpose
output function of the port 6 pins. Clear these bits for general-purpose
output.
7:0 D7:0 Data
In general-purpose output mode, these bits hold the values to be driven
out on the pins. Write the desired values to these bits (bits 7:0
correspond to pins P6.7:0).