{"id":3034,"date":"2023-09-05T05:26:18","date_gmt":"2023-09-05T05:26:18","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3034"},"modified":"2023-09-05T05:26:18","modified_gmt":"2023-09-05T05:26:18","slug":"how-to-test-interrupt-with-aries-v2","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/how-to-test-interrupt-with-aries-v2\/","title":{"rendered":"How to test interrupt with ARIES v2?"},"content":{"rendered":"\n<p>In this tutorial we will see how we can use the GPIO interrupt pins on the ARIES v2.0 board. The ARIES v3 and IoT board also has these same interrupt pins which can be use in same way. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ARIES v2.0<\/h2>\n\n\n\n<p>The ARIES v2.0 is a fully indigenous and a \u201cMade in India\u201d product to get started with basic microprocessor programming and embedded systems. This board is built upon a RISC-V ISA compliant VEGA Processor with easy-to-use hardware and software.  For more details about ARIES v2.0 boards please refer to the <a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.html\">ARIES development boards and Ecosystem<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/08\/aries-v2-1-1-1024x832.png\" alt=\"\" class=\"wp-image-2607\" style=\"width:310px;height:257px\" width=\"310\" height=\"257\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">GPIO Interrupts in ARIES v2<\/h2>\n\n\n\n<p>Interrupts stop the current job of ARIES such that some other job can be done. The ARIES (THEJAS 32) has interrupts in GPIO pins which are active HIGH interrupts. The interrupt pins are available in GPIO-0 to GPIO-11. The below table shows the GPIO pins and corresponding interrupt numbers respectively.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Peripheral <\/strong><\/td><td><strong>Interrupt Number<\/strong><\/td><\/tr><tr><td>GPIO-0<\/td><td>10<\/td><\/tr><tr><td>GPIO-1<\/td><td>11<\/td><\/tr><tr><td>GPIO-2<\/td><td>12<\/td><\/tr><tr><td>GPIO-3<\/td><td>13<\/td><\/tr><tr><td>GPIO-4<\/td><td>14<\/td><\/tr><tr><td>GPIO-5<\/td><td>15<\/td><\/tr><tr><td>GPIO-6<\/td><td>16<\/td><\/tr><tr><td>GPIO-7<\/td><td>17<\/td><\/tr><tr><td>GPIO-8<\/td><td>18<\/td><\/tr><tr><td>GPIO-9<\/td><td>19<\/td><\/tr><tr><td>GPIO-10<\/td><td>20<\/td><\/tr><tr><td>GPIO-11<\/td><td>21<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Push Button<\/h2>\n\n\n\n<p><strong>Push Buttons<\/strong>&nbsp;are normally-open&nbsp;<strong>tactile switches<\/strong>. Push buttons allow us to power the circuit or make any particular connection only when we press the button. Simply, it makes the circuit connected when pressed and breaks when released.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"129\" height=\"152\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/a32.png\" alt=\"\" class=\"wp-image-3036\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.html\" target=\"_blank\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v2.0 Board<\/li>\n\n\n\n<li>Micro USB type B to USB type A cable<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Let\u2019s power up the ARIES v2 board via the USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro-USB type B to USB type A cable. The cable should be connected to UART-0 port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, <strong>open <\/strong>the Arduino IDE<\/li>\n\n\n\n<li>Make sure you have selected&nbsp;<strong>ARIES v2<\/strong>&nbsp;Board from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Board<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA Processor: ARIES Boards<\/strong>&nbsp;-&gt;&nbsp;<strong>ARIES v2<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA XMODEM from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA XMODEM<\/strong><\/li>\n\n\n\n<li>Also select appropriate port,&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port<\/strong>&nbsp;-&gt;&nbsp;<strong>COM* (ARIES v2)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"426\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send4-1.png\" alt=\"\" class=\"wp-image-3078\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send4-1.png 927w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send4-1-300x138.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send4-1-768x353.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/figure>\n\n\n\n<p>Now, Open&nbsp;<strong>Files<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v2<\/strong>&nbsp;-&gt;&nbsp;<strong>GPIO<\/strong>&nbsp;-&gt;<strong>&nbsp;GPIO_Interrupt<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send5-1.png\" alt=\"\" class=\"wp-image-3081\" style=\"width:479px;height:569px\" width=\"479\" height=\"569\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send5-1.png 787w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send5-1-253x300.png 253w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send5-1-768x911.png 768w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/figure>\n\n\n\n<p>Finally <strong>Upload <\/strong>the code in ARIES v2 board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once the code is uploaded, Press button-0 (BTN-0) and we&#8217;ll see in-built Green LED turn on. When you release the button-0 Green LED will turn off. In serial monitor by default it will show &#8220;Waiting for Interrupt\u2026..&#8221; and if you press the push button 1(BTN-1)  you can see it changes to  &#8220;Interrupt occur at GPIO-0&#8221;.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"478\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g3.png\" alt=\"\" class=\"wp-image-3084\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g3.png 966w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g3-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g3-768x380.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/figure>\n\n\n\n<p><em>Serial Monitor when BTN-0 is not pressed<\/em><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"471\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g1-1.png\" alt=\"\" class=\"wp-image-3083\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g1-1.png 971w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g1-1-300x146.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/g1-1-768x373.png 768w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/figure>\n\n\n\n<p><em>Serial Monitor when BTN-0 is pressed<\/em><\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/gpioint.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see how we can use the GPIO interrupt pins on the ARIES v2.0 board. The ARIES v3 and IoT board also has these same interrupt pins which can be use in same way. ARIES v2.0 The ARIES v2.0 is a fully indigenous and a \u201cMade in India\u201d product to get [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[75,76,7,68,77,31,24],"class_list":["post-3034","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-aries-v2-board","tag-c-dac","tag-cdac","tag-gpio","tag-thejas-32","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=3034"}],"version-history":[{"count":16,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3034\/revisions"}],"predecessor-version":[{"id":3101,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3034\/revisions\/3101"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}