需要实现的功能:检测周期重0us到2s的PWM波形,精度要做到0.1us,意味着counter值至少能表示2s的数字,需要24个bit来表示;
问题:MPC5748G,EMIOS功能,SAIC ,双边沿触发模式,clock :10Mhz;一个bit等于0.1us;当边沿触发后,读取到regA的值始终小于0xffff (调用EMIOS_GetUCregA();函数),数据手册上说是24bit的数字; 希望能帮忙看下,如何才能读取到24bit的counter值
Hi,
the implemented timer width is 16bit
Thus the reading from A/B registers cannot be higher then 0xFFFF.
BR, Petr
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.
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
Hi,
if I want to read the system implemented timer, how to do it?
if you meant STM module then you can refer to https://community.nxp.com/docs/DOC-343258
BR, Petr