cancel
Showing results for 
Search instead for 
Did you mean: 

Ask a question about the PWM setting of the SPC58 series controller!

Bwang.3
Associate III

Hello! In the SPC58XX-RLA PWM-ICU Test Application for Discovery routine, I would like to ask which CH0 is circled in red as shown in the following figure, CH1... What do they represent? I have been confused whether eMIOS0 CH0 in the first image and Channel 0 in the Channel 0 Setting in the second image are the same channel. I hope you can give me an answer! Thank you!

QQ图片20240523183243.pngQQ图片20240523183345.png

1 ACCEPTED SOLUTION

Accepted Solutions
ATROI
ST Employee

Hi Bwang,

The answer to your question is no, channel 0 (CH0) in the first picture is not the same as in picture 1.

The example "SPC582Bxx_RLA PWM-ICU Test Application for Discovery" you see has two eMios set up differently. One is SAIC (Single Action Input Capture), and the other is OPWMB (Buffered Output Pulse With Modulation).

The Emios0 CH0-CH7 channels (Group 0) can be configured independently of each other either as PWM or ICU.

In addition, each channel of the eMaios0 Group0 can be configured with a different frequency depending on the frequency of the internal counter.

The eMios0 Group0 is shown in the red rectangle,

ATROI_0-1716722433606.png

while in the green rectangle, eMios0 is grouped as

    Group1 -> (CH9 - Ch15)

    Group2 -> (CH17 - CH23)

    Group3 -> (CH25 - CH31)

Group1,2,3 can be configured in the GUI as PWM with a common group frequency depending on the Internal Frequency Counter.

eMios configuration as PWM

In the example, the eMios configured as PWM is the Emios0 Group1.

ATROI_1-1716722465313.png

This is because pin 6 is selected as the output signal in the PinMap Editor and is used with CH9.

ATROI_2-1716722487988.png

In the PWM configuration window,

ATROI_3-1716722513515.png

in rectangle 1, eMios0 Group1-3 is selected as the channel group, based on the previous settings, and

in rectangle 2, 'Channel 0 settings' is configured, because it represents channel CH9. See the following image.

ATROI_4-1716722554728.png

AutoDevKit Team

View solution in original post

1 REPLY 1
ATROI
ST Employee

Hi Bwang,

The answer to your question is no, channel 0 (CH0) in the first picture is not the same as in picture 1.

The example "SPC582Bxx_RLA PWM-ICU Test Application for Discovery" you see has two eMios set up differently. One is SAIC (Single Action Input Capture), and the other is OPWMB (Buffered Output Pulse With Modulation).

The Emios0 CH0-CH7 channels (Group 0) can be configured independently of each other either as PWM or ICU.

In addition, each channel of the eMaios0 Group0 can be configured with a different frequency depending on the frequency of the internal counter.

The eMios0 Group0 is shown in the red rectangle,

ATROI_0-1716722433606.png

while in the green rectangle, eMios0 is grouped as

    Group1 -> (CH9 - Ch15)

    Group2 -> (CH17 - CH23)

    Group3 -> (CH25 - CH31)

Group1,2,3 can be configured in the GUI as PWM with a common group frequency depending on the Internal Frequency Counter.

eMios configuration as PWM

In the example, the eMios configured as PWM is the Emios0 Group1.

ATROI_1-1716722465313.png

This is because pin 6 is selected as the output signal in the PinMap Editor and is used with CH9.

ATROI_2-1716722487988.png

In the PWM configuration window,

ATROI_3-1716722513515.png

in rectangle 1, eMios0 Group1-3 is selected as the channel group, based on the previous settings, and

in rectangle 2, 'Channel 0 settings' is configured, because it represents channel CH9. See the following image.

ATROI_4-1716722554728.png

AutoDevKit Team