>
> When I type the MOUNT command, I get stuck at the detectinterface
> routine. The response is an INTERFACE? error.
> I also tried to link the detectinterface routine with the same result.
> The interface is not detected, IFTYPE if set to 0.
> Yesterday I installed a 74LS244 for the VIA signals but it didn't work
> as I thought it would work. I thought that if the input is >2V the
> output would be 5V signals but the output was only 3,75V?
If you have a 74HC244, try that, I have had problems before with LS
and <5V levels.
> After the resistors it leaves 2,42V, not a success!
> I do not have a scope to check the signals, maybe I can borrow one
> from a friend.
How long are you lines between the VIA and the resistors ?
Cheers.
Phill.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
MMC supply is 2.7 to 3.6, the signals need to be within a small percentage
of this.
I made an interface featuring a 4050 level converter for one atom which had
a 'weak' VIA. You're still not guaranteed a solid VCC out though.
If your VIA lines are at a level of 3.75v you could just about get away with
feeding that directly to the card, bypassing the resistors.
You definitely need a logic probe for debugging SPI communication failures.
Do you have access to one? 4 channels is the minimum...
>Is there a difference between MMC and SD card for the connection of
>pin 6? In most of the Sd-card interfaces, pin 6 is connected to GND.
Most pinouts show it as N/C in SPI mode.
Sorry to say SPI is hard to get working, but it is possible. I'll help all I
can. Are you bothered about keeping the parts you use contemporary to the
atom? Or would you consider using a PIC to handle the SPI for you??
C
Didn't really find this myself, perhaps I just got lucky :) Mind I do
hear people on AVR freaks complaining about non-working cheapo
programming hardware which uses a bunch of resistors on the paralell
port not working, as this also uses SPI to program the AVR.
> I'll help all I
> can. Are you bothered about keeping the parts you use contemporary to the
> atom? Or would you consider using a PIC to handle the SPI for you??
Well, in some ways PIC could be considdered contempory, as they've
been around for longer than you think, I have a Tandy CoCo speach
sound pack from 1983/4 that uses an early PIC, as did the numeric
keypad for the Spectrum 128......
> I must get it working because my disc interface is not reliable at
> 1,79 mHz any more!!!
> The easy way is to use the VIA so that is why I will try this in the
> first place. Also to see if the speed is acceptable in 1.79 mHz mode.
> When everything is working fine, I will reserve 2 addresses somewhere
> at #BFxx for controlling the SD-card because then I can use my VIA
> again for new projects.
Well if it helps.... I had the VIA driven method working fine at 1MHz,
2MHz and 4MHz on the AtomClone, though to be fair it was all mounted
on the same cuircit board.
>
> Phil,
>
> I have a question to you as 'the hardware guru': how about limiting
> the voltage of the VIA signals to 3,3V with a zener diode?
> So replace the 3k3 resistor with a 1N5333 zener diode for PB5,6,7 in
> the schematic http://bbmmc.googlegroups.com/web/SDROM+interface.JPG.
I've not done this with any of the SD interfaces, but I do remember
doing something similar with USB signals (which are also 3.3V) when
interfacing to a %V AVR microcontroler, so my gut feeling is that it
should work.
You might want to put the Zenners or resistors close to the MMC/SD as
this means for the majority of the signal run you will have 5V.
It can be investigated by downloading the software for my analyser. It's a
Windows/.net app, sorry. There is a Linux version of the software but it's
less than alpha right now.
http://www.saleae.com/downloads/logic/Logic%20Setup%20Beta.exe
It's fairly easy to drive. Grab & drag to scroll. You can drill down into
the data and look at timings/values - left click to drill, right click to
back out. The Options menu gives the ability to turn the protocol analysis
on and off (options->analyser 1->spi/off) which you might choose to do if
the numbers get in the way :) The analysis only shows above a certain zoom.
C
AIEEE!!
> My Atom survived the burnout and now I can go on testing my routines.
Phew ;¬)
The smoke is a trick I usually associate with BBC micros :)