CHAPTER 12: I/O Port
740 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
When there are some multi-function serial inputs/outputs, set each input/output to the port of the same
group. "The port of the same group" means that relocate function numbers attached to the pin name are
the same, just like xxx_0 or yyy_1.
Table 5-1 shows an example setting.
Table 5-1 Multi-function Serial Interface Example Setting
Peripheral Function Output
As output pins for peripheral functions are uniquely determined by EPFR settings, Output for peripheral
functions cannot be assigned to separate pins.
(Disabled example) Assign multifunction serial output SOT1_0 and SOT1_1 to the same output.
Pin Settings and Operation Mode
For JTAG settings, see Chapter "Debug Interface".
For state of each pin during standby mode or reset, see Data Sheet of the product used.
Product Specifications and Peripheral Function Pin Assignment
Functions which are assigned to pins (GPO, peripheral I/O and special I/O) vary in different products.
Please see the pin function table of Data Sheet to confirm the pin function of each product. Do not select
a function for a pin which is not available in your product by using the EPFR register setting.
When MDI pin is used as GPIO
To use MD1 pin, the following settings are required.
Input: By reading PDIR, the value is read.
Output: Only L output is available because I/O of MD1 pin is Nch open drain pin.
PFR=0 (Used as GPIO.)
DDR=1(Used as output)
PDOR=0 (Output data is 0.)
SPL=0 (GPIO status is retained in STOP mode.)
External Interrupt Pin Settings in Standby Mode
When the mode is transferred to the Standby mode under the setting of SPL=1, set PFR=1 and select
peripheral functions to enable the external interrupt assignment pin for returning.
If the setting of a pin used for external interrupt is remained PFR=0, unintended operation occurs.
Effective Range of Deep Standby Transfer Reset
For the effective range of deep standby transfer reset, see Table 5-2.
Table 5-2 Effective Range of Deep Standby Transfer Reset