;
; TEST1 uses internal lookup table and R2R ladder on Port B
;
; 10-step freq limit 83-KHz, resolution approx 0.05-Hz
;
TEST1
movf ADDERL,W ; adder L (1) (100-nsecs)
addwf ACCUML,f ; accum L (1)
movf ADDERH,W ; adder H (1)
addwfc ACCUMH,f ; accum H (1)
movf ADDERU,W ; adder U (1)
addwfc TBLPTRL,f ; accum U (1)
tblrd * ; (2)
movf TABLAT,W ; (1)
movwf LATB ; (1)
bra TEST1 ; (2) (1.2-usec loop)
;
; TEST2 uses external EEPROM table and R2R ladder on EEPROM
; output, Port B drives EEPROM address lines A0..A7 with A8
; and A9 address lines used to select the 256-byte/256 step
; Sine, Square, Triangle, or Sawtooth EEPROM tables
;
; 10-step freq limit 124-KHz, resolution approx 0.07-Hz
;
TEST2
movf ADDERL,W ; adder L (1) (100-nsecs)
addwf ACCUML,f ; accum L (1)
movf ADDERH,W ; adder H (1)
addwfc ACCUMH,f ; accum H (1)
movf ADDERU,W ; adder U (1)
addwfc LATB,f ; accum U (1)
bra TEST2 ; (2) (0.8-usec loop)
;