Not applicable
Mar 24, 2014
06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 24, 2014
06:58 AM
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;
}
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
uint8_t data = 0x55U;
int main(void)
{
DAVE_Init(); // Initialization of DAVE Apps
while(1)
{
UART001_WriteDataBytes(&UART001_Handle0, &data, 1);
}
return 0;
}
2 Replies
Not applicable
Mar 25, 2014
12:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 25, 2014
12:56 AM
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).
Not applicable
Mar 25, 2014
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 25, 2014
05:39 AM
Your advice solve this problem. Thank you a lot.