Shop OBEX P1 Docs P2 Docs Learn Events
Hard disck and DS1620 EQUIRY — Parallax Forums

Hard disck and DS1620 EQUIRY

HeroHero Posts: 24
edited 2008-12-07 20:44 in General Discussion
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.gifrolleyes.gif

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-12-07 03:30
    If your harddisk is failing, run some tests, search for bad sectors etc.
    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
    ·
  • HeroHero Posts: 24
    edited 2008-12-07 14:46
    I have left them Unconnected and downloaded the program. What should be the download response? I see no javelin reply.

    Cheers.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-12-07 15:23
    I assume you use the ShiftDS1620.java program.
    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
  • HeroHero Posts: 24
    edited 2008-12-07 19:30
    This is my code, do you recommend me to change the main loop at the bottom. As mentioned I have not connected the High therm, low therm and combine therm.
    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
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-12-07 20:44
    This code is not for the DS1620 that you mention in
    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
Sign In or Register to comment.