Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/ms5535.asm @ 83:3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
author | heinrichsweikamp |
---|---|
date | Tue, 07 Dec 2010 22:36:19 +0100 |
parents | 31fa973a70fd |
children | 8d6aca08f66b |
comparison
equal
deleted
inserted
replaced
82:bc3092c41335 | 83:3e351e25f5d1 |
---|---|
295 ; clrf EEADRH ; Only 256Bytes used in normal program | 295 ; clrf EEADRH ; Only 256Bytes used in normal program |
296 ; movlw d'200' ; limit value | 296 ; movlw d'200' ; limit value |
297 ; cpfsgt EEDATA ; EEDATA>200? | 297 ; cpfsgt EEDATA ; EEDATA>200? |
298 ; movff EEDATA, temperature_correction ; No, Store for compensation | 298 ; movff EEDATA, temperature_correction ; No, Store for compensation |
299 ; | 299 ; |
300 ifdef TESTING | |
301 ; Get example calibration values (Intersema 5535B datasheet, p12). | |
302 movlw LOW .18556 | |
303 movwf W1+0 | |
304 movlw HIGH .18556 | |
305 movwf W1+1 | |
306 | |
307 movlw LOW .49183 | |
308 movwf W1+0 | |
309 movlw HIGH .49183 | |
310 movwf W1+1 | |
311 | |
312 movlw LOW .22354 | |
313 movwf W1+0 | |
314 movlw HIGH .22354 | |
315 movwf W1+1 | |
316 | |
317 movlw LOW .28083 | |
318 movwf W1+0 | |
319 movlw HIGH .28083 | |
320 movwf W1+1 | |
321 else | |
322 rcall reset_MS5535A | 300 rcall reset_MS5535A |
323 movlw d'13' | 301 movlw d'13' |
324 movwf clock_count | 302 movwf clock_count |
325 movlw b'01010100' ;+3*high as start and 1+low as stop! | 303 movlw b'01010100' ;+3*high as start and 1+low as stop! |
326 movwf isr1_temp | 304 movwf isr1_temp |
353 movwf isr1_temp | 331 movwf isr1_temp |
354 rcall send_data_MS55535A | 332 rcall send_data_MS55535A |
355 rcall get_2bytes_MS5535A | 333 rcall get_2bytes_MS5535A |
356 movff dMSB,W4+1 | 334 movff dMSB,W4+1 |
357 movff dLSB,W4+0 | 335 movff dLSB,W4+0 |
358 endif | |
359 | 336 |
360 ; calculate C1 (16Bit) | 337 ; calculate C1 (16Bit) |
361 movff W1+1, C1+1 | 338 movff W1+1, C1+1 |
362 bcf STATUS,C | 339 bcf STATUS,C |
363 rrcf C1+1 | 340 rrcf C1+1 |