Mercurial > public > hwos_code
comparison src/hwos.asm @ 618:7b3903536213
work on new battery menu
author | heinrichsweikamp |
---|---|
date | Mon, 04 Feb 2019 22:57:24 +0100 |
parents | a32212cd5ea9 |
children | c40025d8e750 |
comparison
equal
deleted
inserted
replaced
617:08b28118c46b | 618:7b3903536213 |
---|---|
121 movlw b'10011011' ; 1= input, RJ4 -> vusb_in, RJ5 -> power_sw2, RJ6 -> CLK_MS5541, RJ7 -> MISO_MS5541 | 121 movlw b'10011011' ; 1= input, RJ4 -> vusb_in, RJ5 -> power_sw2, RJ6 -> CLK_MS5541, RJ7 -> MISO_MS5541 |
122 movwf TRISJ | 122 movwf TRISJ |
123 movlw b'00100000' ; init port | 123 movlw b'00100000' ; init port |
124 movwf PORTJ | 124 movwf PORTJ |
125 | 125 |
126 ; disable charger by default | 126 ; disable Charger by default |
127 bsf charge_disable | 127 bsf charge_disable ; set charging-inhibit signal |
128 | 128 bcf TRISE,2 |
129 | |
129 ; Timer 0 | 130 ; Timer 0 |
130 movlw b'00000001' ; timer0 with 1:4 prescaler | 131 movlw b'00000001' ; timer0 with 1:4 prescaler |
131 movwf T0CON | 132 movwf T0CON |
132 | 133 |
133 ; Timer 1 - Button hold-down timer | 134 ; Timer 1 - Button hold-down timer |