Example MPC5646C eMIOS frequency measurement CW210

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

Example MPC5646C eMIOS frequency measurement CW210

Example MPC5646C eMIOS frequency measurement CW210

********************************************************************************
* Detailed Description:
*
* This example shows possible implementation of frequency and duty cycle

* measurement with the help of eMIOS module.
* Two eMIOS channels are used and set to IPWM and IPM modes. The first channel
* measures the positive pulse width and the second channel measures the period.
*
* EVB connection:
* PJ7.5 to PJ7.6 ... connect external pulse signal to this
*
* See result on PC terminal (9600, 8N1)
* ------------------------------------------------------------------------------
* Test HW:  XPC56xxMB2 + XPC564xB/C, SPC5646C 0N32E silicon
* Target :  internal_FLASH, RAM
* Fsys:     120 MHz PLL0
* Debugger: Lauterbach Trace32. script for internal_FALSH run_from_flash.cmm
*                               script for RAM: run_from_ram_vle.cmm
*
********************************************************************************

 

183024_183024.pngpastedImage_2.png

 

BR, Petr

Labels (1)
Attachments
Comments

Why can printf work? How can I use this function via CAN?

my email: greyzhang@126.com

Link to source file no longer works.  Where did you put the code?

link is restored. BR, Petr

%3CLINGO-SUB%20id%3D%22lingo-sub-1110161%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5646C%20eMIOS%20frequency%20measurement%20CW210%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1110161%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20This%20example%20shows%20possible%20implementation%20of%20frequency%20and%20duty%20cycle%3C%2FP%3E%3CP%3E*%20measurement%20with%20the%20help%20of%20eMIOS%20module.%3CBR%20%2F%3E*%20Two%20eMIOS%20channels%20are%20used%20and%20set%20to%20IPWM%20and%20IPM%20modes.%20The%20first%20channel%3CBR%20%2F%3E*%20measures%20the%20positive%20pulse%20width%20and%20the%20second%20channel%20measures%20the%20period.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20EVB%20connection%3A%3CBR%20%2F%3E*%20PJ7.5%20to%20PJ7.6%20...%20connect%20external%20pulse%20signal%20to%20this%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20See%20result%20on%20PC%20terminal%20(9600%2C%208N1)%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%20XPC56xxMB2%20%2B%20XPC564xB%2FC%2C%20SPC5646C%200N32E%20silicon%3CBR%20%2F%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%2C%20RAM%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20120%20MHz%20PLL0%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%20Trace32.%20script%20for%20internal_FALSH%20run_from_flash.cmm%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20script%20for%20RAM%3A%20run_from_ram_vle.cmm%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22183024_183024.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22183024_183024.png%22%20style%3D%22width%3A%20678px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117281i7F4034B132B99155%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22183024_183024.png%22%20alt%3D%22183024_183024.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20678px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18657i85C483DB4D7CC8ED%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1110161%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1110164%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5646C%20eMIOS%20frequency%20measurement%20CW210%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1110164%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Elink%20is%20restored.%20BR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1110163%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5646C%20eMIOS%20frequency%20measurement%20CW210%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1110163%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELink%20to%20source%20file%20no%20longer%20works.%26nbsp%3B%20Where%20did%20you%20put%20the%20code%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1110162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5646C%20eMIOS%20frequency%20measurement%20CW210%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1110162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhy%20can%20printf%20work%3F%20How%20can%20I%20use%20this%20function%20via%20CAN%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Emy%20email%3A%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-email-small%22%20href%3D%22mailto%3Agreyzhang%40126.com%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Egreyzhang%40126.com%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎05-03-2017 04:22 AM
Updated by: