tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- OWINIT save Register used in C
[owSlave2.git]
/
common
/
OWDS18B20_DS2438.S
diff --git
a/common/OWDS18B20_DS2438.S
b/common/OWDS18B20_DS2438.S
index
a653b5c
..
8ce61d0
100644
(file)
--- a/
common/OWDS18B20_DS2438.S
+++ b/
common/OWDS18B20_DS2438.S
@@
-52,8
+52,10
@@
.comm block,1 ; Block der augegeben, geschrieben wird (Parameter von READ/WRITE Scratchpad)
.comm block,1 ; Block der augegeben, geschrieben wird (Parameter von READ/WRITE Scratchpad)
-.macro CHIP_INIT
+.macro CHIP_INIT
;r_temp is pushed other Registers should be saved
Init_EEPROM_read:
Init_EEPROM_read:
+ push r_bytep
+ push r_rwbyte
sbic _SFR_IO_ADDR(EECR), EEPE
rjmp Init_EEPROM_read
ldi r_temp,0
sbic _SFR_IO_ADDR(EECR), EEPE
rjmp Init_EEPROM_read
ldi r_temp,0
@@
-64,6
+66,8
@@
Init_EEPROM_read:
in r_temp,_SFR_IO_ADDR(EEDR)
sbrs r_temp,7
rcall hrc_recall_eeprom_func1
in r_temp,_SFR_IO_ADDR(EEDR)
sbrs r_temp,7
rcall hrc_recall_eeprom_func1
+ pop r_rwbyte
+ pop r_bytep
.endm
.macro COMMAND_TABLE
.endm
.macro COMMAND_TABLE
@@
-248,6
+252,7
@@
h_readcommand2:
cjmp 0x44,hrc_set_convertT2
cjmp 0xB4,hrc_set_convertV2
FW_CONFIG_INFO2
cjmp 0x44,hrc_set_convertT2
cjmp 0xB4,hrc_set_convertV2
FW_CONFIG_INFO2
+ //cljmp 0x85,hrc_fw_configinfo2
#ifdef _CHANGEABLE_ID_
CHANGE_ID_COMMANDS
#endif
#ifdef _CHANGEABLE_ID_
CHANGE_ID_COMMANDS
#endif