Universal Port Multiplexer (Upmux); Overview; Peripheral Circuit I/O Function Assignment - Epson S1C17M20 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

7 Universal Port Multiplexer (UPMUX)

7.1 Overview

UPMUX is a multiplexer that allows software to assign the desired peripheral I/O function to an I/O port. The main
features are outlined below.
• Allows programmable assignment of the synchronous serial interface, I
eral I/O functions to the P0, P1, P2, and P3 port groups.
• The peripheral I/O function assigned via UPMUX is enabled by setting the PxFNCSEL.PxyMUX[1:0] bits to 0x1.
Note: 'x', which is used in the port names Pxy, register names, and bit names, refers to a port group (x
= 0, 1, 2, 3) and 'y' refers to a port number (y = 0, 1, 2, ··· , 7).
Figure 7.1.1 shows the configuration of UPMUX.
UPMUX
PxyPPFNC[2:0]
PxyPERICH[1:0]
PxyPERISEL[2:0]

7.2 Peripheral Circuit I/O Function Assignment

An I/O function of a peripheral circuit supported may be assigned to peripheral I/O function 1 of an I/O port listed
above. The following shows the procedure to assign a peripheral I/O function and enable it in the I/O port:
1. Configure the PxIOEN register of the I/O port.
- Set the PxIOEN.PxIENy bit to 0.
- Set the PxIOEN.PxOENy bit to 0.
2. Set the PxMODSEL.PxSELy bit of the I/O port to 0.
3. Set the following PxUPMUXn register bits (n = 0 to 3).
- PxUPMUXn.PxyPERISEL[2:0] bits
- PxUPMUXn.PxyPERICH[1:0] bits
- PxUPMUXn.PxyPPFNC[2:0] bits
4. Initialize the peripheral circuit.
5. Set the PxFNCSEL.PxyMUX[1:0] bits of the I/O port to 0x1.
6. Set the PxMODSEL.PxSELy bit of the I/O port to 1.
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
Input data
selector
Output data
selector
Figure 7.1.1 UPMUX Configuration
Seiko Epson Corporation
7 UNIVERSAL PORT MULTIPLEXER (UPMUX)
C, UART, and 16-bit PWM timer periph-
2
Data, I/O control
Function 1 selection
(Disable input)
(Disable output)
(Disable peripheral I/O function)
(Select peripheral circuit)
(Select peripheral circuit channel)
(Select function to assign)
(Select peripheral I/O function 1)
(Enable peripheral I/O function)
Peripheral circuit
I/O port
Pxy
7-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents