TA600032-EN0/0
- 77 -
6.5
General-purpose input / output pin control
"G9006" has s eight "General-purpose input / output pins" (General-purpose ports) that can be controlled from "Local CPU".
The attribute of each "General-purpose port" can be selected to "Input" or "Output" by "RENV2.PTAn". "PORT0", "PORT1" and
"PORT2" pins of "General-purpose port" can be used for trigger signal input of one-shot signal output.
As for the state of each "General-purpose port", either "L level" or "H level", can be monitored" with "RPORT.PTn".
"Output pin" of each "General-purpose port" can output "L level" or "H level" with "RPORT.POn".
Item
Description
RENV2.PTAn
Select the "General-purpose port" (PORTn pin) attribute.
0: Input pin.
1: Output pin.
When "Device number setting pin" enable signal (DMOD pin) is set to "H level", the settings of the
"RENV2.PTA2" to "RENV2.PTA7" are ignored. Also, "PORT2" to "PORT7" pins are set as input pins.
RENV2.TS0
Select the trigger for "General-purpose one-shot 0" signal (SHT0 pin) output.
00: Selects "CST0" (30h) operation command.
01: Selects a general-purpose input signal to "PORT0" pin.
10: Selects a general-purpose input signal to "PORT1" pin.
11: Selects a general-purpose input signal to "PORT2" pin.
RENV2.TS1
Select the trigger for "General-purpose one-shot 1" signal (SHT1 pin) output.
00: Selects "CST1" (31h) operation command.
01: Selects a general-purpose input signal to "PORT0" pin.
10: Selects a general-purpose input signal to "PORT1" pin.
11: Selects a general-purpose input signal to "PORT2" pin.
RPORT.PTn
Indicate the state of "General-purpose port" (PORTn pin).
0: "L level".
1: "H level".
RPORT.POn
Set the output value from "General-purpose port".
0: "L level" is output.
1: "H level" is output.
This setting is ignored when the "General-purpose port" attribute (RENV2.PTAn) is input.