Newbrain Storage Device

Home Forums Newbrain Hardware Newbrain Storage Device

Tagged: , , ,

  • Creator
    Topic
  • #3288
    CDesp
    Keymaster
    • Topics: 15
    • Replies: 13
    • Total posts: 28
      Up
      1
      Down
      ::

      I just posted a new article about a tape replacement device that uses the serial port to load and save files.

      You can check it out here .

       

    Viewing 2 reply threads
    • Author
      Replies
      • #3627
        CDesp
        Keymaster
        Topic Author
        • Topics: 15
        • Replies: 13
        • Total posts: 28
          Up
          0
          Down
          ::

          User simmo1010 asked

          I haven’t worked out how to save files from the NewBrain to the SD card – I get error 120 – “Syntax error in baud rate parameter string”. Is there some other command I should be using on the NewBrain (other than poke 19,9: save “filename”)?

          Expected baudrate is 9600bps and it works on my Newbrain but maybe some roms have another default value, i ‘ll have to check this out.

          Also if you want to save to this device you must first press the ‘REC’ button (the 1st one) on the device and then issue the command Save “A_filename.bas”.

          If you want to load a file you must first issue the Load command and then press the ‘PLAY” button on the device.

          Of course you should set the default device to 9 with Poke 19,9 prior to any Load, Save, Openin, or Openout commands.

           

        • #3629
          simmo1010
          Participant
          • Topics: 0
          • Replies: 2
          • Total posts: 2
            Up
            0
            Down
            ::

            Sorry – I have been posting under the tape replacement article rather than in the forum!

            On CDesp said

            Expected baudrate is 9600bps and it works on my Newbrain but maybe some roms have another default value, i ‘ll have to check this out.

            Also if you want to save to this device you must first press the ‘REC’ button (the 1st one) on the device and then issue the command Save “A_filename.bas”.

            I don’t think it is a baudrate issue as I can load files with …

            poke 19,9: load

            … and save files (without a filename) using …

            open#9,9

            save#9

            close#9

             

            I get the 120 error if I pass any string argument to the “save” or “load” commands after the “poke 19,9” command.

            • This reply was modified 1 month, 4 weeks ago by simmo1010.
          • #3631
            CDesp
            Keymaster
            Topic Author
            • Topics: 15
            • Replies: 13
            • Total posts: 28
              Up
              0
              Down
              ::

              It has been a while since i tampered with this, so i will have to look at it. The arduino code does not let you set a filename though yet.

              After i looked into it by saving on device 9 (RS232) newbrain expects only the required parameters from serial transmition so just a number for transmition or two numbers seperated by ‘R’ to set the transmit and receive baudrate and nothing else. So it is not possible to set the file name in one command BUT it should be possible to issue a new command by sending something like PRINT#9,”rFilename” to rename the last saved file. That requires changes to the Arduino code.

              • #3632
                simmo1010
                Participant
                • Topics: 0
                • Replies: 2
                • Total posts: 2
                  Up
                  0
                  Down
                  ::

                  That’s a relief – I thought I was doing something wrong, or had a hardware bug on the board. I’m slowly starting to get my head around the NewBrain, it’s a really interesting machine.

                  Please don’t feel pressured to change the code. You have bigger (modular NewBrain!) projects to focus on. Once I get a bit more confident with the NewBrain and Arduino I will have a play with the code.

                  Thanks again. Ian.

            Viewing 2 reply threads
            • You must be logged in to reply to this topic.