Nov 19, 2013
04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
04:27 AM
Hello
I'm using the PWMSP001 to generate a special output and in my case it is necessary to set the output pin to high impedance. The library doesn't give me the opportunity to do this.
So my question is, is it possible to do this when the pin is used by the PWM?
Best regards,
Caro
I'm using the PWMSP001 to generate a special output and in my case it is necessary to set the output pin to high impedance. The library doesn't give me the opportunity to do this.
So my question is, is it possible to do this when the pin is used by the PWM?
Best regards,
Caro
4 Replies
Nov 19, 2013
08:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
08:24 AM
Just configure the appropriate pin as input like this (in this example Port1.14):
WR_REG(PORT1->IOCR12, PORT1_IOCR12_PC14_Msk, PORT1_IOCR12_PC14_Pos, 0);
Not applicable
Nov 19, 2013
09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
09:50 PM
Hi Caro,
I think you should configure the pin (eg. P1.2) as "Alternate output function 3" with "Open-drain" characteristics:
Pls give a try and let us know the outcomes, thanks.
Best regards,
Zain
I think you should configure the pin (eg. P1.2) as "Alternate output function 3" with "Open-drain" characteristics:
WR_REG(PORT1->IOCR0, PORT1_IOCR0_PC2_Msk, PORT1_IOCR0_PC2_Pos, 0x1B);
Pls give a try and let us know the outcomes, thanks.
Best regards,
Zain
Not applicable
Nov 22, 2013
05:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 22, 2013
05:16 AM
Hi
Back in Time I had pretty the same problem.
So question from my side where do I finde all those Defines explainded?
Best regards,
Phreaky
Back in Time I had pretty the same problem.
So question from my side where do I finde all those Defines explainded?
Best regards,
Phreaky
Nov 22, 2013
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 22, 2013
09:11 AM
PhreakyFreaky wrote:
Hi
Back in Time I had pretty the same problem.
So question from my side where do I finde all those Defines explainded?
Best regards,
Phreaky
Do you mean for example where "PORT1" or "PORT1_IOCR0_PC2_Pos" is defined?
Answer: in
Explained in "Reference Manual": xmc4500_rm_v1.3_2013_08.pdf