XMC1000 ... P0.8 won't toggle.

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

cross mob
Not applicable
Hi

I have XMC1300 boot kit and download blinky example from here.

I have edit pin assignment from p0.0 to p0.8 and run it.
It won't toggle for p0.8 (LED always turn ON but not blinking)
what wrong?

Regards,
iamten
0 Likes
2 Replies
Not applicable
Hi iamten,

There is a bit tricky for this pin.
If you read the Reference Manual on the P0_IOCR8 register, it mentioned that this pin is set as input pull up device (00010b).
Unfortunately, DAVE did not take care to mask it back to 00000 when doing initialization.
Instead, it just OR with the new value when doing initialization and it basically will end up with different output function.
Hence, what you need to do is to mask the register back to zero in the DAVE_MUX_Init(); before it gets initialized.


rgds,
Rou
0 Likes
Not applicable
Hi Rou,

Thank you for calrify. I have doubt for many days about p0.8 ..
I will try to mask P0_IOCR8 register in DAVE_MUX_Init(); to zero.

Regards,
iamten
0 Likes