{"id":19657027,"url":"https://github.com/samankhalife/avr-microcontroller","last_synced_at":"2025-10-28T14:40:48.293Z","repository":{"id":246405824,"uuid":"821019804","full_name":"SamanKhalife/AVR-Microcontroller","owner":"SamanKhalife","description":"Sample C program's base on ATmega32 and  8MHz crystal (University practice's)","archived":false,"fork":false,"pushed_at":"2024-07-14T22:47:30.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T00:46:56.613Z","etag":null,"topics":["atmega32","avr","c","socket-programming"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamanKhalife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-27T16:38:13.000Z","updated_at":"2024-07-14T22:47:33.000Z","dependencies_parsed_at":"2024-07-06T14:48:50.553Z","dependency_job_id":"1a7477f3-3db3-402d-9809-cc73a0e1a179","html_url":"https://github.com/SamanKhalife/AVR-Microcontroller","commit_stats":null,"previous_names":["samankhalife/avr-microcontroller"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamanKhalife%2FAVR-Microcontroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamanKhalife%2FAVR-Microcontroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamanKhalife%2FAVR-Microcontroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamanKhalife%2FAVR-Microcontroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamanKhalife","download_url":"https://codeload.github.com/SamanKhalife/AVR-Microcontroller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964940,"owners_count":19885834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atmega32","avr","c","socket-programming"],"created_at":"2024-11-11T15:29:43.651Z","updated_at":"2025-10-28T14:40:47.911Z","avatar_url":"https://github.com/SamanKhalife.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVR-Microcontroller\n- Projects:\n   - [Basics things](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/1-Basics)\n   - [Automatic Light Switch](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/2-Automatic-Light-Switch)\n   - [Redlight](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/3-Redlight)\n   - [Simple Auto redlightt](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/4-Simple-Auto-redlightt)\n   - [Seven Segment Counter](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/5-Seven-Segment-Counter)\n   - [Smart Digital Door Lock](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/6-Smart-Digital%20Door-Lock)\n   - [Redlight With Counter](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/7-Redlight-With-Counter)\n   - [Two Digits Seven Segment Counter](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/8-Two-Digits-Seven-Segment-Counter)\n   - [Three Digits Seven Segment Counter](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/9-Three-Digits-Seven-Segment-Counter)\n   - [Lcd Prints](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/10-Lcd-Prints)\n   - [Lcd Advertizments](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/11-Lcd-Advertizments)\n   - [Highway Status](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/12-Highway-Status)\n   - [Robot Navigation](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/13-Robot-Navigation)\n   - [ATM(Automated Teller Machine)](https://github.com/SamanKhalife/AVR-Microcontroller/tree/main/14-ATM)\n\n# ATmega32 \nhere we have 4 ports (A,B,C,D) and each port has 8 pins\n![img](https://github.com/SamanKhalife/AVR-Microcontroller/blob/main/images/ATmega32.png)\n\n\n# Some Basics\nDDRx = setting port type\n\ninput = 0\n\noutput= 1\n\n### Assume the port A is an input port\n```\nDDRA = 0x00                 AAAA,AAAA\n       __                   0000,0000\n       |                     0  ,  0 \nthis tow digit shows Hexadecimal initialization\n```\n### Assume the port B is an input port\n```\nDDRA = 0x00                 BBBB,BBBB\n                            1111,1111\n                             1  ,  1 \n```\n\n### If pins 2, 4, and 7 are input pins and pins 1, 5, and 6 are output pins\n\n```\nAAAA,AAAA\n0110,x01x\n```\ntoggle ----\u003e Pins that are not connected to anything (we can set 0 or 1)\n\n### Port initialization\n\n`PORTx`   like  `portA=0x54` \n\n\n### Pin initialization\n\n`Pinx.n = y`  like   `pinA.2 = 1`\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamankhalife%2Favr-microcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamankhalife%2Favr-microcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamankhalife%2Favr-microcontroller/lists"}