electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Code for displaying temperature on lcd


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Code for displaying temperature on lcd
Author Message
sjjm



Joined: 17 Apr 2006
Posts: 16


Post19 Apr 2006 11:22   

Code for displaying temperature on lcd


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!!!
Back to top
Google
AdSense
Google Adsense




Post19 Apr 2006 11:22   

Ads




Back to top
hjamleh



Joined: 06 Oct 2005
Posts: 27
Helped: 3
Location: Taiwan


Post19 Apr 2006 20:16   

Re: Code for displaying temperature on lcd


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 Very Happy.

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
Back to top
sento



Joined: 23 Aug 2005
Posts: 23


Post19 Apr 2006 21:55   

Re: Code for displaying temperature on lcd


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
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Code for displaying temperature on lcd
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
displaying temperature on LCD (6)
displaying temperature on LCD (12)
Displaying time on LCD (18)
PIC18F252 displaying voltages on LCD (1)
Atmel,assembly:displaying on LCD (6)
Problem in displaying Characters in LCD Module (6)
Displaying degree character in the LCD... (5)
displaying waveforms on LCD using FPGAs (2)
trouble displaying correct data lcd (1)
PIC+LCD problem with displaying (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS