(MCU:MPC5605B)How to set emios0_ch[9] for receive PWM signal

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

(MCU:MPC5605B)How to set emios0_ch[9] for receive PWM signal

1,031件の閲覧回数
547416104
Contributor III

Dear friends,

I use MPC5605B for receiving PWM signal with emios0_ch[9], it can enter interrupt normally, but  EMIOSA[9] and EMIOSB[9] value is 0.

How to set the port, thanks!!!

the setting as below: 

EMIOS_0.CH[9].CADR.R = 0x00000000;

EMIOS_0.CH[9].CBDR.R = 0x00000000;

EMIOS_0.CH[9].CCR.R = 0x0E020685;

ラベル(1)
0 件の賞賛
1 返信

973件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

eMIOS ch9 belongs to type H group which does not have internal channel implemented, so once selected it will not work.

You should either use channel from type G or X group to have a possibility of internal channel usage or select another counter bus, i.e A (ch23)  or C (ch8).

BR, Petr

0 件の賞賛