Dead Hackers Society
Other BBSes »
 
 

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

CT60 and related things BBS
 
Re: Mass storage for EtherNat
Posted by: ggn Mar,02.2010-20:05 

Hi David,

Actually the interface with the NetUSBee is quite straightforward (IMO!). Here's a small quote from the manual:


USB Data Reads
==============

Data Reads from USB are done at base address 0xFA8000 (activating a read cycle) as a 16bit word. Data appears on D8-15 as most significant byte, and D0-7 as least significant byte. Notice how A15 has to be set to 1 to make it a USB cycle.


USB Data Writes
===============

Data reads at base address 0xFB8000 actually cause data to be written. As the write interface is only 8 bits wide, the 16bits of data must be passed through this "8 bit window". The Least Signifant Byte is transferred first by left shifting data once and added to 0xFA8000. This is followed by the Most significant byte, transferred by left shifting data once and then added to 0xFB8000. On this last cycle is where the transfer is actually done. Notice how A15 has to be set to 1 to make it a USB cycle.



USB Command Writes
===========================

Data reads at base address 0xFBC000 actually cause a register/command to be written. The 8bit byte is transferred by left shifting data once and added to 0xFBC000. Notice how A15 has to be set to 1 to make it a USB cycle, and A14 set to make it a register/command access.


USB Driver Please note:
A small delay in the region of 300ns should be given between a register/command and data access on USB. This can simply be a couple of NOPs.


On the USB, a complete register access comprises of a command phase then a data phase.



I tried to follow the sources, but since I'm not that good with C, I fear I can't do anything to them :)







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Mass storage for EtherNat David Gálvez Mar,02.2010-11:06
  Re: Mass storage for EtherNat MacFalcon Mar,02.2010-14:38
  Re: Mass storage for EtherNat sqward Mar,02.2010-15:17
    Re: Mass storage for EtherNat ggn Mar,02.2010-16:45
      Re: Mass storage for EtherNat David Gálvez Mar,02.2010-17:56
        Re: Mass storage for EtherNat ggn Mar,02.2010-20:05
    Re: Mass storage for EtherNat David Gálvez Mar,02.2010-17:46
  Re: Mass storage for EtherNat PeP Mar,02.2010-16:45
  Re: Mass storage for EtherNat hencox Mar,02.2010-16:48
    Re: Mass storage for EtherNat David Gálvez Mar,02.2010-18:05
  Re: Mass storage for EtherNat Instream Mar,02.2010-17:24


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson