Download presentation
Presentation is loading. Please wait.
Published byAnnabel Jacobs Modified over 9 years ago
1
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver. 1.00
2
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
3
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
4
MPC overview: MPC setting 1 Analog Pins Timer function SCI function Timer function SCI function System Pins Port B Port 1 Port D Port E Port 5 Port 3Port J Port 4 Interrupt input function Interrupt Input function © 2011 Renesas Electronics America Inc. All rights reserved. 4 MPC selects port function assignment and changes pin layout System Pins Port B Port 1 Port D Port E Port 5 Port 3Port J Port 4 MPC setting 2 Analog Pins
5
MCU RXD_2 TXD_2 Model A component layout With connector No switch No LED MCU IRQ7 IRQ6 Model B component layout No connector With switch No LED MCU Port output Model C component layout No connector No switch With LED As the pins have multiple functions, the same board can be used for several models with different functions by effective board design. P16 P17 P16 P17 P16 P17 MCU Port output IRQ6 Model D component layout No connector With switch No switch No LED With LED P16 P17 MPC Usage Example © 2011 Renesas Electronics America Inc. All rights reserved. 5
6
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) Semantics Questions: The HW manual refers to PFS as Pin Function Control Register. The HW manual refers to PSEL as Pin Function Select Which are correct?
7
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
8
8 Selecting Port Functionality (P12 as IRQ2 input) - PSEL[3:0] P12PFS 76543210 bit Pin Function Select bits IRQ function selection bit 0 Not an IRQ pin 1 IRQ2 input 0000 : Hi-Z 0101 : TMCI1 1111 : 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.
9
Using PDG to configure MPC © 2011 Renesas Electronics America Inc. All rights reserved. 9 Graphical interface that generates RPDL code Helps with initial configuration
10
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 RX630RX630 Hardware Manual
11
Summary MPC Overview Flexibility Easy Migration Register Set Overview Example Configuration Thank you! © 2011 Renesas Electronics America Inc. All rights reserved. 11
12
Renesas Electronics America Inc. Thank You © 2011 Renesas Electronics America Inc. All rights reserved.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.