Hi,
I have got the twr K40x256 for the freescale cup and I don't find the datasheet of the microcontroller !
I looked on the website but what I only find is something which looks like a little datasheet (only 75 pages) and I can't use it for experiencing the timer, what I am doing for using the servo.
Does anyone have this datasheet ? My MCU is the PK40X256VMD100.
Whithout this I tried the tuto "Turning A Servo". It works but I have a 500kHz PWM, too much for a servomotor and I can't put it at 50Hz.
And I find nothing about the timer on the internet.
Does anyone know how to do it ?
Thank you for your future help.
Regards.
Hi Adrien,
About FTM module, you still can refer to some application notes, eg:
1,Using FlexTimer in ACIM/PMSM Motor Control Applications:
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN3729.pdf?fsrch=1&sr=16
2,PWM Synchronization Using Kinetis Flextimers:
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4560.pdf?fsrch=1&sr=5
I wish it helps you!
Jingjing
Hello Adrien:
What you see is indeed the datasheet. The more detailed document is called Reference Manual and you can find it here:
For your device download the document "K40P144M100SF2RM"
Give a check to chapter 37 about FlexTimer. To change frequency you need to play with the Modulo value/System Frequency/Prescaler.
Hope this helps!
Jorge Gonzalez