WavePOD WaveLoop C

WaveLoop C
waveloop_12                         ; 10 KHz SQ wave, 

        movlw   179                 ; Vout is +1V (with OP-AMP)
        movwf   PORTB               ; put to the DAC
        nop
        nop
l_121
        comf    PORTB,f             ; negate the DAC value
        movlw   48                  ; 49 uS delay per increment
        call    us_timer            ; plus 1uS delay
        nop
        nop
        nop
        comf    PORTB,f             ; and return the DAC to initial value
        movlw   48                  ; 49 uS delay per increment
        call    us_timer            ; plus 1uS delay
        nop
        goto    l_121               ; and loop