Mercurial > public > hwos_code
diff src/hwos.asm @ 614:a32212cd5ea9
work on new battery menu
author | heinrichsweikamp |
---|---|
date | Wed, 30 Jan 2019 21:46:42 +0100 |
parents | 6dd6b37da7c8 |
children | 7b3903536213 |
line wrap: on
line diff
--- a/src/hwos.asm Wed Jan 30 16:27:56 2019 +0100 +++ b/src/hwos.asm Wed Jan 30 21:46:42 2019 +0100 @@ -1,6 +1,6 @@ ;============================================================================= ; -; File hwos.asm V2.98f +; File hwos.asm V2.99g ; ; Definition of the hwOS dive computer platform. ; @@ -123,6 +123,8 @@ movlw b'00100000' ; init port movwf PORTJ +; disable charger by default + bsf charge_disable ; Timer 0 movlw b'00000001' ; timer0 with 1:4 prescaler @@ -155,7 +157,7 @@ movwf EECON2 bcf RTCCFG,RTCWREN ; Lock sequence for RTCWREN banksel common - + ; A/D Converter movlw b'00011000' ; power off ADC, select AN6 movwf ADCON0 @@ -164,7 +166,6 @@ movlw b'10001101' ; right aligned movwf ADCON2 - ; init serial port1 (TRISC6/7) movlw b'00001000' ; BRG16=1 movwf BAUDCON1