Anonymous
Not applicable
Sep 07, 2011
03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 07, 2011
03:38 AM
In the datasheet of CY8C9560A, it is mentioned that the drive mode register must be configured for PWM output, but not mentioned specifically for GPIO operation.
Do the drive mode registers need to be configured for GPIO operation also?
Labels
3 Replies
Sep 07, 2011
03:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 07, 2011
03:52 PM
Yes, you need to set the drive mode for GPIO operation but for PWM operation all you need to do is set the direction to Output and configure the pin as PWM output.
Best regards,
Pushek
Attachments are accessible only for community members.
Anonymous
Not applicable
Sep 14, 2011
01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 14, 2011
01:37 AM
Aug 30, 2017
05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 30, 2017
05:27 AM
To get pwn enabled and appear in the pin, you have to:
- the output pin must be 1 (writing 1 into the output register - 0x08 - 0x0f)
- the pwm must be enabled, too (writing into register 0x1a)
Table 8 on page 12 will help.