MPC5748G EMIOS_IC(24Bits RegA)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5748G EMIOS_IC(24Bits RegA)

776 Views
1419428705
Contributor I

需要实现的功能:检测周期重0us到2s的PWM波形,精度要做到0.1us,意味着counter值至少能表示2s的数字,需要24个bit来表示;
问题:MPC5748G,EMIOS功能,SAIC ,双边沿触发模式,clock :10Mhz;一个bit等于0.1us;当边沿触发后,读取到regA的值始终小于0xffff (调用EMIOS_GetUCregA();函数),数据手册上说是24bit的数字; 希望能帮忙看下,如何才能读取到24bit的counter值

0 Kudos
5 Replies

651 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the implemented timer width is 16bit

pastedImage_1.png

 Thus the reading from A/B registers cannot be higher then 0xFFFF.

BR, Petr

0 Kudos

651 Views
1419428705
Contributor I

Hi,

 the regA width is 24bit;I read the counter from regA2 in  the mode of SAIC; In fact ,the counter width  is 16bit; Why did  the datasheet  tell me that the regA width is 24bit.

pastedImage_2.jpgpastedImage_1.jpg

0 Kudos

651 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the register and functional description comes from the IP and so it may still contain info about 24bit width, but implemented is 16bit only on this device.

BR, Petr

0 Kudos

651 Views
1419428705
Contributor I

Hi,

if I want to read the system implemented timer, how to do it?

0 Kudos

651 Views
PetrS
NXP TechSupport
NXP TechSupport

if you meant STM module then you can refer to https://community.nxp.com/docs/DOC-343258 

BR, Petr

0 Kudos