Welcome, Guest. Please login or register.

Author Topic: Supply of Catweasel alike devices?  (Read 4931 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: Supply of Catweasel alike devices?
« Reply #14 from previous page: October 06, 2013, 09:51:59 PM »
Quote from: VuData;749454
Hi Jim,

Can you connect a 3.5" and 5.25" at the same time (assuming I still find a suitable ribbon cable after all these years)?


Yes, and you can even use a 3.5"/5.25" combo drive.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Supply of Catweasel alike devices?
« Reply #15 on: October 07, 2013, 03:49:30 PM »
Guess drive select A/B and motor enable A/B is implemented then.
 

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: Supply of Catweasel alike devices?
« Reply #16 on: October 08, 2013, 06:52:39 AM »
Yes, along with step, step dir, read track, write track, decode track, etc.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Supply of Catweasel alike devices?
« Reply #17 on: October 08, 2013, 07:40:42 AM »
Otoh, that functionality can be empiricaly deduced because otherwise it wouldn't work at all .. ;)

But you can get away with wiring select and motor signals to a set level.
 

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: Supply of Catweasel alike devices?
« Reply #18 on: October 08, 2013, 05:57:22 PM »
Here is the list of packet IDs.  I can easily add anything to this list.  Currently, there is only 4.3% of the code space being used in the PIC.

Code: [Select]
CMD_SELA    = 0x80                    ; command - select drive A
CMD_SELB    = 0x81                    ; command - select drive B
CMD_DSELA    = 0x82                    ; command - deselect drive A
CMD_DSELB    = 0x83                    ; command - deselect drive B
CMD_MTRAON    = 0x84                    ; command - turn motor A on
CMD_MTRBON    = 0x85                    ; command - turn motor B on
CMD_MTRAOFF    = 0x86                    ; command - turn motor A off
CMD_MTRBOFF    = 0x87                    ; command - turn motor B off
CMD_SEEK0    = 0x88                    ; command - seek track 0
CMD_STEPTO    = 0x89                    ; command - step to specified track
CMD_STEPIN    = 0x8A                    ; command - step towards inner (higher) track
CMD_STEPOUT    = 0x8B                    ; command - step towards outer (lower) track
CMD_SELDENS    = 0x8C                    ; command - select density
CMD_SIDE    = 0x8D                    ; command - set side
CMD_STATUS    = 0x8E                    ; command - get drive status

CMD_GETPARAMS    = 0x90                    ; command - get parameters
CMD_SETPARAMS    = 0x91                    ; command - set parameters
CMD_RAMTEST    = 0x92                    ; command - do RAM test

CMD_READFLUX    = 0xA0                    ; command - read flux level
CMD_GETREADINFO    = 0xA1                    ; command - get info from last flux read
CMD_WRITEFLUX    = 0xA2                    ; command - write flux level
CMD_READMFM    = 0xA3                    ; command - read MFM level
CMD_WRITEMFM    = 0xA4                    ; command - write MFM level
CMD_READGCR    = 0xA5                    ; command - read GCR level
CMD_WRITEGCR    = 0xA6                    ; command - write GCR level
CMD_SENDRAM_USB = 0xA7                    ; command - send data from RAM to USB
CMD_LOADRAM_USB    = 0xA8                    ; command - get data from USB and store in RAM
CMD_SENDRAM_232    = 0xA9                    ; command - send data from RAM to the serial port
CMD_LOADRAM_232    = 0xAA                    ; command - get data from serial port and store in RAM

CMD_DCODEGCRCBM    = 0xB0                    ; command - decode buffer to CBM GCR
CMD_DCODESECCBM    = 0xB1                    ; command - decode CBM GCR to sectors
CMD_CBMTOD64    = 0xB2                    ; command - read CBM disk and decode to D64 format
CMD_READCBMDISK = 0xB3                    ; command - read CBM disk, decode sectors and store in RAM
CMD_WRITECBMDISK = 0xB4                    ; command - write CBM disk, encoded from sector data stored in RAM

CMD_OPENFILE    = 0xC0                    ; command - open FAT16/32 file
CMD_CLOSEFILE    = 0xC1                    ; command - close FAT16/32 file
CMD_READFILE    = 0xC2                    ; command - read from open file
CMD_WRITEFILE    = 0xC3                    ; command - write to open file
CMD_SEEKFILE    = 0xC4                    ; command - seek to position in file
CMD_DELETEFILE    = 0xC5                    ; command - delete file
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Supply of Catweasel alike devices?
« Reply #19 on: October 08, 2013, 07:33:24 PM »
Quote from: JimDrew
CMD_READFLUX    = 0xA0                    ; command - read flux level
CMD_GETREADINFO    = 0xA1                    ; command - get info from last flux read
CMD_WRITEFLUX    = 0xA2                    ; command - write flux level

What does these commands do really?

Esp since flux levels (can) change every 1/500000 s.
 

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: Supply of Catweasel alike devices?
« Reply #20 on: October 10, 2013, 06:44:57 AM »
ReadFlux reads flux transitions and stores them in the internal RAM, or streams it via USB.  GetFluxInfo gets information about the flux data read, including the number of flux transitions and the index pulse duration.  WriteFlux writes flux transitions either from the internal RAM or streamed via USB.  Mos everything is geared towards using the internal 512K RAM.