Skip to content

Based on this controller I have written a basic UART driver code. I will be updated by me gradually.

Notifications You must be signed in to change notification settings

ritesh006/Atmega328_UART

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UART Communication with AVR Microcontroller

This repository contains code for implementing UART (Universal Asynchronous Receiver-Transmitter) communication using an AVR microcontroller. UART is a popular communication protocol for serial communication between devices.

Code Overview

  • main.c: This file contains the main program implementing UART communication. It initializes UART, transmits the character 'A' repeatedly with a delay, and echoes back any received characters.
  • uart.h: Header file containing function prototypes for UART initialization, transmission, and reception.
  • util/delay.h: Library for adding delays.

How to Use

To use this code:

  1. Connect your AVR microcontroller to a computer using a USB-to-serial adapter or any other UART interface.
  2. Compile the code using an AVR toolchain (e.g., AVR-GCC).
  3. Upload the compiled binary to your AVR microcontroller.
  4. Open a serial terminal (e.g., PuTTY, Minicom) on your computer and configure it to match the baud rate and other settings used in the code.
  5. You should see the character 'A' being transmitted repeatedly, and any characters you type in the terminal should be echoed back.

Pin Configuration

Make sure to configure the RX and TX pins of your AVR microcontroller appropriately to connect to the corresponding RX and TX pins of your UART interface.

Dependencies

This code depends on the AVR Libc library for AVR-specific functions and definitions. Make sure to have AVR Libc installed and properly configured in your development environment.

License

This code is provided under the MIT License. Feel free to modify and distribute it according to your needs.

Author

This code was written by [Your Name]. You can contact me at [Your Email Address] for any questions or suggestions.

Acknowledgments

Special thanks to [Any contributors or resources you used] for their contributions and inspiration.

Disclaimer

This code is provided as-is without any warranty. Use it at your own risk.

For more information and detailed documentation, please refer to the source code and comments within main.c and uart.h.

Enjoy experimenting with UART communication on your AVR microcontroller!

About

Based on this controller I have written a basic UART driver code. I will be updated by me gradually.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published