Hi Ankur,
If TEST pin is connected to GND we could exclude TEST mode from potential root causes.
So, there remains a potential issue with power supply and software which somehow depends on PT0/PT1 voltage levels.
In typical motor control applications, TIM OC0 is used internally to indicate commutation events. However if you route SCI0 signals directly to PT0/PT1 (S0L0RR[2:0]=110) and you enable SCI0 module, this should take precedence prior other settings and pins should be reserved for SCI.
On opposite side you can still route PT0 signal to TIM0 ch3 (T0IC3RR1-0). So, timer module could be influenced by PT0 voltage level.
So, voltage levels could have some hidden effect even when pins are configured for SCI. Additionally SCI is typically not initialized directly after reset. So, it depends also on code prior we enable SCI module.
Pull-ups/downs influence could be tested by setting PERT, PPST registers in some early initialization function.
Important note:
You mentioned that customer combined S12ZVM bldc software available for EVB with code generated by Processor Expert. I would like to note about dangerous in case of this approach for some registers. PE code generates low level initialization code and EVB software has own low level configuration. Unfortunately some of registers could be written just once – for example MODRR0, MODRR1, MODRR2.
The same is valid for some other registers/bits. Please check at least whether customer software do not initialize these registers more than once – especially MODRR and CPMU registers.
About voltage power supply)
Reference manual recommends 1kOhm resistor between emitter and base of the BJT (R2, R3).
Could you please check VDDX voltage level by oscilloscope in both cases (with and without SCI connection)?
Your scheme of sci connection contains line VDDC, unfortunately I didn’t found that line in schematic.
Could you please check voltage level at this line and whether it is used as voltage input from USB2UART cable (typically we use just GND, RX and TX lines)?
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------