PDA

View Full Version : XMC1000 ... P0.8 won't toggle.



iamten
Aug 9th, 2013, 07:32 AM
Hi

I have XMC1300 boot kit and download blinky example from here (http://www.infineon.com/cms/en/product/microcontrollers/32-bit-industrial-microcontrollers-based-on-arm-registered-cortex-tm-m/32-bit-xmc1000-industrial-microcontrollers-arm-registered-cortex-tm-m0/xmc1000-starter-kits/boot-kit-xmc1300/channel.html?channel=db3a30433cfb5caa013d115ee9e70 66c).

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

Rou
Aug 11th, 2013, 11:34 PM
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

iamten
Aug 12th, 2013, 03:39 AM
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