upd schematic

This commit is contained in:
Sergey Yarkov 2022-05-18 00:15:00 +03:00
parent 7f0fdf0f8d
commit 3bd4cba25d
7 changed files with 23 additions and 7 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
.vscode
firmware.pro firmware.pro
*.pdsprj
*.workspace

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
MCU = t24
SRCFILE = firmware
TARGET = usbasp
DEVICE = usb
build: $(SRCFILE).asm
avrasm2 -fI -W+ie $(SRCFILE).asm -l $(SRCFILE).lss
flash:
avrdude -p $(MCU) -c $(TARGET) -P $(DEVICE) -U flash:w:$(SRCFILE).hex:a
clean:
rm -f $(SRCFILE).asm~ $(SRCFILE).hex $(SRCFILE).obj $(SRCFILE).lss $(SRCFILE).cof

View File

@ -62,7 +62,7 @@
.equ SW_FLAG_3 = 0xb0 .equ SW_FLAG_3 = 0xb0
.equ SW_FLAG_4 = 0x70 .equ SW_FLAG_4 = 0x70
.equ SEQ_LENGTH = 4 .equ SEQ_LENGTH = 2
; Value that stored in OCR0A for each tone ; Value that stored in OCR0A for each tone
; 880Hz = 71 ; 880Hz = 71

View File

@ -5,7 +5,7 @@
:1000300019B3107F60D1109362002FBF2F911F91D1 :1000300019B3107F60D1109362002FBF2F911F91D1
:1000400018957F937FB702C008EA52B7052702953B :1000400018957F937FB702C008EA52B7052702953B
:10005000500F7FBF7F91189539D128D12DD13FEF17 :10005000500F7FBF7F91189539D128D12DD13FEF17
:1000600041E0A4E0AA2EFF27E0E802D078940895AA :1000600041E0A2E0AA2EFF27E0E802D078940895AC
:1000700073E0F3D07A95E9F74AD1772708950FED29 :1000700073E0F3D07A95E9F74AD1772708950FED29
:100080000DBF0027109361000F9301E00093600003 :100080000DBF0027109361000F9301E00093600003
:100090000F9110916000113041F4DEDF1093610088 :100090000F9110916000113041F4DEDF1093610088
@ -21,7 +21,7 @@
:10013000F2CF88D0AECF2F93DED0DDD0DCD0A9B304 :10013000F2CF88D0AECF2F93DED0DDD0DCD0A9B304
:100140009A2FA07F9F70AA27A09362008191981791 :100140009A2FA07F9F70AA27A09362008191981791
:1001500029F42A2D241739F0439516C07ED03FEF9D :1001500029F42A2D241739F0439516C07ED03FEF9D
:10016000A4E0AA95AA2E2F91FF27E0E8BA9800EF05 :10016000A2E0AA95AA2E2F91FF27E0E8BA9800EF07
:100170000BBBCDD0109361000F9302E000936000A1 :100170000BBBCDD0109361000F9302E000936000A1
:100180000F9141E0A39408952F91089508957A2D39 :100180000F9141E0A39408952F91089508957A2D39
:10019000DD27C0E8B0D0652F663430F06C3830F021 :10019000DD27C0E8B0D0652F663430F06C3830F021

View File

@ -1,5 +1,5 @@
AVRASM ver. 2.2.7 firmware.asm Wed May 04 20:21:53 2022 AVRASM ver. 2.2.7 firmware.asm Wed May 18 00:14:04 2022
firmware.asm(13): Including file 'def.inc' firmware.asm(13): Including file 'def.inc'
firmware.asm(21): warning: Register r26 already defined by the .DEF directive firmware.asm(21): warning: Register r26 already defined by the .DEF directive
@ -746,7 +746,7 @@ firmware.asm(73): Including file 'macros.asm'
.equ SW_FLAG_3 = 0xb0 .equ SW_FLAG_3 = 0xb0
.equ SW_FLAG_4 = 0x70 .equ SW_FLAG_4 = 0x70
.equ SEQ_LENGTH = 4 .equ SEQ_LENGTH = 2
; Value that stored in OCR0A for each tone ; Value that stored in OCR0A for each tone
; 880Hz = 71 ; 880Hz = 71
@ -927,7 +927,7 @@ firmware.asm(73): Including file 'macros.asm'
; Init important registers for game ; Init important registers for game
00002f ef3f ldi delay_counter_r, 0xff 00002f ef3f ldi delay_counter_r, 0xff
000030 e041 ldi poll_step_r, 1 000030 e041 ldi poll_step_r, 1
000031 e0a4 ldi temp_r_c, SEQ_LENGTH 000031 e0a2 ldi temp_r_c, SEQ_LENGTH
000032 2eaa mov seq_length_r, temp_r_c 000032 2eaa mov seq_length_r, temp_r_c
000033 27ff clr ZH 000033 27ff clr ZH
000034 e8e0 ldi ZL, $80 000034 e8e0 ldi ZL, $80
@ -1074,7 +1074,7 @@ firmware.asm(73): Including file 'macros.asm'
_game_over: _game_over:
0000ae d07e rcall effect_1 0000ae d07e rcall effect_1
0000af ef3f ldi delay_counter_r, 0xff 0000af ef3f ldi delay_counter_r, 0xff
0000b0 e0a4 ldi temp_r_c, SEQ_LENGTH 0000b0 e0a2 ldi temp_r_c, SEQ_LENGTH
0000b1 95aa dec temp_r_c 0000b1 95aa dec temp_r_c
0000b2 2eaa mov seq_length_r, temp_r_c 0000b2 2eaa mov seq_length_r, temp_r_c

Binary file not shown.

Binary file not shown.