AnsweredAssumed Answered

issue of PT23_Getval() in BitsIO

Question asked by Aaron Lee on Sep 11, 2019
Latest reply on Sep 20, 2019 by lama

Hi,

We use S12ZVCA and CodeWarrior for MCU v11.1.

[main.c line 188]

bTurnStatus_Temp = PT23_LeftRight_GetVal(); // Get PT2 & PT3 value (SCI1 & SCI2 abnormal)

It's highly unstable Transmit/Receive in SCI1 &SCI2  if we use the Getval().

 

[main.c line 187]

bTurnStatus_Temp = (PTT & 0x0C) >> 2; // Get PT2 & PT3 value (SCI1 & SCI2 work fine)

We use line 187 to instead of GetVal(). It works fine. Why?

 

  • SCI0, 115200,n,8,1
  • SCI1 9600,n,8,1
  • SCI1 sent "$D1,00,000#" immediately when SCI0 received 0xA0 10 0B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DE

 

Best Regards,

Aaron

Attachments

Outcomes