comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 469:f53aa96ff2f4

SPI for sensor in 32MHz
author heinrichsweikamp
date Thu, 06 Oct 2011 23:30:47 +0200
parents 38b38b105782
children c083f5b9168c
comparison
equal deleted inserted replaced
468:8d69c040b9fc 469:f53aa96ff2f4
97 ostc_debug 'G' ; Sends debug-information to screen if debugmode active 97 ostc_debug 'G' ; Sends debug-information to screen if debugmode active
98 98
99 ; Desaturation time needs: 99 ; Desaturation time needs:
100 ; int_I_pres_surface 100 ; int_I_pres_surface
101 ; char_I_desaturation_multiplier 101 ; char_I_desaturation_multiplier
102 movlw d'0'
103 movff WREG,char_I_deco_model ; ZH-L16
102 GETCUSTOM8 d'12' ; Desaturation multiplier % 104 GETCUSTOM8 d'12' ; Desaturation multiplier %
103 movff WREG,char_I_desaturation_multiplier 105 movff WREG,char_I_desaturation_multiplier
104 106
105 call deco_calc_desaturation_time ; calculate desaturation time 107 call deco_calc_desaturation_time ; calculate desaturation time
106 movlb b'00000001' ; select ram bank 1 108 movlb b'00000001' ; select ram bank 1