Download here - Adam Morse
Transcript
movlb 0xf ; ; turn on the output ; movlw BE_PWM_ON_DUTYC movwf CCPR3L,BANKED ; ; reset BSR ; movlb 0x00 return ; ; Function: BackupBeeperDisable ; ; Purpose: To Enable the backup Beeper ; ; Parameters: None ; ; Returns: None ; ; Notes: ; BackupBeeperDisable: ; ; The SFRs for the backup beeper are outside of the access bank, so we need to ; load the BSR (0xf) and use it for operations ; movlb 0xf ; ; turn off the PWM ; movlw BE_PWM_OFF_DUTYC movwf CCPR3L,BANKED ; ; turn off the beeper ; bcf BE_PORT,BE_PIN ; ; set status to disabled ; bcf BE_Status,BESTAT_ENABLED,A ; ; reset BSR ; movlb 0x00 return ; ; Function: BackupBeeperUpdate ; ; Purpose: To update the BackupBeeper status (turn on/off) each iteration ; ; Parameters: None ; ; Returns: None ; ; Notes: ; BackupBeeperUpdate: ;