×

用外部设备设置32位微控制器TriCore的中断的指令及方法

消耗积分:3 | 格式:rar | 大小:129 | 2009-07-01

分享资料个

The Infineon TriCore provides an Interrupt System with a high safety standard. This
document contains some instructions on how to initiate an Interrupt from an external device. First it will show you how to trigger an Interrupt Service Request by an impulse on Port 0 or Port 1. Then in the second part of the document you can find hints how to debounce impulses to enable the use of a simple switch as input device.
1 Overview..3
2 The External Interrupt 4
2.1 The general settings ....5
2.2 Service request specific Individual settings 5
2.3 Enabling the GPTU by setting the Clock Register CLC .......6
2.4 The signal path from Port 0 or Port 1 to GTSRSEL 7
2.5 Example: The External Interrupt ..8
3 How to debounce a signal using the GPT Appendix ..11
3.1 Example: External Interrupt - debounced by using the GPT 12
4 Appendix .13
4.1 xxSRC – Source xx Service Request Control Register ....13
4.2 ICR – Interrupt Control Register .14
4.3 GTSRSEL – GPT Service Request Source Selection Register 15
4.4 GTCLC – GPT Clock Control Register .....16
4.5 T2AIS – Timer T2/T2A External Input Selection Register 17
4.6 T2ES – Timer T2 External Input Edge Selection Register ..18
4.7 T2CON – Timer T2 Mode Control and Status Register ....19
4.8 T2RCCON – Timer T2 Reload/Capture Mode Control Register 20
4.9 T2RC0 – Timer T2 Reload/Capture Register 0 21
4.10 CLC – Clock Control Register 21

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

评论(0)
发评论

下载排行榜

全部0条评论

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