comparison code_part1/OSTC_code_asm_part1/wait.asm @ 522:e33a8ac4b660

New ASSERT_BANK1 macro for software proofing.
author JeanDo
date Fri, 09 Dec 2011 20:43:43 +0100
parents 33abbc08f01e
children c50296c3059e
comparison
equal deleted inserted replaced
521:33abbc08f01e 522:e33a8ac4b660
16 ; last updated: 11/05/07 16 ; last updated: 11/05/07
17 ; known bugs: 17 ; known bugs:
18 ; ToDo: 18 ; ToDo:
19 19
20 ; ========================================================== 20 ; ==========================================================
21 ; WAIT 10 MICROSECONDS - 16 MHZ 21 ; WAIT 10 MICROSECONDS - 16 Mhz and 32 Mhz
22 ; ========================================================== 22 ; ==========================================================
23 23
24 IFDEF SPEED_16MHz 24 IFDEF SPEED_16MHz
25 WAIT10US macro wait_temp 25 WAIT10US macro wait_temp
26 movlw wait_temp 26 movlw wait_temp
86 WAITMS macro waitms_temp 86 WAITMS macro waitms_temp
87 movlw waitms_temp 87 movlw waitms_temp
88 call WAITMSX 88 call WAITMSX
89 endm 89 endm
90 90
91 WAITMSX movwf waitms_temp ; Holds number of ms to wait 91 WAITMSX movwf waitms_temp ; Holds number of ms to wait
92 92
93 ASSERT_BANK1 .10002 ; Make sure we are in bank1
93 Ifdef TESTING 94 Ifdef TESTING
94 return ; In emulation, just skips waits 95 return ; In emulation, just skips waits
95 Endif 96 Endif
96 WAITMSX1: 97 WAITMSX1:
97 movf TMR1L,W 98 movf TMR1L,W