Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
pistons7
Level 4
Level 4
50 questions asked 10 likes given 100 sign-ins

When the MPU goes into standby, do the port settings stay as they were before standby?
P33, P34 are also his SCR related ports.

For example, if P33.15 is set to High on the MPU side and transitioned to standby, will it remain High during standby?
Or, in order to control P33.15 with SCR when transitioning to Standby, is it necessary to set P33_PCSR so that it can be controlled on the SCR side and set P33.15 to High on the SCR side?

0 Likes
1 Solution
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

To expand on @Yuva post. If the port pin needs to be an output or controlled by the SCR. Then P33.x pins (except P33.8) and P34.1 can be assigned to the SCR from the TriCore side (that is controlled via the PCSR SFR  and must be done before entering Standby). On the SCR side you can configure the pin functionality via SCR code.

View solution in original post

0 Likes
4 Replies
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

The default pin behavior during standby may be configured as pull-up or tristate accordingly by TRISTREQ register bit.

Thanks

0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

To expand on @Yuva post. If the port pin needs to be an output or controlled by the SCR. Then P33.x pins (except P33.8) and P34.1 can be assigned to the SCR from the TriCore side (that is controlled via the PCSR SFR  and must be done before entering Standby). On the SCR side you can configure the pin functionality via SCR code.

0 Likes
Is the following setting for controlling P33.15 with SCR during MPU Standby?
(It doesn't work as expected.)
 
Tricore:
Perform the following settings before migrating to Standby.
    P33_PCSR.B.SEL15 = 1;
 
SCR:
Set P33.15 (SCR_P01.7) to be output during initialization processing.
    SCR_IO_PAGE = 1; //Switch to page 1
    SCR_P01_IOCR7 = 0x80; //P01 pin 7 is output
Under main control, set P33.15 to High when MPU Standby is detected.
SCR_IO_PAGE = 0;
SCR_P01_OUT = (1 << 7);
 
@@@
0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

Do you also enable the pad in the SCR?cwunder_0-1683767136871.png

 

0 Likes