高级会员
 
主题
帖子
积分3336
阅读权限30
注册时间2012-5-18
最后登录1970-1-1
在线时间 小时
|
本帖最后由 wumaoxu 于 2013-1-22 14:33 编辑
我用的是M8L。
自动关机的熔丝位应该是一样的,就是编译时的选项不一样。
makefile 中关于power_off的说明:
# The POWER_OFF option enables the power off function, otherwise loop measurements infinitely
# until power is disconnected with a ON/OFF switch (CFLAGS += -DPOWER_OFF).
# If you have the tester without the power off transistors, you can deselect POWER_OFF .
# If you have NOT selected the POWER_OFF option with the transistors installed,
# you can stop measuring by holding the key several seconds after a result is
# displayed. After releasing the key, the tester will be shut off by timeout.
# Otherwise you can also specify, after how many measurements without found part
# the tester will shut down (CFLAGS += -DPOWER_OFF=5).
# The tester will also shut down with found part,
# but successfull measurements are allowed double of the specified number.
# You can specify up to 255 empty measurements (CFLAGS += -DPOWER_OFF=255).
#CFLAGS += -DPOWER_OFF=5
CFLAGS += -DPOWER_OFF
M8 8MHz RC
我使用的是8MHz的内部RC.
makefile 中8M RC L:0X24 H:0XD9
8M 晶振L:0X3F H:0XC9
# BODLEV 4V, BODEN enabled, SUT 65ms, CLK 8MHz
FUSES_INT = -U lfuse:w:0x24:m -U hfuse:w:0xd9:m
# Operation with 8MHz crystal
FUSES_CRY = -U lfuse:w:0x3f:m -U hfuse:w:0xc9:m |
|