- SS-HQ1 Application Notes -
Ver.1.0.0 January 7, 2005
78
To watch the state of a parameter with the output port driver
(Example 3)
Assign MIRROR (CAT1_Byte1_bit4) to P3 of the port driver, and set the output of P3 (94PIN) to change
High or Low by parameter value of MIRROR.
・
Port input (Low)
:
Normal image
(CAT1_Byte1_bit4 = 0[h])
・
Port input (High)
:
MIRROR image (CAT1_Byte1_bit4 = 1[h])
[Parameter Setting Details]
P3ADJ
= 0[h] (PnADJ is not used when it is set as an output port. So please set to 0[h].)
P3WID
= 0[h] (Please set to 0[h], because MIRROR is 1bit parameter.)
P3Byte
= 1[h] (Please set to 1[h], because MIRROR is the parameter of 1st Byte of CAT1.)
P3IOSEL = 1[h] (Please set to 0[h], because it is set as an output.)
P3CAT
= 1[h] (Please set to 1[h], because MIRROR is the parameter of CAT1.)
P3LSB
= 4[h] (Please set to 4[h], because LSB of MIRROR is the 4th bit.)
*1 port supports 1bit, when you can watch the state of parameter from output port.
Therefore the ports of number of bits are required, when you would like to watch the
parameters with output ports.
Fig 10.1-4 SETTING IMAGE
■
CAT (P3CAT=1[h])
CAT1
CAT2
CAT3
■
Byte (P3BYTE=1[h])
Byte1
Byte2
Byte3
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
■
bit (P3LSB=4[h])
Port Output = Low
(P3WID=0[h])
(P3LSB=4[h])
(P3WID=0[h])
(CAT1_Byte1_bit4=0[h]:normal)
Port Output = High
(CAT1_Byte1_bit4=1[h]:Mirror)