]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
changed pinout/connection of LCD to free OC1A and OC1B pins
authorMichael Wiebusch <m.wiebusch@gsi.de>
Thu, 1 Dec 2016 13:26:09 +0000 (14:26 +0100)
committerMichael Wiebusch <m.wiebusch@gsi.de>
Thu, 1 Dec 2016 13:26:09 +0000 (14:26 +0100)
atmega32u4/Pro_Micro_v13_schematic_AVR_pin_names.pdf [new file with mode: 0644]
atmega32u4/cooler/Makefile
atmega32u4/cooler/fuses.txt [new file with mode: 0644]
atmega32u4/cooler/lcdlib/lcd-color-graphic.h
atmega32u4/cooler/pinout.txt

diff --git a/atmega32u4/Pro_Micro_v13_schematic_AVR_pin_names.pdf b/atmega32u4/Pro_Micro_v13_schematic_AVR_pin_names.pdf
new file mode 100644 (file)
index 0000000..ad43dcd
Binary files /dev/null and b/atmega32u4/Pro_Micro_v13_schematic_AVR_pin_names.pdf differ
index 5a314d932b8c57b94c8c557d3844ea492eb1bae1..4e239fcd25540ba0fed239081569eb0a4c726ce1 100644 (file)
@@ -223,10 +223,13 @@ depend:
                >> $(MAKEFILE); \
        $(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) >> $(MAKEFILE)
 
-.PHONY:        all build elf hex eep lss sym program coff extcoff clean depend program_bootloader program_arduino
+.PHONY:        all build elf hex eep lss sym program coff extcoff clean depend program_bootloader program_arduino program_leo
 
 program_bootloader: all
        dfu-programmer $(MCU) erase && dfu-programmer $(MCU) flash $(TARGET).hex && dfu-programmer $(MCU) start
 
-program_arduino: all
-       avrdude -patmega32u4 -cavr109 -P$(PORT) -b57600 -D -Uflash:w:$(TARGET).hex:i
+# program_arduino: all
+#      avrdude -patmega32u4 -cavr109 -P$(PORT) -b 57600 -D -Uflash:w:$(TARGET).hex:i
+
+program_leo: all
+       avrdude -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:$(TARGET).hex:i
\ No newline at end of file
diff --git a/atmega32u4/cooler/fuses.txt b/atmega32u4/cooler/fuses.txt
new file mode 100644 (file)
index 0000000..505db21
--- /dev/null
@@ -0,0 +1,8 @@
+avrdude -p atmega32u4 -c avrisp2 -P usb -U lfuse:w:0x5e:m -U hfuse:w:0xd9:m -U efuse:w:0xf3:m 
+
+(contains following features)
+  Divide clock by 8 internally; [CKDIV8=0]
+  Serial program downloading (SPI) enabled; [SPIEN=0]
+  Hardware Boot Enable; [HWBE=0]
+  
+  DISABLED JTAG!
\ No newline at end of file
index 4b4000bbef64ebaa480413b2b77a36f6652387e4..5cd135896fb70e11f16f884de2482d0cf9de974f 100644 (file)
 #define LCD_USE_CHIPSELECT  1
 
 //CD Port
-#define PORT_DC  PORTB
-#define DDR_DC   DDRB
-#define PIN_DC   6
+#define PORT_DC  PORTF
+#define DDR_DC   DDRF
+#define PIN_DC   7
 
 //Reset Port
-#define PORT_RST PORTB
-#define DDR_RST  DDRB
-#define PIN_RST  4
+#define PORT_RST PORTF
+#define DDR_RST  DDRF
+#define PIN_RST  5
 
 //Chip select
 #if LCD_USE_CHIPSELECT == 1
-  #define PORT_CS  PORTB
-  #define DDR_CS   DDRB
-  #define PIN_CS   5
+  #define PORT_CS  PORTF
+  #define DDR_CS   DDRF
+  #define PIN_CS   6
 #endif
 
 //SPI routines
index 513258686d009c67712fc58cf8d2458e7b3eef3c..09dcc46b6a43721d76fb51c136d3fc067b7e65e4 100644 (file)
@@ -3,19 +3,23 @@ The board is compatible to the SparkFun Pro Micro board
 #arduino  #atmega     #function
                      
 7         PE6         1-wire
-8         PB4         Reset
-9         PB5         CS
-10        PB6         D/C
+A2        PF5         Reset
+A1        PF6         CS
+A0        PF7         D/C
 16        PB2(MOSI)   SDI
 15        PB1(SCK)    SCK
-                     
-A0        PF7         TDI
-A1        PF6         TDO
-A2        PF5         TMS
-A3        PF4         TCK
+
+
+ignore jtag
+#A0        PF7         TDI
+#A1        PF6         TDO
+#A2        PF5         TMS
+#A3        PF4         TCK
+
                      
 2         PD1         Down Key
 3         PD0         Up Key
                      
                      
-5         PC6(OC3A)   Peltier Power PWM
\ No newline at end of file
+5         PC6(OC3A)   Peltier Power PWM (cooling)
+6         PD7(OC4D)   Peltier Power PWM (heating)
\ No newline at end of file