electronics forum

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

DS18s20 display on 20X4 LCD for temperature


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> DS18s20 display on 20X4 LCD for temperature
Author Message
jojokatada



Joined: 13 Jan 2005
Posts: 257
Helped: 13


Post06 Feb 2005 21:47   

DS18s20 display on 20X4 LCD for temperature


'display message on the 4 X 20 character LCD using pic16f84a and DS1820

DEFINE LCD_DREG PORTA 'LCD data port
DEFINE LCD_DBIT 0 'LCD data starting bit 0 or 4
DEFINE LCD_RSREG PORTA 'LCD register select port
DEFINE LCD_RSBIT 4 'LCD register select bit
DEFINE LCD_EREG PORTB 'LCD enable port
DEFINE LCD_EBIT 3 'LCD enable bit
DEFINE LCD_BITS 4 'LCD bus size 4 or 8
DEFINE LCD_LINES 4 'Number lines on LCD
DEFINE LCD_COMMANDUS 2000 'Command delay time in us
DEFINE LCD_DATAUS 50 'Data delay time

symbol DQ = PORTB.4
temp var word
cou var byte
cou1 var byte
pause 100
main:
owout DQ, 1,[$CC, $44]
owin DQ, 4,[cou]
if cou = 0 then
owout DQ, 1, [$cc, $BE]
owin DQ, 0,[temp.lowbyte, temp.highbyte, skip 4, cou,cou1]
endif

temp = (((temp >> 1) * 100) - 25 ) + (((cou -cou1) * 100) / cou)
lcdout $fe, 1, dec (temp / 100), " . " , dec2 temp, " C"
pause 1000
goto main
end


end

i got the error message please see the attachment
can anybody help me what wrong with my compiler?
Back to top
Google
AdSense
Google Adsense




Post06 Feb 2005 21:47   

Ads







Sorry, but you need login in to view this attachment

Back to top
jojokatada



Joined: 13 Jan 2005
Posts: 257
Helped: 13


Post07 Feb 2005 20:47   

Re: DS18s20 display on 20X4 LCD for temperature


hi i already know the problem why it is error because some of the file of the compiler are comflicted so what i did was uninstalled and install again it work no more error.
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 -> DS18s20 display on 20X4 LCD for temperature
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
4 ds18s20 display on an LCD using pic16f84a in Picbasic pro (6)
Read temp with DS18S20 temperature sensor (6)
LCD 20X4 VARITRONIX LCD (3)
Problem in LCD display in PIC 16f876 with 16x2 lcd display (3)
looking for a device to display my temperature (3)
Code for displaying temperature on lcd (2)
VHDL code for LCD display (3)
Datasheet for TM162AD - 2 x 16 LCD display (6)
Need help For PIC to LCD display (2)
Lookinf for Low Cost Graphical LCD display (21)


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