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

XMC™ Forum Discussions

Not applicable
Hello,
I have a problem with UART in combination with pin P4.7 (on XMC4500 F144K1024 AB). I set P4.7 as "UART Transmit" and look at pin with the oscilloscope. When I try to send out data (code is below) nothing happens. When I change pin to eg. P3.11 (no other change in program or settings) everything works fine. Does anyone have an idea where the problem could be?

Thanks for any response...

Code:

#include //Declarations from DAVE3 Code Generation (includes SFR declaration)

uint8_t data = 0x55U;

int main(void)
{
DAVE_Init(); // Initialization of DAVE Apps

while(1)
{
UART001_WriteDataBytes(&UART001_Handle0, &data, 1);
}
return 0;
}
0 Likes
2 Replies
Not applicable
P4.7 is a hardware controlled function (vs standard IO function) for USIC so probably you are missing the steps to enable the function (CCR.HPCEN=1) as an output (SCTR.HPCDIR=1).
0 Likes
Not applicable
Your advice solve this problem. Thank you a lot.
0 Likes