Mercurial > public > hwos_code
comparison src/isr.asm @ 469:bab31db6e006
minor
author | heinrichsweikamp |
---|---|
date | Mon, 28 Nov 2016 15:10:18 +0100 |
parents | b4f28ab23b87 |
children | 8dfb93e80338 |
comparison
equal
deleted
inserted
replaced
468:408329337b8b | 469:bab31db6e006 |
---|---|
315 | 315 |
316 | 316 |
317 ;============================================================================= | 317 ;============================================================================= |
318 | 318 |
319 isr_tmr7: ; each 62,5ms | 319 isr_tmr7: ; each 62,5ms |
320 bcf PIR5,TMR7IF ; clear flag | 320 bcf PIR5,TMR7IF ; clear flag |
321 banksel 0xF16 ; Addresses, F16h through F5Fh, are also used by SFRs, but are not part of the Access RAM. | 321 banksel 0xF16 ; Addresses, F16h through F5Fh, are also used by SFRs, but are not part of the Access RAM. |
322 movlw .248 | 322 movlw .248 |
323 movwf TMR7H ; -> Rollover after 2048 cycles -> 62,5ms | 323 movwf TMR7H ; -> Rollover after 2048 cycles -> 62,5ms |
324 | 324 |
325 banksel isr_backup | 325 banksel isr_backup |
326 movf max_CCPR1L,W ; Dimm value | 326 movf max_CCPR1L,W ; Dimm value |
327 cpfseq CCPR1L ; = current PWM value? | 327 cpfseq CCPR1L ; = current PWM value? |
328 rcall isr_dimm_tft ; No, adjust until max_CCPR1L=CCPR1L ! | 328 rcall isr_dimm_tft ; No, adjust until max_CCPR1L=CCPR1L ! |
329 | 329 |
330 banksel common | 330 banksel common |
331 call get_analog_switches ; Get analog readings | 331 call get_analog_switches ; Get analog readings |
332 btfss INTCON3,INT1IE | 332 btfss INTCON3,INT1IE |
333 bra isr_tmr7_a | 333 bra isr_tmr7_a |