cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560D30L3 - PWM output on channel 1

ssk
Associate II
Posted on March 16, 2015 at 15:58

Hello Members,

I am trying to generate the PWM output on channel 1. As per my understanding, channel 0 is PA9, channel 1 is PA10 and so on. I am using the test application ''SPC560Dxx OS-Less PWM-ICU Test Application'' for this. I performed following steps,

1. Changed the platform component to SPC560D30L3.

2. Tested the app for PWM on channel 0 (PA9) and it is working fine.

3. I changed the PA9 to PA10.

4. Under HAL drivers, I modified the eMIOS settings for channel 1. (i.e. disabled ch 0 and enabled ch 1, keeping the callback function names as it is)

5. Generate application and build the project.

6. Debug and test

I am not getting the PWM output on ch 1 (PA10). What is the reason? Is any other settings are required for this?

Your earliest help in this regard will be highly appreciated. Thanks in advance.

Mike.

#pwm
8 REPLIES 8
Erwan YVIN
ST Employee
Posted on March 16, 2015 at 17:12

Hello Mike ,

Could you confirm your HW Used because normally ?

because SPC560D-Discovery kit is normally D40L1 not D30L3.

Anyway , i am testing on D40L1.

      Best regards

                       Erwan

ssk
Associate II
Posted on March 17, 2015 at 06:13

Hello Erwan,

I have replaced SPC560D40 MCU with SPC560D30L3 version on the Discovery kit.

Mike.

Erwan YVIN
ST Employee
Posted on March 17, 2015 at 09:29

Dear Mike ,

Ok we will investigate the PWM Output Channel 1 on D30L3.

             Best Regards

                         Erwan

ssk
Associate II
Posted on March 17, 2015 at 10:12

Hello Erwan,

Have you confirmed the issue? What was the output from your testing? 

I tried generating the PWM output for channel 2 (PA11) as well but same issue again. No PWM output on PA11.

Whether it is MCU issue or SPC5Studio configuration issue? If the SPC5Studio issue, can you provide the possible date for releasing the new updates?

Instead of using the SPC5Studio graphics, Can I use the low level driver initialisation to generate the PWM on these channels?

Your timely feedback to above queries will help me to estimate my further tasks/plans. Thanks in advance.

Mike.

ssk
Associate II
Posted on March 18, 2015 at 11:57

Any updates for below post?

Your earliest help will be highly appreciated. Thanks.

Mike.

Erwan YVIN
ST Employee
Posted on March 18, 2015 at 16:00

Hello Mike ,

Channel 2 does not work because the PIN 48 (PA_BUTTON) is plugged on the GPIO not EMIOS (EOC[11])

Please reconfigure your pinmap and try again. (cf Attachment)

it is working well on my side

Best regards

Erwan

________________

Attachments :

2015-03-18_155825.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0TK&d=%2Fa%2F0X0000000bZL%2FDWj0n.pl86epHUimWlSmqUA6c0HRRMkN7NtP4_YZBbE&asPdf=false
ssk
Associate II
Posted on March 18, 2015 at 16:18

Hello Erwan,

I already tried PWM output on PA11 but the issue is same. I have posted this earlier. What configuration is used? Can you share the test project?

Thanks.

Mike.

Erwan YVIN
ST Employee
Posted on March 19, 2015 at 15:07

Hello Mike ,

Channel 1 is PA[10].

In configuring on the PInmap Wizard PA[10] + Channel 1 , it is ok

Cf the test example in attachment

Best Regards

Erwan

________________

Attachments :

configuration.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0IU&d=%2Fa%2F0X0000000bZK%2Fd8tkKK7tJPkCgjRrT22jctg8IbgHZokjYFkA9BgIC2w&asPdf=false

main.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0TB&d=%2Fa%2F0X0000000bZI%2FVrjwTY.AKlPY6gpj__hedZjGqSwXotqExKTyJLhtTFo&asPdf=false