WavePOD WaveLoop 8

WaveLoop 8
waveloop_8                          ; loop time is 3uS - DAC inc is 38
                                    ; F=49.4792 KHz
        movlw   0x80                ;
        movwf   PORTB               ;
l_81
        movlw   1                   ; 2 uS delay per increment
        call    us_timer            ; plus 1uS code - do the delay
        movlw   38                  ; increment the DAC by 38
        addwf   PORTB,f             ; do it
        goto    l_81                ; and loop