sd cards & stuff

This is the right place to discuss on how to implement hardware vsync, adding a VIA or AY chipset, puting multiple roms, or how to design a new flash expansion card.
JamesD
Flight Lieutenant
Posts: 354
Joined: Tue Nov 07, 2006 7:38 am

Post by JamesD » Fri Oct 26, 2007 6:55 am

Ok, I looked it up.
The 8502 in the C128 had some differences... not the 6510.

The port on the 6510 is at located on page zero at location $01 according to the Wiki. That is likely to be a problem.
Also, the most common version only had 6 external pins for that port. The 6510T used in the 1551 disk drive had 8 but you lost the NMI and RDY pins.

JamesD
Flight Lieutenant
Posts: 354
Joined: Tue Nov 07, 2006 7:38 am

Post by JamesD » Sat Oct 27, 2007 1:59 am

You can't use a VIA 6522.
The MMC and SD-Cards operate with SPI mode 0. First I thought I could use the VIA 6522 shift register (SR) to handle the SPI port. As it turned out, however, the VIA SR transfers data out at the first (falling) transition of its clock, so it can be latched by the second (rising) edge by the receiver. This would be SPI mode 3. You could reverse clock, but you cannot make the VIA shift our earlier. So there is no way to use the VIA SR. Instead I now use a bit-banging approach with CLK and MOSI.
http://www.6502.org/users/andre/csa/spi ... tml#mmcsdc

mmu_man
Flying Officer
Posts: 218
Joined: Thu Sep 21, 2006 7:45 pm
Location: 26000 Valence, FRANCE
Contact:

Post by mmu_man » Sat Oct 27, 2007 2:06 am

Yes, and the shift register in the VIA is known to be buggy anyway.

JamesD
Flight Lieutenant
Posts: 354
Joined: Tue Nov 07, 2006 7:38 am

Post by JamesD » Sat Oct 27, 2007 3:58 am


User avatar
carlsson
Pilot Officer
Posts: 127
Joined: Thu Jan 12, 2006 11:26 pm
Location: Västerås, Sweden

Post by carlsson » Thu Nov 01, 2007 1:58 pm

Interesting last link. I tried to build the mmbeeb interface earlier this fall, but I didn't get it to work out, possibly due to the type of cable I used. I may try to build this C64 one too, even if the software support yet seems sketchy.
Anders Carlsson

highwayman
Flying Officer
Posts: 148
Joined: Fri Oct 12, 2007 8:08 pm

Post by highwayman » Sun Nov 11, 2007 3:13 pm

i looked at the mmc2iec some more,

the way to go is to ditch the iec code from the atmel & go simple async serial or 8bit parallel with clock & ack.

then (get ready to screem) add a second via to the oric.
this will give an extra 8bit port too - joystick?

i even considered dma, but that would be a pain because the atmel would need to scan the file header to get the start-address & length.
that's too restrictive just to save a second or so.

so, my plan (when i find my oric).

add a via - either piggybacked or on the rear bus connector.
map it some place - undecided on that.
use one of the pins on it to pull romdis (may as well add that function)
build & customise the c64 project for it.
write some crude load & save routines - preferably relocatable.
:D
Last edited by highwayman on Sun Nov 11, 2007 3:20 pm, edited 1 time in total.

User avatar
Dbug
Site Admin
Posts: 2980
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Sun Nov 11, 2007 3:16 pm

If you need a second VIA, do you think there is a way to get something that would be at the same adress as on the Telestrat ?

The more compatible things are, the better :)

highwayman
Flying Officer
Posts: 148
Joined: Fri Oct 12, 2007 8:08 pm

Post by highwayman » Sun Nov 11, 2007 3:22 pm

well i dont know about the telestrat - i better go read the mess sourcecode : :D

i cant see why it cant be mapped the same, but i'm not sure the bits would be similar because the usage would be different.

let me go look into it. :arrow:

User avatar
Dbug
Site Admin
Posts: 2980
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Sun Nov 11, 2007 3:27 pm

