Hard disck and DS1620 EQUIRY
hI
I keep receiving error messages which mite be related to my hard drive fail. How can I solve this.
I am also trying to run the DS1620 chip. I am not sure where to connect the high thermostat , low thermostat and combined thermostat, it is not clear on the schematics. Pin 4, pin 5, pin 6 is linked to the datapin, clock pin and enable pin.
Cheers.![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
I keep receiving error messages which mite be related to my hard drive fail. How can I solve this.
I am also trying to run the DS1620 chip. I am not sure where to connect the high thermostat , low thermostat and combined thermostat, it is not clear on the schematics. Pin 4, pin 5, pin 6 is linked to the datapin, clock pin and enable pin.
Cheers.
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
![rolleyes.gif](http://forums.parallax.com/images/smilies/rolleyes.gif)
Comments
If you get too many errors, get another harddisk.
Thigh, Tlow and Tcom are outputs. If you don't need them, leave them unconnected.
Read the ds1620 datasheet. That info is on its first page.
http://pdfserv.maxim-ic.com/en/ds/DS1620.pdf
regards peter
·
Cheers.
Here is the mainloop of that program:
· public static void main(){
··· dsInit(setup);
··· while (true){
····· System.out.print(HOME);
····· System.out.println ("Celsius temperature: ");
····· System.out.println(dsTemp(READ_TEMP)/2);············· // Divide by 2 for deg-C
····· CPU.delay(5000);
··· }··············································· // end while
· }················································· // end main
What do you think the output should look like ?
regards peter
I have downloaded the program to the stamp successfully but I don`t receive any reply. Cheers.
// Program Listing 9.4 - Using shiftOut on 75xx595 shift register
import stamp.core.*;
public class Shift74595 {
final static char HOME = 0x01;
final static int DATA_PIN = CPU.pin0;
final static int CLOCK_PIN = CPU.pin1;
final static int PULSE_595 = CPU.pin2;
static void write595(int number){
CPU.shiftOut(DATA_PIN, CLOCK_PIN, 8, CPU.SHIFT_MSB, number <<8 );
CPU.pulseOut(5,PULSE_595);
} // end write595
public static void main() {
CPU.writePin(PULSE_595,false);
CPU.writePin(CLOCK_PIN,false);
while(true){
for (int i = 0; i <= 255; i++){
write595(i);
CPU.delay(2500);
} // end for
} // end while
} // end main
} // end class
your post.
To test the DS1620 you need Listing 4.7
(program ShiftDS1620.java)
Using the program Shift74595 with the DS1620 is pointless.
regards peter