Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:11 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Homebrew Z80 Computer Kit, Basic, CP/M

     Page 2 of 3    
Author Message
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 11:06pm 05 Dec 2018
Copy link to clipboard 
Print this post

  OA47 said   Speaking of retro, I have a swag of cassette tapes with Basic programs and software I wrote many years ago and I was thinking of setting up a Mite to read and save these files to an SD or something similar.

OA47


I understand that people do this routinely by using a PC sound input jack and decode software.

Micromites and Maximites! - Beginning Maximite
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 986
Posted: 11:16pm 05 Dec 2018
Copy link to clipboard 
Print this post

Thanks CG, but I was using a non main stream computer using an RCA processor which I think from memory was a CDP1805 series which used some unique audio serial data.

OA47
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 593
Posted: 03:37am 06 Dec 2018
Copy link to clipboard 
Print this post

Here state side we had eight of the RCA cosmac elf in the micro lab at collage.

There where about 40 different types of such boards donated to the lab.

6800 based even a NS32032 by National Semiconductor that ran I think a type

of Unix it was monster size of a board.

Some had hex display and keypad others where more raw in nature where you

loaded your code into a eprom using a printer port burner. My first eprom

was burnt using a breadboard and dip switched for data and counter chips for

address. Took about four tries before I got it right. I still have a

few of those burners boxed up with my CP/M disassembly on 8" that was used

to reassemble a flavor of ZCPM by friends in a computer club in or near

San Diego. I didn't travel at the time I was "very old style" wheelchair bound.

All my notes where on what went in and out of a section of code.

No op codes where passed only function. Many months of work most would not do

now days. That is why I so glad I found TBS every one here lives for such workings.


Edited by Quazee137 2018-12-07
 
retepsnikrep

Senior Member

Joined: 31/12/2007
Location: United Kingdom
Posts: 134
Posted: 05:03am 06 Dec 2018
Copy link to clipboard 
Print this post

Look on e-bay for a suitable drive and then perhaps this link

http://www.classiccmp.org/dunfield/img/index.htm
Gen1 Honda Insights.
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 08:28am 17 Dec 2018
Copy link to clipboard 
Print this post

Hi Jman,

I got your PCB today. Thanks a lot!

Best regards

Frank
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 11:50pm 19 Dec 2018
Copy link to clipboard 
Print this post

Hi John,
I have received the PCB today, all is pefect
thank you again,

Pierre, from Nimes, south of France

73s de F1FCO
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 02:59am 20 Dec 2018
Copy link to clipboard 
Print this post

  jman said  
I have a few spare PCB's for this project if anybody wants to build one.


Thanks! I received mine.
Micromites and Maximites! - Beginning Maximite
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 06:41pm 20 Dec 2018
Copy link to clipboard 
Print this post

