comparison code_part1/OSTC_code_asm_part1/wait.asm @ 485:e83f883c96b2

quick fix for wrong wait routines
author heinrichsweikamp
date Sat, 15 Oct 2011 13:45:15 +0200
parents 42acd9316f7a
children c7b663939737
comparison
equal deleted inserted replaced
484:65850b513f1b 485:e83f883c96b2
18 ; ToDo: 18 ; ToDo:
19 19
20 ; ========================================================== 20 ; ==========================================================
21 ; WAIT 10 MICROSECONDS - 16 MHZ 21 ; WAIT 10 MICROSECONDS - 16 MHZ
22 ; ========================================================== 22 ; ==========================================================
23
24 IFDEF SPEED_16MHz
23 WAIT10US macro wait_temp 25 WAIT10US macro wait_temp
24 movlw wait_temp 26 movlw wait_temp
25 call WAIT10USX 27 call WAIT10USX
26 endm 28 endm
29 ENDIF
30
31 IFDEF SPEED_32MHz
32 WAIT10US macro wait_temp
33 movlw wait_temp
34 call WAIT10USX
35 movlw wait_temp
36 call WAIT10USX
37 endm
38 ENDIF
27 39
28 WAIT10USX movwf wait_temp 40 WAIT10USX movwf wait_temp
29 goto JumpIn10us 41 goto JumpIn10us
30 WAIT10USX2 nop 42 WAIT10USX2 nop
31 nop 43 nop
69 goto WAIT10USX2 81 goto WAIT10USX2
70 return 82 return
71 ; ========================================================== 83 ; ==========================================================
72 ; WAIT 1 MILLISECOND - 16 MHZ 84 ; WAIT 1 MILLISECOND - 16 MHZ
73 ; ========================================================== 85 ; ==========================================================
86 IFDEF SPEED_16MHz
74 WAITMS macro waitms_temp 87 WAITMS macro waitms_temp
75 movlw waitms_temp 88 movlw waitms_temp
76 call WAITMSX 89 call WAITMSX
77 endm 90 endm
91 ENDIF
92
93 IFDEF SPEED_32MHz
94 WAITMS macro waitms_temp
95 movlw waitms_temp
96 call WAITMSX
97 movlw waitms_temp
98 call WAITMSX
99 endm
100 ENDIF
101
78 WAITMSX movwf waitms_temp 102 WAITMSX movwf waitms_temp
79 goto JumpInMSX 103 goto JumpInMSX
80 WAITMSX2 nop 104 WAITMSX2 nop
81 nop 105 nop
82 nop 106 nop