PWM signal Generation by using eMIOS RTD5

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PWM signal Generation by using eMIOS RTD5

ソリューションへジャンプ
132件の閲覧回数
Sambasiva
Contributor II

Hello All, I am currently working for NXPS32K388,RTD 5 version driver with EB tresos.

Can you please help me to understand how the eMIOS Channel master and UC channel selection ?

is single master Bus on eMIOS (0 or 1 or2 ) is enough to refer all the emios channels (eMIOS 0 has 3 Channels used, eMIOS 1 has 5 channels Used)?

Why we are configuring the default period for master ? how it is limiting or affecting the  PWM period and Duty?

PWM mode i trying to use is OPWMB.

also Please share any reference document mentioning the step by step procedure for configuring PWM and the dependent Mcl modules.?

Thanks &Regards,

Sambasiva.

0 件の賞賛
返信
1 解決策
122件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Sambasiva 

First, there are two types of counter buses: global buses and local buses.

  • Global: Bus A (Channel 23) and Bus F (Channel 22).
  • Local: Bus B (Channel 0), Bus C (Channel 8), and Bus D (Channel 16).

The main difference is that the local buses can only be used as a time base by specific channels. You can find the supported counter bus for each channel in Table 405 of the S32K3xx Reference Manual, Rev. 12.

Please also keep in mind that a counter bus can only be assigned to channels belonging to the same eMIOS instance. Therefore, if you need to use PWM channels from different eMIOS instances, you will need to configure a counter bus for each instance.

The selection between a global and a local bus depends on your application requirements. If several PWM channels need to share the same time base, you can assign them to the same counter bus, provided that the selected bus is available for those channels.

Regarding how the counter bus configuration affects the PWM frequency, as well as how the clock and prescaler parameters are involved, I recommend checking the thread eMIOS PWM configuration for 40% duty cycle of 1 second. In that thread, I explain in more detail how to calculate the PWM frequency according to the selected configuration.

 

BR, VaneB

元の投稿で解決策を見る

1 返信
122件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Sambasiva 

First, there are two types of counter buses: global buses and local buses.

  • Global: Bus A (Channel 23) and Bus F (Channel 22).
  • Local: Bus B (Channel 0), Bus C (Channel 8), and Bus D (Channel 16).

The main difference is that the local buses can only be used as a time base by specific channels. You can find the supported counter bus for each channel in Table 405 of the S32K3xx Reference Manual, Rev. 12.

Please also keep in mind that a counter bus can only be assigned to channels belonging to the same eMIOS instance. Therefore, if you need to use PWM channels from different eMIOS instances, you will need to configure a counter bus for each instance.

The selection between a global and a local bus depends on your application requirements. If several PWM channels need to share the same time base, you can assign them to the same counter bus, provided that the selected bus is available for those channels.

Regarding how the counter bus configuration affects the PWM frequency, as well as how the clock and prescaler parameters are involved, I recommend checking the thread eMIOS PWM configuration for 40% duty cycle of 1 second. In that thread, I explain in more detail how to calculate the PWM frequency according to the selected configuration.

 

BR, VaneB