You can read about it here:
http://oric.ifrance.com/oric/programming.html#via2

"The Telestrat has a second VIA interfacing new hardware, and allowing the selection of the memory banks. This VIA is located at address 0320. Pin assignment changed from the original Stratos when crossing the chanel (from England to France): some pins were not connected and the french company decided that a Midi connector could be a nice marketing argument, even with random VIA pins connected behind... Also, Phone Ring detection has been added, which is rather nice (though a complex circuitry has been added for it...) "

I doubt anyone need the non usable midi socket, or ring detection, but having a compatible RS232 and bank switching mechanism could be nice.

highwayman
Flying Officer
Posts: 148
Joined: Fri Oct 12, 2007 8:08 pm

Post by highwayman » Sun Nov 11, 2007 3:55 pm

o.k. it's do-able to a degree,

i can put the cia in the same space,
and put the stick on portb,
but use porta for the drive.
problem, you would lose the second & third button inputs.

it's probably better to map it to one of the usual places, $310 or $320 etc,
but do the bit usage from scratch.

the 8bit port could give 6 inputs(stick + 2 buttons) plus one bit to flip between sticks 1 & 2,
and a final bit for romdis.

or:
1 stick with 7 inputs(stick+3 buttons) and the bit for romdis.

highwayman
Flying Officer
Posts: 148
Joined: Fri Oct 12, 2007 8:08 pm

Post by highwayman » Sun Nov 11, 2007 4:01 pm

Dbug wrote:I doubt anyone need the non usable midi socket, or ring detection, but having a compatible RS232 and bank switching mechanism could be nice.
bank switching is pointless without a bank of roms or a cartridge-port,
as for rs232, that needs a proper serial chip with a baudrate generator - something like a 6850.

nothing stopping you building one, i built one from a kit at maplin once.
it has nothing to do with sd-cards though and i cant see it fitting internally unless your going to ditch the speaker.

i built an alophone speech board from there too, it used the spo256 chip.

User avatar
Dbug
Site Admin
Posts: 2980
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Sun Nov 11, 2007 4:10 pm

Well, mapping a file of the sdcart directly into memory as if it was a cartridge is something that comes to mind ;)

My point is that some people are talking about doing some new floppy disk interface, have bus amplifiers, etc...

Having such a card with the additional VIA, SD card reader, and why not compability with Telestrat cartridges would be cool.

On the C64 they have all these Action/Retro Replay cards with built in assembler and various utilities, having the equivalent on the Oric would be nice.

highwayman
Flying Officer
Posts: 148
Joined: Fri Oct 12, 2007 8:08 pm

Post by highwayman » Mon Nov 12, 2007 4:16 am

commodore machines have better design when it comes to things like freezer-carts.

you could build one easy enough, but how many would sell?
the biggest problem with any project is the cost of the fiberglass - pcb manufacturing isnt cheap :(

btw, a freezer would probably clash with all the floppy interfaces.


is there a schematic to the telestrat?

User avatar
carlsson
Pilot Officer
Posts: 127
Joined: Thu Jan 12, 2006 11:26 pm
Location: Västerås, Sweden

Post by carlsson » Mon Nov 12, 2007 11:12 am

If I understand correctly, the freezer carts on the C64 are possible due to a special memory map inherited from the somewhat obscure gaming console Ulti-MAX Machine.
Anders Carlsson

mmu_man
Flying Officer
Posts: 218
Joined: Thu Sep 21, 2006 7:45 pm
Location: 26000 Valence, FRANCE
Contact:

Post by mmu_man » Mon Nov 12, 2007 2:40 pm

highwayman wrote:it's probably better to map it to one of the usual places, $310 or $320 etc,
but do the bit usage from scratch.
A base principle of compatibility dictates the opposite.
If you use the same bits then map to the same place so it should work unchanged.
But if you want to use it differently the last thing to do is to map to an already used location!

Post Reply