MC9S12ZVCRMV1 Conflicting Register Defaults (MODRR0)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MC9S12ZVCRMV1 Conflicting Register Defaults (MODRR0)

跳至解决方案
1,416 次查看
braxton
Contributor II

In the MC9S12ZVC-Family Reference Manual and Datasheet (accessible here: https://www.nxp.com/products/processors-and-microcontrollers/additional-mpu-mcus-architectures/s12-m...)

It is stated in section 2.3.2.1 Module Routing Register 0 (MODRR0) that MODRR0 has a default reset state of 0b00000000. It states below, in Table 2-4. MODRR0 Routing Register Field Descriptions:

bits 7-6     |     IIC0RR1-0     |     Module Routing Register — IIC0 routing
11 Reserved
10 SCL0 on PT1; SDA0 on PT0
01 SCL0 on PS1; SDA0 on PS0
00 SCL0 on PJ1; SDA0 on PJ0

bit 4     |     SCI0RR     |     Module Routing Register — SCI0 routing
1 TXD0 on PS1; RXD0 on PS0
0 TXD0 on PJ1; RXD0 on PJ0

This suggests that in a default reset state PJ0 and PJ1 both have two conflicting signals routed. Obviously in real world use we will be manually defining MODRR0 to avoid these sorts of conflicts, but is this the correct default state? On reset are pins PJ0 and PJ1 in some unknown state, or are they defaulted to either IIC or SCI?

 

EDIT: Mystery solved, see my reply below.

标记 (2)
0 项奖励
回复
1 解答
1,409 次查看
braxton
Contributor II

Aaaaand I found the answer: pins PJ0 and PJ1, as all pins, have a list of signal priorities:

braxton_0-1631565565211.png

and SCI is prioritized first, so if SCI and IIC are both set to PJ0/PJ1, SCI should be the actual signal on the pins.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,410 次查看
braxton
Contributor II

Aaaaand I found the answer: pins PJ0 and PJ1, as all pins, have a list of signal priorities:

braxton_0-1631565565211.png

and SCI is prioritized first, so if SCI and IIC are both set to PJ0/PJ1, SCI should be the actual signal on the pins.

0 项奖励
回复