infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: C167CR-LM GPT1 Core Timer T3 How does it work?

  1. #1
    New Member New Member Hannes.Lüke is on a distinguished road
    Join Date
    Mar 2017
    Posts
    2
    Points
    37.5

    C167CR-LM GPT1 Core Timer T3 How does it work?

    Hello Everyone,
    Apologies upfront, I'm quite new to µcontrollor programming and just started to learn, so i probably got few thinks not right yet.


    I've got questions about the T3 Timer. Today at my School I've encountered this timer for the first time but I'm not sure what this
    does(we just scratched the Topic). I'm aware that the T3CON register controlles the timer and that this timer can run as simpler counter OR as a Clock.

    My confusion starts when i use the Clock with an prescaler. According to the Manual If i have the CPU running at 20 Mhz
    and I choose as prescaler a factor of lets say 256 my period will be 840ms with an resolution of 12.8µs. The Input frequency
    would be then 78.125kHz.
    • What Number would then stand in the Register T3 every tick?
    • How is the period or where is the period applied to?
    • Where goes the Input frequency into?
    • What does the gated Mode or how does it work?




    I hope some of you can enlighten me

  2. #2
    Intermediate Intermediate cwunder is on a distinguished road
    Join Date
    Feb 2015
    Location
    USA
    Posts
    44
    Points
    672.5
    I don't understand all of your questions, so I will give you my feedback based on my understanding.

    What Number would then stand in the Register T3 every tick?
    It is the resolution at that in your case it is at 12.8us

    How is the period or where is the period applied to?
    In what purpose?

    The period is the full 16-bits of the register so
    w
    here goes the Input frequency into?
    This is the clock frequency that T3 changes (increment or decrement)

    What does the gated Mode or how does it work?
    There is a section in the manual that describes this. In T3 Gated Timer Mode, the input clock of T3 is gated by the external input pin T3IN. You can control the level at which it gates the clock (think of it as run enable controlled by a port pin)

    Last edited by cwunder; Mar 31st, 2017 at 05:56 PM.

  3. #3
    New Member New Member Hannes.Lüke is on a distinguished road
    Join Date
    Mar 2017
    Posts
    2
    Points
    37.5
    Thanks alot for your answer!

    What Number would then stand in the Register T3 every tick?
    It is the resolution at that in your case it is at 12.8us


    Are these then accumulated? Otherwise It would not make any sense. If i just have the 12.8µs standing there. Shouldn't it be the Sum of all 12.8µs till the timer reachs 840ms?
    If this is true my second question would be obsolete.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.