Don't know why I need it, but this works:
I mean, I get why setting BSR=0 fixes it, just don't know why I need to.Code:FiveMicroSec: ' LATF = LATF ^ 32 ; TOGGLE DAC CNT =CNT+1 BSR = 0 PORTC = PORTA PIR1.1 = 0 ; clear the interrupt flag @ RETFIE
Don't know why I need it, but this works:
I mean, I get why setting BSR=0 fixes it, just don't know why I need to.Code:FiveMicroSec: ' LATF = LATF ^ 32 ; TOGGLE DAC CNT =CNT+1 BSR = 0 PORTC = PORTA PIR1.1 = 0 ; clear the interrupt flag @ RETFIE
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks