Hardware
Servo Motor
#include #include #define F_CPU 16000000UL // 16 MHz #include void Init_USART1(void) { UBRR1H = 0; // set baud rate UBRR1L = 103; UCSR1A = 0x00; UCSR1B = 0x18; // Enable RX,TX UCSR1C = 0x06; // Asynchronous,No parity, 1 stop, 8bit data, Rising Xck Edge DDRB = 0xFF; } void TX(unsigned char data) { while(!(UCSR1A & (1
2013. 12. 21. 07:36
최근댓글