- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have used PSoC 4 and 5 and the APIs are very clear.
I am trying to use PWM in PSOC6 (instance name PWM_1) and the functions available for say changing compare values are:
PWM_1_SetCompare0()
Cy_TCPWM_PWM_SetCompare0()
Which one to use? What's the difference?
Also, the PDL reference does not mention PWM_1_Start(), but it's available in the dropdown list when typing in functions. Where can I find the list of all APIs.
I am beginning with PSOC-6 but have used PSOC-4 and 5 for a long time.
Please help.
Thank you
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> PWM_1_SetCompare0()
> Cy_TCPWM_PWM_SetCompare0()
> Which one to use? What's the difference?
I think that the difference came from the fact that PSoC 6 is/are using PDL.
Cy_TCPWM_PWM_SetCompare0() is native expression of PDL.
Usage of PDL should be found in
C:\Program Files (x86)\Cypress\PDL\<version>\doc
For example
C:\Program Files (x86)\Cypress\PDL\3.1.3\doc
But for the compatibility with PSoC 4, PSoC 5LP, expression(s) like
PWM_1_SetCompare0()
are also provided.
But from my experience, the compatibility functions don't seem to be complete
so often we have to use PDL style expression.
I wrote the following sample for the beginner, and it also includes the sample use of PWM
so I wonder if it can be some hint for you.
(I re-read my code, and found that I was using mostly the compatibility functions...)
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> PWM_1_SetCompare0()
> Cy_TCPWM_PWM_SetCompare0()
> Which one to use? What's the difference?
I think that the difference came from the fact that PSoC 6 is/are using PDL.
Cy_TCPWM_PWM_SetCompare0() is native expression of PDL.
Usage of PDL should be found in
C:\Program Files (x86)\Cypress\PDL\<version>\doc
For example
C:\Program Files (x86)\Cypress\PDL\3.1.3\doc
But for the compatibility with PSoC 4, PSoC 5LP, expression(s) like
PWM_1_SetCompare0()
are also provided.
But from my experience, the compatibility functions don't seem to be complete
so often we have to use PDL style expression.
I wrote the following sample for the beginner, and it also includes the sample use of PWM
so I wonder if it can be some hint for you.
(I re-read my code, and found that I was using mostly the compatibility functions...)
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply.
Do you also have an idea as to which compatibility functions are supported? Any document that mentions the list of all the supported compatibility function will be helpful.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Mrinal,
Please check the <component_name>.h file to see the different component APIs that are available to you for a component.
You can also refer to Using the PSoC Creator Component API section in PDL User Guide which explains the differences between the PDL APIs and the Component APIs.
Rakshith M B