Hardware Reference
In-Depth Information
7.5.6 Port M
In addition to having all the equivalent registers (PTM, DDRM, PTIM, RDRM, PERM,
PPSM, and WOMM) contained in Port S, Port M also has a Module Routing register (MODRR).
This register configures the rerouting of CAN0, CAN4, SPI0, SPI1, and SPI2 on defined port
pins. The contents of the MODRR register are shown in Figure 7.13. The functions of Port M
pins are illustrated in Figure 7.14.
7
6
5
4
3
2
1
0
Reset value
= 0x00
0
MODRR6 MODRR5 MODRR4 MODRR3
MODRR2
MODRR1 MODRR0
CAN0 routing
SPI0 routing
MODRR1
MODRR0
RXCAN0
TXCAN0
MODRR4
MISO0
MOSI0
SCK0
SS0
0
1
PS4
PM2 5
PS5
PM4 6
PS6
PM5 6
PS7
PM3 5
PM0
PM2 1
PM4 2
PM1
PM3 1
PM5 2
reserved
0
0
1
1
0
1
0
1
SPI1 routing
MODRR5
MISO1
MOSI1
SCK1
SS1
CAN4 routing
0
1
PP0
PH0
PP1
PH1
PP2
PH2
PP3
PH3
MODRR3
MODRR2
RXCAN4
TXCAN4
PJ6
PM4 3
PM6 4
PJ7
PM5 3
PM7 4
reserved
0
0
1
1
0
1
0
1
SPI2 routing
MODRR6
MISO2
MOSI2
SCK2
SS2
0
1
PP4
PH4
PP5
PH5
PP7
PH6
PP6
PH7
Notes:
1. Routing to this pin takes effect only if CAN1 is disabled.
2. Routing to this pin takes effect only if CAN2 is disabled.
3. Routing to this pin takes effect only if CAN2 is disabled and CAN0 is not
routed here.
4. Routing to this pin takes effect only if CAN3 is disabled.
5. Routing to this pin takes effect only if CAN1 is disabled, and CAN0 is disabled
if routed here.
6. Routing to this pin takes effect only if CAN2 is disabled; CAN0 is disabled if
routed here and CAN4 is disabled if routed here.
Figure 7.13 Module Routing register (MODRR)
PM0/RXCAN0/RXB
PM1/TXCAN0/TXB
PM2/RXCAN1/RXCAN0/MISO0
PM3/TXCAN1/TXCAN0/SS0
PM4/RXCAN2/RXCAN0/RXCAN4/MOSI0
PM5/TXCAN2/TXCAN0/TXCAN4/SCK0
PM6/RXCAN3/RXCAN4
PM7/TXCAN3/TXCAN4
Figure 7.14 Port M pins and their alternate functions
 
 
Search WWH ::




Custom Search