koky
Full Member level 2
pic wdtcon
i have notice with pic16f737 and 12f683 that when i set wdtcon timer0 not work right.
also if in the option register i set PSA=0 (prescaler assignet to Tmr0), the interrupt for tmr0 non work
tipical setting of wtdcon that i have used was:
Bank1
bcf OPTION_REG,PSA ; assign prescaler to TMR0
movlw b'00010111' ; bit0 wdt on/off (4-1) presc 1011 =65536 *(1/31.25Khz)=2.097sec
Bank2 ;
movwf WDTCON ;
Bank0 ;
i have notice with pic16f737 and 12f683 that when i set wdtcon timer0 not work right.
also if in the option register i set PSA=0 (prescaler assignet to Tmr0), the interrupt for tmr0 non work
tipical setting of wtdcon that i have used was:
Bank1
bcf OPTION_REG,PSA ; assign prescaler to TMR0
movlw b'00010111' ; bit0 wdt on/off (4-1) presc 1011 =65536 *(1/31.25Khz)=2.097sec
Bank2 ;
movwf WDTCON ;
Bank0 ;