
单片机相关
文章平均质量分 54
jldream110
这个作者很懒,什么都没留下…
展开
-
关于 avr单片机 熔丝位的设置
关于熔丝位的 设置 在datesheet 中 System Clock and clock option 中有详细的说明 我这里贴出两个简单常用的 例子 。 atmega16 内部时钟1M :0001 (CKSEL3-CKSEL1) 8M 0100 (CKSEL3-CKSEL1) 外部 8M 1111 (CKSEL3-CKSEL1) 这个截图 是AVR_fighter 小软件设置熔丝位的截图如果是在 avr studio中 就不用 自己去设置了 可以直接选择 内部晶振 外部晶振原创 2010-07-09 21:16:00 · 1220 阅读 · 2 评论 -
关于 avr studio 调试中 利用结构体,const的问题
这是avr studio的软件调试的这个问题 让我昨天弄到两点多 所以把它记录下来。 #include #include #include typedef unsigned char uint8_t;typedef struct{ char chip; unsigned int addr; int addr_length; void *buffer; unsigned int原创 2010-05-23 13:56:00 · 1868 阅读 · 2 评论 -
avr单片机 串口实现printf(使用变参函数)
<br /> /** AVR串口实现printf函数 编译器 avrstudio,avr-gcc 使用硬件:avrmega16单片机*/#include <stdarg.h>#include <stdlib.h> #include <avr/io.h>typedef unsigned char uint8;static void usart_init(void){UCSRA = 0x02; /*倍速*/ UCSRB = 0x18; /*允许接收和发原创 2010-08-10 14:19:00 · 3596 阅读 · 0 评论