[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720205-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-720205-en":130,"doc-similar-720205":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","microcontrollers-3a-arduino-uno-and-atmega328-programming-peripherals","Microcontrollers 3A - Arduino UNO and ATmega328 Programming & Peripherals","","Microcontrollers course notes for the Arduino UNO platform built around the ATmega328 AVR 8-bit microcontroller, emphasizing low-level C/C++ programming and direct register/bit management rather than only turnkey Arduino functions. The material explains the UNO ecosystem, IDE workflow, and how peripheral operation maps to microcontroller pins and connectors. It further covers the ATmega328 internal structure excerpts, including the SREG and digital I/O, plus interrupts and detailed timer/counter sections with examples and PWM-relevant output pins.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/microcontrollers-3a-arduino-uno-and-atmega328-programming-peripherals/720205/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/microcontrollers-3a-arduino-uno-and-atmega328-programming-peripherals/720205.png","ImageObject",300,407,{"name":42,"@type":43},"Oliver","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What makes Arduino UNO suitable for low-level microcontroller programming?","Question",{"text":62,"@type":63},"It uses an ATmega328 AVR 8-bit microcontroller that can be programmed in C/C++ and offers an IDE plus a simple USB loading process. The course also focuses on understanding binary-level variables and managing registers at bit level when needed.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How do Arduino connector numbering and microcontroller pin names relate?",{"text":67,"@type":63},"With Arduino functions like pinMode, digitalRead, and digitalWrite, signals follow connector numbering. When programming at low level, the course uses microcontroller register/pin names instead.",{"name":69,"@type":60,"acceptedAnswer":70},"Which ATmega328 components are covered for internal structure, interrupts, and timing?",{"text":71,"@type":63},"The notes include internal excerpts such as the Status Register (SREG) and digital I/O, interrupt sources like external interrupts, pin change interrupts, and timer interrupts, and detailed timer/counter sections including Timer0, Timer1, and Timer2 with examples.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},720205,1795035419,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},8796095461610,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Microcontrollers 3A SAGI  \n2019-2020 Polytech Angers  \nARDUINO UNO Microcontroller ATMega328  \nB. Cottenceau B311 Polytech Angers Belle-Beille [bertrand.cottenceau@univ-angers.fr](bertrand.cottenceau@univ-angers.fr)  \nTable des matières  \n1 Introduction ......................................................................................................................................3  \n2 Arduino UNO schematic...................................................................................................................3  \n3 Microcontroller ATMEL ATMega328...............................................................................................4  \n4 Programming in the Arduino's IDE..................................................................................................6  \n4.1 Introduction................................................................................................................................6  \n4.2 Langage C pour ARDUINO UNO............................................................................................7  \n5 Internal structure of ATMega328 (excerpts from ATMEL documentations)................................... 10  \n5.1 Status Register (SREG)........................................................................................................... 10  \n5.2 Digital I/O ............................................................................................................................... 10  \n6 Interrupts for ATMega328 (Arduino UNO).................................................................................... 13  \n6.1 External Interrupts (pins PD2 and PD3).................................................................................. 14  \n6.2 \"Pin Change\" interrupts (possible for all logical pins)........................................................... 16  \n6.3 Timers interrupts..................................................................................................................... 19  \n7. Timers/Counters on ATMega328 ................................................................................................... 19  \n7.1 Timer/Counter 0 (8 bits).......................................................................................................... 19  \n7.2 Timer/Counter 2 (comptage 8 bits).......................................................................................... 19  \n7.3 Example Timer 2 with Interrupt...............................................................................................23  \n7.4 Timer/Counter 1 (16 bits)........................................................................................................28  \nMicrocontrôleurs 2/29  \n1 Introduction  \nThe UNO model from ARDUINO is an electronic card whose heart is an ATMEL microcontroller of reference ATMega328 . The ATMega328 is an 8-bit microcontroller of the AVR family which can be programmed in C/C++ language.  \nThe main interest ofthe ARDUINO cards (other models exist : Mega, Nano...) is their ease of implementation. A development environment (IDE), based on open-source tools, is provided. In addition, loading the compiled program into the memory of the microcontroller is very simple (via USB port). Finally, a lot of function libraries are also provided for the use of common I/Os: logical I/O, ADC converters, generation of PWM signals, operation ofTWI/I2C busses, LCD displays ...  \nThe objective of the Microcontrollers course is not only to know how to use the Arduino UNO board. It is above all an opportunity to tackle low-level programming problems (the binary value of the manipulated variables is very important) and to learn how to use the C language for this low-level programming, in particular by knowing how to manage registers/variables \"at bit level\" . So, when you're complicating the task, when an Arduino function exists, tell yourself that it's intentional.  \nThe purpose of this document is to highlight some technical information concerni","cbCaimmg8geFUuRu","https://ap.wps.com/l/cbCaimmg8geFUuRu","pdf",1076132,29,"English","# Table of contents\n## Introduction\n## Arduino UNO schematic\n## Microcontroller ATMEGA328\n## Programming in the Arduino's IDE\n## Internal structure of ATMEGA328 (excerpts)\n## Interrupts for ATMEGA328 (Arduino UNO)\n## Timers/Counters on ATMEGA328","[{\"question\":\"What makes Arduino UNO suitable for low-level microcontroller programming?\",\"answer\":\"It uses an ATmega328 AVR 8-bit microcontroller that can be programmed in C/C++ and offers an IDE plus a simple USB loading process. The course also focuses on understanding binary-level variables and managing registers at bit level when needed.\"},{\"question\":\"How do Arduino connector numbering and microcontroller pin names relate?\",\"answer\":\"With Arduino functions like pinMode, digitalRead, and digitalWrite, signals follow connector numbering. When programming at low level, the course uses microcontroller register/pin names instead.\"},{\"question\":\"Which ATmega328 components are covered for internal structure, interrupts, and timing?\",\"answer\":\"The notes include internal excerpts such as the Status Register (SREG) and digital I/O, interrupt sources like external interrupts, pin change interrupts, and timer interrupts, and detailed timer/counter sections including Timer0, Timer1, and Timer2 with examples.\"}]","Microcontrollers 3A - Arduino UNO and ATmega328 Programming & Peripherals | PDF",73,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/21f9f6af195745c3a217ace984f1e424.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1163dbad202c1c093d9a0335ad40d18e.webp",982,1389,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/03be86cba91a75e1c832dd1397b20571.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4ad0336cc4c76730fe198c13b1fe05a2.webp",980,1386,{"list":163,"token":11},[164,170,177,183,189,195,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":33,"category_name":29,"create_tm":169},720342,"Arduino Uno","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024393312/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=83HCFXQKosdXQoeMIz5Iel8vxoY%3D","arduino-uno",1795036735,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},670889,"Arduino Uno - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=YJE%2B9D49VXnEB6KqwltnHpYHerE%3D","arduino-uno-datasheet",17,1793572479,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":105,"category_name":29,"create_tm":182},720244,"Arduino Nano SKU A000005 - Hardware Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024389986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=6MQ5bt1jniKBDMxz9cgtmwUKkTw%3D","arduino-nano-sku-a000005-hardware-datasheet",1795035951,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":105,"category_name":29,"create_tm":188},720248,"Arduino Nano Product Reference Manual - SKU A000005","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024390015/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=95Y1vlj1JdwSBvI2J7VtB35QJi0%3D","arduino-nano-product-reference-manual-sku-a000005",1795035958,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":101,"category_name":29,"create_tm":194},720309,"Arduino Mega 2560 - Board Specifications - Pinout, Power, Memory, Communication","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024391457/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=02n4LA6bxcRvSoCVyvUTu1zCsQM%3D","arduino-mega-2560-board-specifications-pinout-power-memory-communication",1795036357,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":115,"category_name":29,"create_tm":200},670890,"Arduino Uno Rev3 - Electronics and Coding Starter Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352403/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=OggVgffPFX3kmx1ZaYFefPaIAig%3D","arduino-uno-rev3-electronics-and-coding-starter-guide",1793572517,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":29,"create_tm":200},670891,"Arduino UNO Board Description - IV. Arduino UNO-Board Description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988703412/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=MDtoAhOkaDoXN7i83ZrdqHIq9%2Fw%3D","arduino-uno-board-description-iv-arduino-uno-board-description",12,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":110,"category_name":29,"create_tm":212},670888,"Arduino Uno - Overview - Hardware Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=1q%2FbWyyEhWBe27h1MKRRYthl8AM%3D","arduino-uno-overview-hardware-specifications",1793572477,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":101,"category_name":29,"create_tm":218},720202,"ATmega328/P - Datasheet Summary - Overview - Atmel-42735A","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024387904/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=s5mVyYsgODq1k5aCqKC5SJqSYqE%3D","atmega328p-datasheet-summary-overview-atmel-42735a",1795035377,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":96,"category_name":29,"create_tm":224},720211,"ATmega48A/48PA/88A/88PA/168A/168PA/328P - 8-bit Microcontroller Features and Pin Configurations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024388182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=XZKDQcr0Tvw4Xgxyw2EN2CLjVik%3D","atmega48a48pa88a88pa168a168pa328p-8-bit-microcontroller-features-and-pin-configurations",1795035433]