comparison src/sleepmode.asm @ 640:8c1f1f334275

3.13 release
author heinrichsweikamp
date Thu, 29 Oct 2020 09:29:15 +0100
parents 4050675965ea
children 7d8a4c60ec1a
comparison
equal deleted inserted replaced
639:0ff82370991d 640:8c1f1f334275
117 117
118 deepsleep_pre: 118 deepsleep_pre:
119 bcf PIE1,TMR1IE ; disable timer 1 interrupt 119 bcf PIE1,TMR1IE ; disable timer 1 interrupt
120 bcf PIE2,TMR3IE ; disable timer 2 interrupt 120 bcf PIE2,TMR3IE ; disable timer 2 interrupt
121 bcf PIE5,TMR7IE ; disable timer 7 interrupt 121 bcf PIE5,TMR7IE ; disable timer 7 interrupt
122 bcf PIE5,TMR4IE ; disable timer 4 interrupt
122 bcf INTCON, INT0IE ; disable INT0 interrupt 123 bcf INTCON, INT0IE ; disable INT0 interrupt
123 bcf INTCON3,INT1IE ; disable INT1 interrupt 124 bcf INTCON3,INT1IE ; disable INT1 interrupt
124 125
125 bcf power_sw1 ; power-down switch 1 126 bcf power_sw1 ; power-down switch 1
126 bcf power_sw2 ; power-down switch 2 127 bcf power_sw2 ; power-down switch 2
153 rcall init_avg_switches ; initialize the averaging system 154 rcall init_avg_switches ; initialize the averaging system
154 155
155 bsf PIE1,TMR1IE ; enable timer 1 interrupt 156 bsf PIE1,TMR1IE ; enable timer 1 interrupt
156 bsf PIE2,TMR3IE ; enable timer 2 interrupt 157 bsf PIE2,TMR3IE ; enable timer 2 interrupt
157 bsf PIE5,TMR7IE ; enable timer 7 interrupt 158 bsf PIE5,TMR7IE ; enable timer 7 interrupt
159 bsf PIE5,TMR4IE ; enable timer 4 interrupt
158 bsf INTCON, INT0IE ; enable INT0 interrupt 160 bsf INTCON, INT0IE ; enable INT0 interrupt
159 bsf INTCON3,INT1IE ; enable INT1 interrupt 161 bsf INTCON3,INT1IE ; enable INT1 interrupt
160 162
161 bra sleeploop_loop ; enter normal sleep loop 163 bra sleeploop_loop ; enter normal sleep loop
162 164