Mixed Signal PICtail™ Demo Board User’s Guide
DS51523A-page 34
2004 Microchip Technology Inc.
; 7 852 1209
; 8 852 1336
; 9 852 1477
; A 697 1633
; B 770 1633
; C 852 1633
; D 941 1633
; * 941 1209
; # 941 1477
if ((_32_steps) & (Fosc_8000000)) | ((_16_steps) & (Fosc_4000000))
;
;*************************************************************************
;
; Delay Calculation for Frequency Generation
; Fosc = 8MHz #steps = 32
; OR
; Fosc = 4MHz #steps = 16
;
; X = Fosc / ( 4 * #steps * Ftone)
;
;
F_Low_table
addwf PCL,F
;X Actual Desired %Error
retlw .66 ;947.0 941 .63%
retlw .90 ;694.4 697 .37%
retlw .90 ;694.4 697 .37%
retlw .90 ;694.4 697 .37%
retlw .81 ;771.6 770 .21%
retlw .81 ;771.6 770 .21%
retlw .81 ;771.6 770 .21%
retlw .73 ;856.2 852 .49%
retlw .73 ;856.2 852 .49%
retlw .73 ;856.2 852 .49%
retlw .90 ;694.4 697 .37%
retlw .81 ;771.6 770 .21%
retlw .73 ;856.2 852 .49%
retlw .66 ;947.0 941 .63%
retlw .66 ;947.0 941 .63%
retlw .66 ;947.0 941 .63%
F_High_table
addwf PCL,F
;X Actual Desired %Error
retlw .47 ;1329.8 1336 .47%
retlw .52 ;1201.9 1209 .59%
retlw .47 ;1329.8 1336 .47%
retlw .42 ;1488.1 1477 .75%
retlw .52 ;1201.9 1209 .59%
retlw .47 ;1329.8 1336 .47%
retlw .42 ;1488.1 1477 .75%
retlw .52 ;1201.9 1209 .59%
retlw .47 ;1329.8 1336 .47%
retlw .42 ;1488.1 1477 .75%
retlw .38 ;1644.7 1633 .72%
retlw .38 ;1644.7 1633 .72%
retlw .38 ;1644.7 1633 .72%
retlw .38 ;1644.7 1633 .72%
retlw .52 ;1201.9 1209 .59%