comparison code_part1/OSTC_code_asm_part1/tempcomp.asm @ 49:cd5b650920f6

1.70...
author heinrichsweikamp
date Wed, 28 Jul 2010 15:40:03 +0200
parents 2b5c52ae3923
children
comparison
equal deleted inserted replaced
48:ebc5abda180d 49:cd5b650920f6
1
2
3 ; OSTC - diving computer code 1 ; OSTC - diving computer code
4
5 ; Copyright (C) 2008 HeinrichsWeikamp GbR 2 ; Copyright (C) 2008 HeinrichsWeikamp GbR
6 3
7
8
9 ; This program is free software: you can redistribute it and/or modify 4 ; This program is free software: you can redistribute it and/or modify
10
11 ; it under the terms of the GNU General Public License as published by 5 ; it under the terms of the GNU General Public License as published by
12
13 ; the Free Software Foundation, either version 3 of the License, or 6 ; the Free Software Foundation, either version 3 of the License, or
14
15 ; (at your option) any later version. 7 ; (at your option) any later version.
16 8
17
18
19 ; This program is distributed in the hope that it will be useful, 9 ; This program is distributed in the hope that it will be useful,
20
21 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 10 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
22
23 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
25 ; GNU General Public License for more details. 12 ; GNU General Public License for more details.
26 13
27
28
29 ; You should have received a copy of the GNU General Public License 14 ; You should have received a copy of the GNU General Public License
30
31 ; along with this program. If not, see <http://www.gnu.org/licenses/>. 15 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
32 16
33 17
34
35
36
37 ; routine for extra temperature compensation 18 ; routine for extra temperature compensation
38
39 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com 19 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com
40
41 ; written: 01/12/08 20 ; written: 01/12/08
42
43 ; last updated: 08/08/31 21 ; last updated: 08/08/31
44
45 ; known bugs: 22 ; known bugs:
46
47 ; ToDo: 23 ; ToDo:
48 24
49
50
51 ; routine echoes the "f" command as ready signal 25 ; routine echoes the "f" command as ready signal
52
53 ; PC has to send 2 bytes containing the actual temperature in 0.1C 26 ; PC has to send 2 bytes containing the actual temperature in 0.1C
54
55 ; Byte1: low 27 ; Byte1: low
56
57 ; Byte2: high 28 ; Byte2: high
58
59
60
61 29
62 30
63 compensate_temperature: 31 compensate_temperature:
64 bcf uart_compensate_temp ; clear flag 32 bcf uart_compensate_temp ; clear flag
65 bcf PIE1,RCIE ; no interrupt for UART 33 bcf PIE1,RCIE ; no interrupt for UART