WavePOD WaveLoop B

WaveLoop B
waveloop_11                         ; 100KHz SQ wave

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