Mercurial > public > hwos_code
comparison src/adc_lightsensor.asm @ 204:93085f540746
minor
author | heinrichsweikamp |
---|---|
date | Sun, 23 Nov 2014 22:33:41 +0100 |
parents | dd9b167e82dc |
children | f5d909e03f52 |
comparison
equal
deleted
inserted
replaced
203:dd9b167e82dc | 204:93085f540746 |
---|---|
429 rcall piezo_config_tx | 429 rcall piezo_config_tx |
430 movlw .200 ; reserved | 430 movlw .200 ; reserved |
431 rcall piezo_config_tx | 431 rcall piezo_config_tx |
432 return | 432 return |
433 | 433 |
434 global piezo_config_dive ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) | |
435 piezo_config_dive: ; Settings between 20 and 200 | |
436 movlw .60 ; right button | |
437 rcall piezo_config_tx | |
438 movlw .60 ; left button | |
439 rcall piezo_config_tx | |
440 movlw .200 ; reserved | |
441 rcall piezo_config_tx | |
442 movlw .200 ; reserved | |
443 rcall piezo_config_tx | |
444 return | |
445 | |
434 piezo_config_tx: ; Send one byte | 446 piezo_config_tx: ; Send one byte |
435 movwf uart1_temp ; Store byte | 447 movwf uart1_temp ; Store byte |
436 movlw .8 | 448 movlw .8 |
437 movwf uart2_temp ; Bit counter | 449 movwf uart2_temp ; Bit counter |
438 bcf TX3_PIEZO_CFG ; Startbit | 450 bcf TX3_PIEZO_CFG ; Startbit |