Drive mode registers of CY8C9560A

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

cross mob
Anonymous
Not applicable

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?

0 Likes
3 Replies
pushekm_21
Employee
Employee
10 likes received 5 likes given First like received

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

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Do you mean to say that drive mode setting is not needed for PWM.?

   

But as per datasheet (page no.12, under the heading-select PWM register), it says that the setting is needed.

   

Regards,

   

SOJAN

0 Likes
Anonymous
Not applicable

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.

0 Likes