-
Notifications
You must be signed in to change notification settings - Fork 0
/
firmware_nomem.asm
46 lines (38 loc) · 1.63 KB
/
firmware_nomem.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
; This file is part of Thermostat Firmware.
;
; Thermostat Firmware is free software: you can redistribute it and/or
; modify it under the terms of the GNU General Public License as
; published by the Free Software Foundation, either version 3 of the
; License, or (at your option) any later version.
;
; Thermostat Firmware is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
; General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Thermostat Firmware. If not, see <https://www.gnu.org/licenses/>.
;
; Copyright (c) 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2022 Aleksander Mazur
$include (header.asm)
; sterowanie konserwatywne - z uwzględnieniem poprzednio wyliczonych masek sterujących przekaźnikami
CONSERVATIVE_CONTROL equ 1
CONTROL_NEGATIVE equ 1
; przekaźniki
RELAY_PORT equ P3 ; P3.7 idzie na bazę BC547
; 1-wire
OW_PWR equ P3.0 ; One Wire Power Key - 0 włącza zasilanie 1W
OW_PARASITE equ 21 ; One Wire Parasite Power - jeśli zdefiniowane, to jest to czas pomiaru temp. na 1-wire w cyklach pętli głównej (8/225 s), a 0 na OW_PWR włącza silną jedynkę na linii danych magistrali 1W zamiast +5V na trzecim przewodzie zasilającym urządzenia magistrali 1-wire
OW_DQ equ P3.1 ; One Wire DQ - linia danych magistrali 1W
;SKIP_DS18S20 equ 1
SKIP_DS2406 equ 1
SKIP_DS2405 equ 1
;SKIP_DS1821 equ 1
;SKIP_CTRL_TEMP equ 1
SKIP_UART equ 1
;TUNE_1WIRE equ 1
;AT89C4051 equ 1 ; mamy 2kB ROMu
$include (main.asm)
rom_data:
db 0,0,0,0
END