diff options
-rw-r--r-- | software/ihu/ihu.asm | 23 | ||||
-rw-r--r-- | software/ttx/ttx.asm | 2 |
2 files changed, 10 insertions, 15 deletions
diff --git a/software/ihu/ihu.asm b/software/ihu/ihu.asm index e080b7c..3f49483 100644 --- a/software/ihu/ihu.asm +++ b/software/ihu/ihu.asm @@ -32,16 +32,15 @@ LIST p=16F887 include "p16f887.inc" - ;; TODO: set correct configuration bits - __config _DEBUG_OFF & _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _XT_OSC - + __config _CONFIG1, _DEBUG_OFF & _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_NSLEEP & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC + __config _CONFIG2, _BOR21V & _WRT_OFF ;; ------------------------------------- ;; DEFINES ;; constants ;; I/O Pins -LED EQU 5 +TTX_RESET EQU 5 ;; variables ;; page 0 only @@ -94,10 +93,13 @@ init movwf OSCCON movlw b'11011111' movwf TRISD - bcf STATUS,RP0 + bcf STATUS,RP0 ;; bank 0 - bsf PORTD,LED + bcf PORTD,TTX_RESET ;reset TTX + nop + nop + bsf PORTD,TTX_RESET clrf TMR0 goto main @@ -115,14 +117,7 @@ init ;; ------------------------------------- ;; MAINLOOP main - bcf INTCON,T0IF -loop - btfss INTCON,T0IF - goto loop - - movlw b'00100000' - xorwf PORTD,f - goto main + goto powerdown powerdown sleep diff --git a/software/ttx/ttx.asm b/software/ttx/ttx.asm index ccf025d..2957a64 100644 --- a/software/ttx/ttx.asm +++ b/software/ttx/ttx.asm @@ -32,7 +32,7 @@ LIST p=12F635 include "p12f635.inc" - __config _WUREN_OFF & _FCMEN_OFF & _IESO_OFF & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT + __config _WUREN_OFF & _FCMEN_OFF & _IESO_OFF & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT ;; ------------------------------------- ;; DEFINES |