Smart Port | Wave POD |
waveloop_13 ; 2 KHz SQ wave, movlw 179 ; Vout is +1V (with OP-AMP) movwf PORTB ; put to the DAC nop nop l_131 comf PORTB,f ; negate the DAC value movlw 248 ; 249 uS delay per increment call us_timer ; plus 1uS delay nop nop nop comf PORTB,f ; and return the DAC to initial value movlw 248 ; 249 uS delay per increment call us_timer ; plus 1uS delay nop goto l_131 ; and loop |
Copyright © 2023 BitScope Designs