Renesas R-IN32M3 Series User Manual page 235

Hide thumbs Also See for R-IN32M3 Series:
Table of Contents

Advertisement

R-IN32M3-EC User's Manual
8.6
Operation of Port Functions
Operation of the ports differs depending on the I/O mode setting as described below.
8.6.1
Reading and Writing via I/O Ports
(1) In Output Mode
If a value is written to port register n (Pn or RPn), the value is written to that port's output latch (Pn or RPn). The value of
the output latch is output from the pin.
The value written to the output latch is held until another value is written.
The value of the output latch (Pn or RPn) can be read by reading port register n (Pn or RPn).
To directly read the pin level, read port pin input register n (PINn or RPINn).
(2) In Input Mode
If a value is written to port register n (Pn or RPn), the value is written to that port's output latch (Pn or RPn). However,
the pin state does not change because the output buffer is off.
The value written to the output latch is held until another value is written.
To read the input level, read port pin input register n (PINn or RPINn).
8.6.2
Multiplexed Function Pin Output State in Control Mode
The port pin level can be read directly by reading port pin input register n (PINn or RPINn), regardless of the settings of
the PMCn, PMn, PFCn, and PFCEn registers.
R18UZ0003EJ0501
Jan. 12, 2021
8. Port Function
Page 222 of 224

Advertisement

Table of Contents
loading

This manual is also suitable for:

R-in32m3-ecMc-10287bf1-hn4-aMc-10287bf1-hn4-m1-a

Table of Contents