Has anyone got their board up and running yet?
Everything's working: GPIO's, button, LED's
(unfortunately I don't have a RTC yet - it should have come by last saturday at the latest )

...but unfortunately no SD card access!!!

I get always:

IOS: SD error 2 (NOT_READY on MOUNT operation)
IOS: Check SD and press a key to repeat

...I tried four different SD cards - all the same...

Only the BASIC on S220618_IOS-LITE-Z80-MBC2.ino works for me...

Does anyone have an idea?

Frank
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 05:16am 21 Dec 2018
Copy link to clipboard 
Print this post

Hi Frank

Mine works as expected. Does your SD card adapter look like this one



Regards
Jman
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 04:04pm 21 Dec 2018
Copy link to clipboard 
Print this post

Hi Jman,

thanks for your response! It's exactly the same modul! I have checked all connections (from SD card holder to level shifter and from level shifter to ATMEGA32A) and can't find any error...
I received my RTC today - it also works like the rest of the components!

Do you know a test sketch to test the SD card access? Which version of the PetitFS library have you installed?
Which fuses did you use with the ATMEGA? - maybe that's where my problem is?

I tried:
High Byte 0xD6
Low Byte 0xAF
Lock Byte 0xCF

Regards
FrankEdited by Frank N. Furter 2018-12-23
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 05:22pm 21 Dec 2018
Copy link to clipboard 
Print this post

Frank,

Even though you say you've tried four different cards, are they all different types/makes/brands? Worth trying different capacity SDs too as this has often resolved 'strange' issues for me.

Also try running a soldering iron over the SD socket's pins - very common to get a dry joint; or even a cracked joint or missing joint altogether.

Don't forget to run soldering iron over the pins on the side of the socket too!

Do let us know when you solve your mystery!

WW


 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 05:45pm 21 Dec 2018
Copy link to clipboard 
Print this post

Hi WW,

the cards are all of different sizes (4GB to 16GB) and from different manufacturers. They are all FAT32 formatted and work with e.g. Color-Maximite or Duinomite without any problems.

I've measured everything from pin to pin and can't find any errors. The contacts in the card holder look good under the microscope.

It makes no difference whether I insert the card holder at all or whether a card is inserted or not. Possibly the level shifter is defective or I have some adjustment problem with the ATMEGA...

Frank

Update: I compiled the CardInfo sketch and it worket without any problems - I can see all my files on my card! Edited by Frank N. Furter 2018-12-23
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 06:51pm 21 Dec 2018
Copy link to clipboard 
Print this post

Ok, I don't know why, but it works!

I had to go to "pffArduino.h" under
// SD chip select pin
and change the entry to
#define SD_CS_PIN 4

...BUT WHY???

Now I have access to the SD card!!! (I hate Arduino!!!)

Frank

 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:28pm 21 Dec 2018
Copy link to clipboard 
Print this post

The file already has that #define

see https://cdn.hackaday.io/files/1599736844284832/S220718-R190918_IOS-Z80-MBC2.zip

Puzzled now!!

John
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 11:38am 22 Dec 2018
Copy link to clipboard 
Print this post

Hi John,

you are right!
I think it was a user error on my part. I probably mistakenly didn't copy all files into the program directory and didn't notice it because PetitFS was already included as a library...

Now it runs!

Frank
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 12:57pm 22 Dec 2018
Copy link to clipboard 
Print this post

Excellent :)

Merry Xmas!

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 02:29pm 22 Dec 2018
Copy link to clipboard 
Print this post

is there any reason why the atmega32 (32k flash, 2k ram, 1k eeprom, 1x uart, 1x spi) shouldn't be replaced with an atmega1284 (128k flash, 16k ram, 2k eeprom, 2x uart, 3x spi)? i just happen to have a tube of 1284's here.

at the least, using the 1284 should then allow building the arduino application to hold both the BASIC and FORTH interpreters internally as well as the cp/m loader and SD support (ie, no need for two versions: IOS and IOS lite). it may even be possible to extend SD support to the BASIC interpreter - i assume this is currently not available.


cheers,
rob :-)Edited by robert.rozee 2018-12-24
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 08:27pm 22 Dec 2018
Copy link to clipboard 
Print this post

Hi Rob

The 1284 is supported by MightyCore so i dont see any reason why it wont work. Happy to test one for you and or flick you a PCB.
The reason for the lite version is no file system support so Basic is in Rom and no SD card adapter required. With the full version Basic, Forth etc is loaded from disk so going to the 1284 has no adavantage (but you do have them in the draw ). Basic loaded from disk has file system support.

Regards
Jman
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 10:16am 24 Dec 2018
Copy link to clipboard 
Print this post

Hi Jman,

do you think it would be possible to use the second ATMEL UART from Basic? I miss a serial interface to the world...

MERRY CHRISTMAS TO ALL!

Frank
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 02:28am 26 Dec 2018
Copy link to clipboard 
Print this post

  Frank N. Furter said   Hi Jman,

do you think it would be possible to use the second ATMEL UART from Basic? I miss a serial interface to the world...

MERRY CHRISTMAS TO ALL!

Frank


Unfortunately not as those pins are used. But maybe an I2C to serial device like this one SC1+IS750


Regards
Jman




 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025