AVR_M8單片機(jī)串口控制應(yīng)用程序
#include
#include "Io_define.h"
unsigned char RX_data[4]={0};
unsigned char keyb_state=0;
unsigned char keyc_state=0;
unsigned char RX_counter=0;
void UART_init
void putchar
void puts
void UART_rx
void delay_nms
void Key_control
void Read_Pin
void putchar(unsigned char c)
#pragma interrupt_handler UART_rx: iv_USART_RX
void UART_rx(void)
void puts(unsigned char *s)
void UART_init(void)
void main(void)
void Key_control(unsigned char comm)
void Read_Pin(void)
評論