i.MX53 GPT(General Purpose Timer) Module. RRS feed

  • Question

  • Hi,

    I am suing i.MX53 Board,OS:WINCE700

    I want to count the pulses/second on GPIO which are given externally,i found the GPT(General Purpose Timer)module is having Capture and Compare feature,if any one have idea how to use this one please guid me it will be very helpfull to me.


    Mujeeb Shaik

    • Edited by Mujeeb_Win Friday, January 3, 2014 10:07 AM
    Friday, January 3, 2014 10:06 AM

All replies

  • I have not worked on iMX53 GPT but with a different processor.

    You have to write your own timer driver.

    Possibly implement ioctl calls to start stop and configure the GPT.

    The read/write call shall be blocked on event triggered by the timer IST based on capture count.

    The application shall configure the timer --> start the timer ---> and block on timer event ---> stop the timer

    Hope this will help !

    --- Misbah

    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India)

    • Edited by Misbah Khan Monday, January 6, 2014 5:35 AM
    Monday, January 6, 2014 5:34 AM
  • If you have the iMX53_SMD or iMX53_ARD installed on your machine then check in the following directory for the stream driver of GPT.You can directly write the application using this driver.


    Please mark it as answer or vote as helpful if my reply helps.



    Monday, January 6, 2014 6:28 AM
  • Hi Prabhu,

    Thanks for your reply,

    Yeah  i am using the same driever,i can able to initialise after intialising how i can get the number of pulses on that perticular pin if u have any sample code please share it will be helpfull to me.

    Thanks & Regads,

    Mujeeb Shaik

    Monday, January 6, 2014 9:18 AM
  • Hi Misbah Khan,

    thnks for your reply,

    If you have any sample code please share with me its very helpful to me.

    Thanks & Regards,

    Mujeeb Shaik

    Monday, January 6, 2014 10:37 AM