12
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Embed Size (px)

Citation preview

Page 1: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Renesas Electronics America Inc.

© 2011 Renesas Electronics America Inc. All rights reserved.

RX210 Multi-Function Pin Controller (MPC)

Ver. 1.00

Page 2: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Course Introduction

Purpose Provide details on the RX Multi Function Pin Controller

Content MPC Overview Register Set Overview Example Configuration

Learning Time 20 Minutes

© 2011 Renesas Electronics America Inc. All rights reserved.2

Page 3: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

The Multi-Function Pin Controller

New feature on the RX63N and RX210

Replaces Port Function Control Registers on RX62N

Multiple functions multiplexed to a single pin

Flexibility in assigning functions to different pins

© 2011 Renesas Electronics America Inc. All rights reserved.3

Page 4: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

MPC overview:

MPC setting 1

Analog Pins

Timerfunction

SCIfunction

Timer function

SCI function

Interrupt inputfunction

Interrupt Input function

© 2011 Renesas Electronics America Inc. All rights reserved.4

MPC selects port function assignment and changes pin layout

MPC setting 2

Analog Pins

Page 5: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

MCU RXD_2

TXD_2

Model A component layout

With connector

No switch

No switch

No LED

No LED

MCU IRQ7

IRQ6

Model B component layout

Noconnector

With switch

With switch

No LED

No LED

MCU Port output

Port output

Model C component layout

Noconnector

No switch

No switch

With LED

With LED

As the pins have multiple functions, the same board can be used for

several models with different functions by effective board design.

P16P17

P16P17

P16P17

MCU Port output

IRQ6

Model D component layout

Noconnector

With switch

No switch

No LED

With LED

P16P17

MPC Usage Example

© 2011 Renesas Electronics America Inc. All rights reserved.5

Page 6: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

MPC Registers

Pin Function Control (PFS) register

One register for each pin (P0nPFS…PJnPFS, n=0-7)

One bit for Analog Input function (ASEL)

One bit for Interrupt function (ISEL)

Five bits for Pin Function Select (PSEL)

© 2011 Renesas Electronics America Inc. All rights reserved.6

Pin Function Control Register (PFS)

Page 7: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

MPC Registers

Write-Protect Register (PWPR)

Prevents accidental modification of the PFS registers

8 bit register with specific unlock sequence

© 2011 Renesas Electronics America Inc. All rights reserved.7

Write-Protect Register (PWPR)

0 1

Page 8: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

8

Selecting Port Functionality (P12 as IRQ2 input)

- PSEL[3:0]P12PFS

7 6 5 4 3 2 1 0bit

Pin Function Select bitsIRQ function selection bit

0 Not an IRQ pin1 IRQ2 input

0000 : Hi-Z0101 : TMCI11111 : SCL Other Values : Reserved

- -ISEL

Clear the B0WI bit in the PWPR register

Set the PFSWE bit in the PWPR register

Modify P12PFS

© 2011 Renesas Electronics America Inc. All rights reserved.

Page 9: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Using PDG to configure MPC

© 2011 Renesas Electronics America Inc. All rights reserved.9

Graphical interface that generates RPDL code Helps with initial configuration

Page 10: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Notes

© 2011 Renesas Electronics America Inc. All rights reserved.10

List of all pins a particular function can be mapped to:

Hardware Manual Table 20.1

List of all functions mapped to a particular pin:

Hardware Manual Table 20.5-20.6

RX210 Hardware Manual RX630 Hardware Manual

Page 11: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Summary

MPC Overview

Flexibility

Easy Migration

Register Set Overview

Example Configuration

Thank you!

© 2011 Renesas Electronics America Inc. All rights reserved.11

Page 12: Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00

Renesas Electronics America Inc.

Thank You

© 2011 Renesas Electronics America Inc. All rights reserved.