Mercurial > public > hwos_code
diff src/ms5541.asm @ 29:50c3e2c7ba7a
adding cardinal (and ordinal) directions for the compass
author | heinrichsweikamp |
---|---|
date | Sat, 20 Jul 2013 22:01:49 +0200 |
parents | 11d4fc797f74 |
children | 7ca1105751c7 |
line wrap: on
line diff
--- a/src/ms5541.asm Sat Jul 20 16:02:35 2013 +0200 +++ b/src/ms5541.asm Sat Jul 20 22:01:49 2013 +0200 @@ -468,15 +468,21 @@ nop nop nop + nop + nop bcf MS5541_clk nop nop + nop + nop return send_data_MS5541: movwf clock_count ; From WREG ; send three startbits first bcf MS5541_clk + nop + nop bsf MS5541_mosi movlw d'3' subwf clock_count,F ; total bit counter @@ -486,6 +492,8 @@ ; now send 8 bytes from isr_temp1 and fill-up with zeros send_data_MS5541_2: bcf MS5541_clk + nop + nop btfss isr1_temp,7 ;MSB first bcf MS5541_mosi @@ -496,8 +504,8 @@ bcf STATUS,C rlcf isr1_temp,F -; nop -; nop + nop + nop ; nop ; nop ; nop