isp-fuse-644p:
#avrdude -c usbasp -p m644p -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFF:m -U lock:w:0xFF:m
- avrdude -c usbasp -p m644p -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFE:m -U lock:w:0xEF:m
+ #avrdude -c usbasp -p m644p -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFE:m -U lock:w:0xEF:m
+ # LFUSE=0xEE -> startuptime 1K CLOCKS + 0ms -> 83us
+ #avrdude -c usbasp -p m644p -U lfuse:w:0xEE:m -U hfuse:w:0xD8:m -U efuse:w:0xFE:m -U lock:w:0xEF:m
+ # LFUSE=0xE7 -> startuptime 16K CLOCKS + 4.1ms -> 5.4ms
+ avrdude -c usbasp -p m644p -U lfuse:w:0xE7:m -U hfuse:w:0xD8:m -U efuse:w:0xFE:m -U lock:w:0xEF:m
clean:
@rm -r dist
asm volatile("nop\n\t");
#endif
- // LED ports output and off
- DDRC = (1 << PC4) | (1 << PC3) |(1 << PC2);
+ // LED ports output and off, ensure that Q1 (battery power) on (PC7)
PORTC = 0;
+ DDRC = (1 << PC7) | (1 << PC4) | (1 << PC3) |(1 << PC2);
+
#ifdef DOUBLE_SPEED
UCSR0A = (1 << U2X0); // Double speed mode USART0