Predám ATMEGA16-16MHz, LQFP44 púzdro, na paletkách, dostupné množstvo 600ks, odber aj menšie množstvá, s faktúrou alebo bez nej, ihneď k dodaniu, výpredaj výrobného skladu, cena 2.95 EUR, hľadajte nic "maci"
Pochybuji že by někdo tohle stavěl, konstrukci uvádím proto, že mne zaujalo, co všechno se dá pomocí Atmel AVR postavit. Zde je pomocí dvou mcu (ATmega64 +ATmega165) vytvořen RAM disk (s DRAM moduly) připojitelný na SCSI sběrnici.
Pohled na hotový výrobek (na kterém se hrdě vyjímají dva ATmega čipy s krystaly a další bižutérií:
Na původní text v angličtině se můžete podívat zde.
Z důvodu nedostupnosti původního textu byl článek doplněn o kopii originálního článku:
AVR based SCSI RAM disk
Overview
Because I am a SCSI fan, I want to have a SCSI controller to play with ...
The goal of this project was a universal SCSI controller (not a hostadapter) consisting of standard parts. It should be modular, SCSI3 (ANSI X3.301:1997) compliant and SE/HVD/LVD compatible with corresponding PHYs. I have chosen a RAM disk as logical unit to focus development on the SCSI controller not to media access and/or OS drivers (RAM is easier to control than other media and any OS already have drivers for Type 0 "direct access" devices).
The SCSI controller developed with this project I have used for my SCSI PCMCIA drive.
Hardware
At the beginning I cannot get my hands on that nice SN75LVDM977 LVD/SE multimode tranceivers from Texas Instruments so the prototype have a SE PHY using bipolar TTL technology (robust, cheap and available). Four 30Pin DRAM modules I found in my equipment become the media. Two AVR microcontrollers do the work (one for the parallel SCSI interface, the other for the target and logical unit functions). The result was the working prototype in 3.5" floppy drive formfactor shown below:
RAM disk prototype hardware V1.0 patched to V1.0.1 (click to enlarge)
I have designed the PCB with Eagle V4.09 for GNU/Linux from Cadsoft Computer GmbH. Two prototypes of the PCB were manufactured by Beta Layout GmbH for me. Because of some design flaws that firmware development have revealed, I have to patch several things (the red wires in the picture) resulting in Hardware V1.0.1:
Hardware V1.0.1 placeplan (click to enlarge)
The schematic and layout data can be downloaded here:
Note: The files in this archive are created with a legal copy of Eagle V4.09 (some libraries are modified versions of the ones shipped with different Eagle versions)
I claim only the right of being the originator of the schematic and layout, feel free to use it for everything you want. Some libraries are modified versions and originally created by Cadsoft. You can use the modified libraries for any purpose (the terms of Cadsoft apply if I overlooked something and this is not allowed).
Firmware
The "PIA" and "Target" modules requires firmware to work. I have developed the firmware on a GNU/Linux host, it should be possible to build it with the shipped Makefiles on any UNIX host if the following tools are available:
Source code and images for Flash-EPROM and EEPROM are included in the packages.
Note: PIA and target firmware with equal major numbers are compatible.
PIA (Parallel Interface Agent) firmware
The PIA firmware is relatively small (about 3KiByte) and written in assembler. The PIA controls the SCSI bus by implementing the SPI (SCSI Parallel Interface) and provides a SDS (Service Delivery Subsystem) as descibed in the SAM document to the Target module.
Multibyte routines for SCSI data phases increase maximum transfer rate.
Target firmware
The Target firmware is written in C and about 24KiByte in size. With enabled debug system the size increases to about 55KiByte (mainly due to string constants and inlining). The Target module implements a logical unit of Type 0 "direct access" that should comply to the SPC and SBC documents (and the handling of INQUIRY and REQUEST SENSE commands for nonexisting LUNs).
The logical unit uses four standard 30Pin memory modules with asynchronous DRAM as media and map it to logical blocks of 512Byte size.
The target firmare contains a debug system that can print messages via the AVRs USART to a terminal. A level converter like MAX232 must be connected to CON30. The debug messages for different modules can be separately enabled and disabled (the module is printed in brackets).
The Adaptec AHA-2940 device scan issues a SCSI bus reset and executes an INQUIRY command. This is logged like this:
SCSI RAM-disk debug system ==========================
Aspoň takto: http://209.85.135.132/search?q=cache:WCXXI2yeo3MJ:micha.freeshell.org/ramdisk/index.php+disk+site:micha.freeshell.org/ramdisk&cd=1&hl=cs&ct=clnk&gl=cz&client=firefox-a
Musíte být přihlášen, aby jste mohl zaslat komentář. Klikni zde pro přihlášení.
hch 06/09 22:22 "Access denied" je jen texťák, žádné HTML. Ani newline na konci. Bohužel nemám HTTP hlavičky ani request. (Firefox 3.6.6)
mard 06/09 22:11 alexa, naopak ti to projevuje náklonnost :-)
alexa 06/09 22:09 Za večer mi to udělalo celkem 2x, asi mne to nemá rádo či co. No jo, stává se, jsem zvyklá.
alexa 06/09 22:09 Není tam vůbec nic, jen tato dvě slova.
mard 06/09 21:45 Pokouším se opravit vkládání komentářů. Ale teď večer to chodí jako hodinky :-( Kdyby to někomu nešlo, prosím ať se koukne na zdrojový kód toho "Access denied" zda tam k tomu ještě něco v html je napsáno. Já to teď neumím vyvolat a ráno jsem se na to nepodíval :-(
taz 06/09 13:54 nejde mi vložit komentář, napíše to Access denied
mojerena 06/09 11:37 Už mi to funguje, předtím jsem to zkoušel 2x v dopolední čas a nic.... Holt trpaslíci na drátech...
mojerena 06/09 08:00 pro INFO: Nefungují mi komentáře pod vydané články ( poslední příspěvek 04.09.2010 - 12:33 prošel.. ale dnes ráno už ne..)
Do diskuse ANO.
Kosta 05/09 16:54 to Miven - byly prázdniny, recenze zase začnu psát, hned jedna bude tento týden
mard 05/09 15:34 alexa - mě to taky dává Access denied :-( Kosta: nějak blbne přidávání příspěvků do diskuze, to nám to update zase udělalo radost! :-(