summaryrefslogtreecommitdiff
path: root/electronics/asm/temp.asm
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2024-10-27 09:16:27 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2024-10-27 09:16:27 +0000
commit6d0b638d691270d7c65899ed860d0330938e7a07 (patch)
tree2ffed0fb53ca82f760376847d95075a6285acf31 /electronics/asm/temp.asm
parentb8c4af0771371e0c91a57343892e991254c4bf0b (diff)
did some writeup changes and finished electronics stuff
Diffstat (limited to 'electronics/asm/temp.asm')
-rw-r--r--electronics/asm/temp.asm22
1 files changed, 11 insertions, 11 deletions
diff --git a/electronics/asm/temp.asm b/electronics/asm/temp.asm
index c6d808d..353160c 100644
--- a/electronics/asm/temp.asm
+++ b/electronics/asm/temp.asm
@@ -12,27 +12,27 @@ init:
;bsf INTCON, INT0IE
;bsf INTCON, GIE
- rawtemp EQU B5
+ rawtemp EQU B6
goto main
-
showme:
- movlw 255
- movwf PORTB
- return
-
+ movlw 255
+ movwf PORTB
+ goto main
main:
- call readadc1
+ call readadc1 ; read the thermistor (at room tem its 73)
movf B1, W
movwf rawtemp
- call readadc0
+ call readadc0
movf B0, W
subwf rawtemp, w
-
- btfsc STATUS, 2
- call showme
+ btfsc STATUS, 0
+ goto showme
+
+ movlw 0
+ movwf PORTB
goto main