Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

sending data to usart using atmel studio avr gcc

$
0
0
Hello..I am trying to send data to usart so that when i type a character 'a' to it it should turn the led on and if anything else is typed it should turn it off..I have written the code but i think i am missing something..kindly help...
My code is:
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include <stdio.h>
// the USART circuitry within the AVR really likes clock frequencies divisible by 1.8432MHz. If your clock source is not divisible by 1.8432 you will have a...

sending data to usart using atmel studio avr gcc

Viewing all articles
Browse latest Browse all 1271

Trending Articles