Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Code for displaying temperature on lcd

Status
Not open for further replies.

sjjm

Junior Member level 1
Joined
Apr 17, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,410
hie
Im looking for a full working code for a pic16f872 which accepts an input from a temperature sensor(LM35) compares it with a set temperature and varies the duty cycle of pulses from a zero crossing detector which also feeds its output to the pic.
The measured temperature from the pic also has to be displayed on an hd44780 lcd(16x2 character display).
HELP!!!
 

Hmmmm, you are mashkaljy/mashkaljyah.... Asking the same question many times!!! From which university you are? I am sure you are from Jordan, isn't it :D.

I would like to help you, but I am (hen mang) very busy these days. If you remind me this satureday. I will help you from A to Z.

Good luck
 

Temperature meassuring PIC16F876 & LM35DZ

movlw b'01000001' ; fosc/8, kanal 0, A/D on
movlw b'01001001' ; fosc/8, kanal 1, A/D on
movlw b'01010001' ; fosc/8, kanal 2, A/D on
movlw b'01011001' ; fosc/8, kanal 3, A/D on
movlw b'01100001' ; fosc/8, kanal 5, A/D on
movwf ADCON0
call ANALOG_3 ;
.
.
.

ANALOG_3
call WAIT200us
bcf STATUS,C
bsf ADCON0,GO ;start A/D prevodu
btfsc ADCON0,GO ; konec prevodu GO=0 (nebo ADIF=1 ?)
goto $-1 ; prevod A/D jeste neskoncil
call WAIT200us
;-------------------------------
movf ADRESH,W
movwf L_ANALOG_H
;-------------------------------
bsf STATUS,RP0 ;nastaveni BANKY 1
movf ADRESL,W
bcf STATUS,RP0 ;nastaveni BANKY 0
movwf L_ANALOG_L
;-------------------------------

return ; value: L_ANALOG_H/L_ANALOG_L
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top