From 6d0b638d691270d7c65899ed860d0330938e7a07 Mon Sep 17 00:00:00 2001 From: thing1 Date: Sun, 27 Oct 2024 09:16:27 +0000 Subject: did some writeup changes and finished electronics stuff --- electronics/asm/temp.asm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'electronics/asm/temp.asm') 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 -- cgit v1.2.3