{"id":3050,"date":"2023-09-05T05:27:18","date_gmt":"2023-09-05T05:27:18","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3050"},"modified":"2023-09-05T06:03:27","modified_gmt":"2023-09-05T06:03:27","slug":"timer-example-using-aries-v3-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/timer-example-using-aries-v3-0-board\/","title":{"rendered":"Timer example using ARIES v3.0 board"},"content":{"rendered":"\n<p>In this tutorial we will see how we can use the Timers on the ARIES v3.0 board. A timer is&nbsp;an electronic counter capable of counting time very accurately.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ARIES v3.0<\/h2>\n\n\n\n<p>The ARIES v3.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 v3.0 boards please refer to the <a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES development boards and Ecosystem<\/a>.<\/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\/ariesv3.png\" alt=\"\" class=\"wp-image-3051\" style=\"width:285px;height:194px\" width=\"285\" height=\"194\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/ariesv3.png 651w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/ariesv3-300x204.png 300w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Timer Interrupts in ARIES v3<\/h2>\n\n\n\n<p>ARIES micro-controllers have three 32 bit timers called Timer0, Timer1, and Timer2. Each of the timers has a counter that is decremented on each tick of the timer&#8217;s clock.&nbsp;The timer and it&#8217;s corresponding interrupt number is given in the below table.<\/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>Timer-0<\/td><td>7<\/td><\/tr><tr><td>Timer-1<\/td><td>8<\/td><\/tr><tr><td>Timer-2<\/td><td>9<\/td><\/tr><\/tbody><\/table><\/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 v3.0 Board<\/li>\n\n\n\n<li>USB type C 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 v3 board via the USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v3 board, we have to use a USB type C to USB type A cable. The cable should be connected to UART-0 port of the ARIES v3 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 v3<\/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 v3<\/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 v3)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"460\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send3-1.png\" alt=\"\" class=\"wp-image-3090\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send3-1.png 917w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send3-1-300x150.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send3-1-768x385.png 768w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/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 v3<\/strong>&nbsp;-&gt;&nbsp;<strong>Timer<\/strong>&nbsp;-&gt;<strong>&nbsp;timerInterrupt<\/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\/send2-1.png\" alt=\"\" class=\"wp-image-3091\" style=\"width:439px;height:541px\" width=\"439\" height=\"541\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send2-1.png 760w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/send2-1-244x300.png 244w\" sizes=\"auto, (max-width: 439px) 100vw, 439px\" \/><\/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, timer interrupt will generate interrupt after every 1 second which change the state of led. You can see the Green LED changing state every 1 second<\/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\/09\/tintr-1024x768.jpeg\" alt=\"\" class=\"wp-image-3056\" style=\"width:485px;height:364px\" width=\"485\" height=\"364\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/tintr-1024x768.jpeg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/tintr-300x225.jpeg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/tintr-768x576.jpeg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/tintr-1536x1152.jpeg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/tintr-2048x1536.jpeg 2048w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/figure>\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\/tintr.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see how we can use the Timers on the ARIES v3.0 board. A timer is&nbsp;an electronic counter capable of counting time very accurately.&nbsp; ARIES v3.0 The ARIES v3.0 is a fully indigenous and a \u201cMade in India\u201d product to get started with basic microprocessor programming and embedded systems. This board [&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":[95,76,7,77,96,24],"class_list":["post-3050","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-thejas-32","tag-timer","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3050","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=3050"}],"version-history":[{"count":11,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3050\/revisions"}],"predecessor-version":[{"id":3103,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3050\/revisions\/3103"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}