⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 The purpose of this example is to demonstrate that the functioning of External interrupts (INT0, IN
💻 TXT
字号:
FX2LP/FX1 External Interrupts
------------------------------


The purpose of this example is to demonstrate that the
functioning of External interrupts  (INT0, INT1, INT4, INT5 and INT6) and
how toset them up.


This directory contains the frameworks fw.c,  the test program extr_intr.c
and the external interrupt service routines isr.c.  This was compiled 
using micro vision2.  

NOTE:  The  USBJmpTb.a51  is  added to  the project  directory.  Note  that this
is the  not the default   USBJmpTb.obj  file.  This  file  is a modified  version
of the default  one.  Please refer to the comments included in the  USBJmpTb.a51
file.



To run the test
(1) Download extr_intr.hex using the control panel 
(2) Use a function generator to trigger the interrupts.  
    Set the FG to generate a square wave of frequency of 1 KHZ
    NOTE:  Make sure that the square wave is of 1 KHz on the scope
(3) Connect the probes to the corresponding external interrupt pin 
(4) The corresponding pins  on PORTC will toggle on the appropriate edge of 
    the signal connected to the external interrupt pin

External Interrupt            External                 PORTA pin toggled
     pin                      Interrupt                  in the ISR

      PA0            ---->      INT0          ---->           PC0
      PA1            ---->      INT1          ---->           PC1
      INT4           ---->      INT4          ---->           PC4
      INT5           ---->      INT5          ---->           PC5
      PE5            ---->      INT6          ---->           PC6





⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -