Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
readtemp
bcf tncs_port, tncs ;starts on high to low edge
movlw 0x10
movwf count1
read_bit
rlf temp_lsb, f
rlf temp_msb, f ;rotates both bytes left
bsf tsc_port, tsc ;raise clock
bcf temp_lsb, 0 ;clear bit 0
btfsc tsio_port, tsio ;check data from LM95071
bsf temp_lsb, 0 ;set bit 0 if data is set
bcf tsc_port, tsc ;lower clock
decfsz count1, f ;decrement counter
goto read_bit
bsf tncs_port, tncs ;raise Not Chip Select = stop LM95071
return
Shohadawy said:OK ,I'm sorry that I've disturbed you... but it's up to you if you don't want to answer my disturbing questions