{"id":1494,"date":"2022-06-14T05:55:22","date_gmt":"2022-06-14T05:55:22","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=1494"},"modified":"2022-07-27T06:39:52","modified_gmt":"2022-07-27T06:39:52","slug":"eeprom-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/eeprom-with-aries-v2-0-board\/","title":{"rendered":"AT24C256 EEPROM with ARIES v2 Board"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface AT24C256 EEPROM module to Aries v2.0 Board. EEPROM stands for Electrically Erasable Programmable Read-only Memory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">EEPROM<\/h2>\n\n\n\n<p>It is a type of non-voltaile memory used in computers, integrated in microcontrollers for Smart cards and remote keyless systems, and other electronic devices to store relatively small amounts of data by allowing individual bytes to be erased and reprogrammed. EEPROMs can be programmed and erased in-circuit, by applying special programming signals. The AT24C256 EEPROM is organized as 32,768 words of 8 bits each. The device is optimized for use in many industrial and commercial applications where low power and low voltage operation are essential.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-19.png\" alt=\"\" class=\"wp-image-1495\" width=\"294\" height=\"294\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-19.png 600w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-19-300x300.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-19-150x150.png 150w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><figcaption>EEPROM AT24C256<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-1024x576.webp\" alt=\"\" class=\"wp-image-1599\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-1024x576.webp 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-300x169.webp 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-768x432.webp 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-1536x864.webp 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/eeprom-final-2048x1152.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-white-background-color has-background\"><tbody><tr><td><strong>EEPROM Module<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>+3.3V<\/td><\/tr><tr><td>SCL<\/td><td>SCL1<\/td><\/tr><tr><td>SDA<\/td><td>SDA1<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><\/tbody><\/table><figcaption><em><strong>Connection pins of EEPROM Module &amp; ARIES  v2.0 Board<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v2 board via 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 <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, clean the executable using <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd examples\/i2c\/at24c256_i2c_eeprom\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>Build the example program for <strong>at24c256 eeprom <\/strong> sensor by using <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make <\/code><\/pre>\n\n\n\n<p>Before transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, execute the following command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20.png\" alt=\"\" class=\"wp-image-1496\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Press <strong>CTRL+A and then press  S<\/strong> to enter file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, with <strong>Space bar<\/strong> select the  <strong><em>at24c256_i2c_eeprom.bin <\/em><\/strong>file to be transferred. By pressing <strong>Enter<\/strong>, transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the program will start to execute. The example program writes 0x0 to 0xFF to the first 256 locations of the EEPROM and reads back the same location. The read data is displayed on minicom.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p> <\/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\/2022\/06\/eeprom-2-1024x507.png\" alt=\"\" class=\"wp-image-1524\" width=\"641\" height=\"583\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface AT24C256 EEPROM module to Aries v2.0 Board. EEPROM stands for Electrically Erasable Programmable Read-only Memory. EEPROM It is a type of non-voltaile memory used in computers, integrated in microcontrollers for Smart cards and remote keyless systems, and other electronic devices to store relatively small amounts [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[],"class_list":["post-1494","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1494","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=1494"}],"version-history":[{"count":19,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1494\/revisions"}],"predecessor-version":[{"id":1890,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1494\/revisions\/1890"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=1494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=1494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=1494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}