Dear All,
One of my customer is using MK60FX5125VLQ12, Please suggest me on the below
1. They want to use ISP (UART/USB) for field programming, please suggest how to implement this. Please also suggest which UART port is suitable to implement this, please also share if any source code available for the implementation.
2. They want to use 4 timers for Capturing falling edge, which timers can be used for this also let us know will these timers work concurrently.
3. They need one counter for counting the events, which timer is preferred for event counting.
Regards
Mithun
Solved! Go to Solution.
Hi Mithun,
1. Do you mean the bootloader via UART/USB port? if yes, please kindly refer to an2295(serial boot) http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf and the demo code from http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW_Rev1.zip?fsrch=1
Or you may refer to an4370(USB DFU bootloader) from http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4370.pdf and the demo code from http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN4370SW&location=null&fsrch=1&Pare...
2. You may use FTM module to capture the falling edge. There are multiple channels in one FTM module, so you need't use 4 FTM modules to do that.
3. do you mean the falling edge event? if so , I think also the FTM timer can be used for that purpose, but the counter clock source should use EXTCLK — FTM External Clock which connected with the IO that falling edge happens on it. alternatively, I think you may also use a GPIO interrupt which is falling edge sensitive , a variable used to store the counter which increased in the interrupt service.
Hope that helps,
B.R
Kan
Hi Mithun,
1. Do you mean the bootloader via UART/USB port? if yes, please kindly refer to an2295(serial boot) http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf and the demo code from http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW_Rev1.zip?fsrch=1
Or you may refer to an4370(USB DFU bootloader) from http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4370.pdf and the demo code from http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN4370SW&location=null&fsrch=1&Pare...
2. You may use FTM module to capture the falling edge. There are multiple channels in one FTM module, so you need't use 4 FTM modules to do that.
3. do you mean the falling edge event? if so , I think also the FTM timer can be used for that purpose, but the counter clock source should use EXTCLK — FTM External Clock which connected with the IO that falling edge happens on it. alternatively, I think you may also use a GPIO interrupt which is falling edge sensitive , a variable used to store the counter which increased in the interrupt service.
Hope that helps,
B.R
Kan
Hi Kan,
Thanks for the details, this information is very useful.
Regards
Mithun