Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/isr.asm @ 245:dee88c962653
Some clean up and minor I2C speed improvements
author | heinrichsweikamp |
---|---|
date | Thu, 24 Mar 2011 21:51:36 +0100 |
parents | 9581e48a914f |
children | ba109a7948df |
comparison
equal
deleted
inserted
replaced
244:976260083540 | 245:dee88c962653 |
---|---|
117 bcf T0CON,TMR0ON ; Stop Timer 0 | 117 bcf T0CON,TMR0ON ; Stop Timer 0 |
118 clrf TMR0H | 118 clrf TMR0H |
119 clrf TMR0L | 119 clrf TMR0L |
120 return | 120 return |
121 | 121 |
122 timer0int_left_reset: | |
123 bcf INTCON2, INTEDG0 ; Interrupt on faling edge again | |
124 bcf switch_left_isr ; Clear flag, button press is done | |
125 | |
126 movlw T0CON_debounce ; Timer0 | |
127 movwf T0CON | |
128 | |
129 bsf T0CON,TMR0ON ; Start Timer 0 | |
130 return | |
131 | |
132 timer0int_left: | |
133 bsf INTCON2, INTEDG0 ; Interrupt on rising edge again | |
134 return | |
135 | |
136 timer0int_right_reset: | |
137 bcf INTCON2, INTEDG1 ; Interrupt on faling edge again | |
138 bcf switch_right_isr ; Clear flag, button press is done | |
139 | |
140 movlw T0CON_debounce ; Timer0 | |
141 movwf T0CON | |
142 | |
143 bsf T0CON,TMR0ON ; Start Timer 0 | |
144 return | |
145 | |
146 timer0int_right: | |
147 bsf INTCON2, INTEDG1 ; Interrupt on rising edge again | |
148 return | |
149 | |
150 timer1int: | 122 timer1int: |
151 bcf PIR1,TMR1IF ; Clear flag | 123 bcf PIR1,TMR1IF ; Clear flag |
152 | 124 |
153 timer1int_debug: | 125 timer1int_debug: |
154 bcf LED_red ; LEDr off (For charge indicator) | 126 bcf LED_red ; LEDr off (For charge indicator) |