Greetings Ralph-
Thank you for your help.
PROBLEMS:
PROBLEM1.
I get a COMPILE ERROR in this Section of Code:
DewPoint:
For ix=14 to 0 step -1
wy=wx**wx
wz.bit0(ix)=wy.bit15
bt=~wy.bit15
wx=(wy< Next <<<<---------THIS IS THE PROBLEM
QUESTION: Can you let me know what's missing here?
************************
PROBLEM2:
After COMMENTING out the ERROR LINE is PROB1, I set up the circuit as described below ((SEE CIRCUIT SPECS)) and use Hyperterminal to view the Output of the Program by COMMENTING out the LCD output in your code and replacing it with the following:
SerOut2 PORTB.2,86,[DEC2 (TEMP/100),".",DEC1 (temp/10)," ",DEC2 (TEMP/100),".",DEC1 (temp/10)," ",DEC2 RHTC/10,".",DEC1 RHTC," ",DEC2 ABS DP/10,".",DEC1 ABS dp,13,10]
'LCDOut $FE,$C0,DEC2 (TEMP/100),".",DEC1 (temp/10)," ",DEC2 RHTC/10,".",DEC1 RHTC," ",DEC2 ABS DP/10,".",DEC1 ABS dp
WHAT HAPPENS: I get the SAME Values over and over again
** SHT 11 **
12.8 00.4 12.3
12.8 12.8 00.4 12.3
QUESTION: ANY IDEAS?
************************
CIRCUIT SPECS:
PIC16F628-20
PINOUTS
4-----MCLR---4.7kohm to 5vdc
5-----VSS-----GND
6-----RB0-----Pin3 of SHT11 (SCK)
7-----RB1-----Pin2 of SHT11 (Data)
8-----RB2-----Pin10 of MAX232 (T2IN)
15---OSC2---XTAL (4Mhz)
16---OSC1---XTAL (4Mhz)
SHT11
PINOUTS
1----GND----GND
2----DATA---Pin7 of PIC (RB1)
3----SCK --- Pin6 of PIC (RB0)
4----VDD----5VDC
THANKS,
I hope this description is complete enough
CHRISTIAN
Bookmarks