×

Using the Timer Interrupt Syst

消耗积分:2 | 格式:rar | 大小:333 | 2009-04-01

fansz

分享资料个

Interrupts are used to respond to asynchronous requests from a certain part of the
microcontroller that needs to be serviced. Each peripheral in the TriCore as well as the
Bus Control Unit, the Debug Unit, the Peripheral Control Processor (PCP) and the CPU
itself can generate an interrupt request.
This document will show how to set up the TriCore registers to perform an interrupt service
request triggered by a 32-bit timer overflow.
The general-purpose timer unit, GPTUx, consists of three basic 32-bit timers, (T0, T1, and
T2). The three timers can solve many application tasks, such as timing events and
recording events. T0 and T1 are identical, while T2 offers a different functionality. The
three timers are able to operate independently from each other. The GPTUx can generate
eight different service requests. This document will focus on T0 as the timer in the
example, and it will utilize GTSRC0 as the selected service request node with SR00 as the
selected service request source.
Timer T0 consists of four eight-bit blocks (indexed from ‘A‘ to ‘D‘), including the actual
timer count register and the associated reload register. These blocks can either run
independently as eight-bit timers or can be concatenated to form wider timers (16, 24 , or
32 bits).
Note: Please refer to the User’s Manual for additional information on the GPTUx and the
Interrupt System of the TriCore.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !