9. Input / Output port
This chapter describes port-related registers, their setting and circuits.
9.1 Registers
When the port registers are used, the following registers must be set.
All registers are 32-bits. The configurations are different depend on the number of port bits and assignation of
the function.
"x" means the name of ports and "n" means the function number in the following description.
Register Name
Setting Value
PxDATA
Data register
0 or 1
This register reads / writes port data.
PxCR
Output control register
0 : Output Disable
1 : Output Enable
This register controls output.
PxFRn
Function register n
0 : PORT
1 : Function
This register sets the function.
The assigned function can be enabled by setting "1". This
register exists for the each function assigned to the port. In
case of having some function, only one function can be ena-
bled.
PxOD
Open-drain control register
0 : CMOS
1 : Open-drain
This register controls programmable open-drain outputs.
Programmable open-drain outputs are set with PxOD.
When output data is "1", output buffer is disabled and be-
comes a pseudo-open-drain output.
PxPUP
Pull-up control register
0 : Pull-up Disable
1 : Pull-up Enable
This register controls programmable pull-ups.
PxPDN
Pull-down control register
0 : Pull-down Disable
1 : Pull-down Enable
This register controls programmable pull-downs.
PxIE
Input control register
0 : Input Disable
1 : Input Enable
This register controls inputs.
Some time is required after enabling PxIE until external da-
ta is reflected in PxDATA.
TMPM3V6/M3V4
Page 133
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......