%3CLINGO-SUB%20id%3D%22lingo-sub-2425473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EeMIOS%20RTD5%E3%82%92%E7%94%A8%E3%81%84%E3%81%9FPWM%E4%BF%A1%E5%8F%B7%E7%94%9F%E6%88%90%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2425473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%9A%86%E3%81%95%E3%82%93%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%82%E7%A7%81%E3%81%AF%E7%8F%BE%E5%9C%A8%E3%80%81EB%20tresos%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9FNXPS32K388%2CRTD%205%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%AE%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%81%A7%E5%83%8D%E3%81%84%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3EeMIOS%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%81%A8UC%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E9%81%B8%E6%8A%9E%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E6%95%99%E3%81%88%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3EeMIOS%E4%B8%8A%E3%81%AE%E5%8D%98%E4%B8%80%E3%81%AE%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9(0%E3%81%BE%E3%81%9F%E3%81%AF1%E3%81%BE%E3%81%9F%E3%81%AF2)%E3%81%A7%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AEemios%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%82%92%E5%8F%82%E7%85%A7%E3%81%99%E3%82%8B%E3%81%AE%E3%81%AB%E5%8D%81%E5%88%86%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F(eMIOS%200%E3%81%AF3%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%80%81eMIOS%201%E3%81%AF5%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E4%BD%BF%E7%94%A8)%3C%2FP%3E%3CP%3E%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E6%9C%9F%E9%96%93%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E7%90%86%E7%94%B1%E3%81%AF%E4%BD%95%E3%81%A7%E3%81%99%E3%81%8B%EF%BC%9FPWM%E6%9C%9F%E9%96%93%E3%81%A8%E3%83%87%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B5%E3%82%A4%E3%82%AF%E3%83%AB%E3%82%92%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E5%88%B6%E9%99%90%E3%81%BE%E3%81%9F%E3%81%AF%E5%BD%B1%E9%9F%BF%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FP%3E%3CP%3E%E7%A7%81%E3%81%8C%E4%BD%BF%E7%94%A8%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8BPWM%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AFOPWMB%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%BE%E3%81%9F%E3%80%81PWM%E3%81%8A%E3%82%88%E3%81%B3%E9%96%A2%E9%80%A3%E3%81%99%E3%82%8BMcl%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%89%8B%E9%A0%86%E3%82%92%E6%AE%B5%E9%9A%8E%E7%9A%84%E3%81%AB%E8%AA%AC%E6%98%8E%E3%81%97%E3%81%9F%E5%8F%82%E8%80%83%E8%B3%87%E6%96%99%E3%81%8C%E3%81%82%E3%82%8C%E3%81%B0%E3%80%81%E3%81%9C%E3%81%B2%E5%85%B1%E6%9C%89%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%B5%E3%83%B3%E3%83%90%E3%82%B7%E3%83%90%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2425586%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PWM%20signal%20Generation%20by%20using%20eMIOS%20RTD5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2425586%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F262774%22%20target%3D%22_blank%22%3E%40Sambasiva%E3%81%95%E3%82%93%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E3%81%BE%E3%81%9A%E3%80%81%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E3%81%AB%E3%81%AF%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%83%90%E3%82%B9%E3%81%A8%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%83%90%E3%82%B9%E3%81%AE2%E7%A8%AE%E9%A1%9E%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%3A%E3%83%90%E3%82%B9A(%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB23)%E3%81%8A%E3%82%88%E3%81%B3%E3%83%90%E3%82%B9F(%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB22)%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%3A%E3%83%90%E3%82%B9B(%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB0)%E3%80%81%E3%83%90%E3%82%B9C(%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB8)%E3%80%81%E3%83%90%E3%82%B9D(%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB16)%E3%80%82%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%E4%B8%BB%E3%81%AA%E9%81%95%E3%81%84%E3%81%AF%E3%80%81%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%83%90%E3%82%B9%E3%81%AF%E7%89%B9%E5%AE%9A%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%A7%E3%81%97%E3%81%8B%E6%99%82%E9%96%93%E5%9F%BA%E6%BA%96%E3%81%A8%E3%81%97%E3%81%A6%E4%BD%BF%E3%81%88%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%E5%90%84%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AB%E5%AF%BE%E5%BF%9C%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E3%81%AF%E3%80%81S32K3xx%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB12%E7%89%88%E3%81%AE%E8%A1%A8405%E3%81%AB%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%81%BE%E3%81%9F%E3%80%81%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E3%81%AF%E5%90%8C%E3%81%98eMIOS%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%81%AB%E5%B1%9E%E3%81%99%E3%82%8B%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AB%E3%81%AE%E3%81%BF%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%82%89%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E8%A6%9A%E3%81%88%E3%81%A6%E3%81%8A%E3%81%84%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%81%E7%95%B0%E3%81%AA%E3%82%8BeMIOS%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%81%8B%E3%82%89PWM%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E5%90%84%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%81%94%E3%81%A8%E3%81%AB%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%83%90%E3%82%B9%E3%81%A8%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%83%90%E3%82%B9%E3%81%AE%E9%81%B8%E6%8A%9E%E3%81%AF%E3%80%81%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E8%A6%81%E4%BB%B6%E3%81%AB%E3%82%88%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E8%A4%87%E6%95%B0%E3%81%AEPWM%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%8C%E5%90%8C%E3%81%98%E3%82%BF%E3%82%A4%E3%83%A0%E3%83%99%E3%83%BC%E3%82%B9%E3%82%92%E5%85%B1%E6%9C%89%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E3%83%90%E3%82%B9%E3%81%8C%E3%81%9D%E3%82%8C%E3%82%89%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AB%E5%88%A9%E7%94%A8%E5%8F%AF%E8%83%BD%E3%81%A7%E3%81%82%E3%82%8C%E3%81%B0%E3%80%81%E5%90%8C%E3%81%98%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E3%81%AB%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%AB%E3%82%A6%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%90%E3%82%B9%E6%A7%8B%E6%88%90%E3%81%8CPWM%E5%91%A8%E6%B3%A2%E6%95%B0%E3%81%AB%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E5%BD%B1%E9%9F%BF%E3%81%99%E3%82%8B%E3%81%8B%E3%80%81%E3%81%BE%E3%81%9F%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E3%82%84%E3%83%97%E3%83%AA%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%A9%E3%81%AE%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%8C%E3%81%A9%E3%81%86%E9%96%A2%E3%82%8F%E3%82%8B%E3%81%8B%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%81Thread%E3%81%AE%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2Femios-pwm-configuration-for-40-duty-cycle-of-1-second%2Ftd-p%2F1982985%22%20target%3D%22_blank%22%3EeMIOS%20PWM%E6%A7%8B%E6%88%90%E3%81%A740%25%E3%83%87%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B5%E3%82%A4%E3%82%AF%E3%83%AB1%E7%A7%92%3C%2FA%3E%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E3%81%8A%E5%8B%A7%E3%82%81%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E3%81%9D%E3%81%AEThread%E3%81%A7%E3%81%AF%E3%80%81%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E6%A7%8B%E6%88%90%E3%81%AB%E5%BF%9C%E3%81%98%E3%81%9FPWM%E5%91%A8%E6%B3%A2%E6%95%B0%E3%81%AE%E8%A8%88%E7%AE%97%E6%96%B9%E6%B3%95%E3%82%92%E8%A9%B3%E3%81%97%E3%81%8F%E8%AA%AC%E6%98%8E%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%E3%80%81VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E