Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Programming AVR USART with AVR-GCC. Part 1

AVR USART tutorial is going to be multi-part tutorial as this peripheral is a sophisticated device and needs special attention. USART Overview USART is an acronym of Universal Synchronous and Asynchronous serial Receiver and Transmitter. Instead of using this long expression lets stick to USART. So, at least one USART is found in most of AVR microcontrollers (except few most of Tiny ones). Atmega328 microcontroller has one USART module that is highly configurable and flexible. Datasheet provides a list of supported features including Full Duplex, Asynchronous and Synchronous operation, Master or Slave operation mode, variable frame size, even or odd parity bits, one or two stop bits, several interrupt sources and even more. We won’t be able to cover all of them in tutorial – we will take common cases… Continue reading