SMC floppy controller motor not turning on

183 views
Skip to first unread message

Danny Geyssens

unread,
Jan 13, 2023, 2:54:41 AM1/13/23
to RC2014-Z80
Hi,

I recentrly build a RC2014 zed and everything is working perfectly. I also build the floppy controller from M. Baker but the SMC version. After adding floppy support to the ROMWBW the floppy drives are detected as drive unit 2 and 3:

RomWBW HBIOS v3.0.1, 2023-01-12

RC2014 Z80 @ 7.372MHz
0 MEM W/S, 1 I/O W/S, INT MODE 1
512KB ROM, 512KB RAM

SIO0: IO=0x80 SIO MODE=115200,8,N,1
SIO1: IO=0x82 SIO MODE=115200,8,N,1
DSRTC: MODE=STD IO=0xC0 Thu 2022-01-13 08:43:06 CHARGE=OFF
MD: UNITS=2 ROMDISK=384KB RAMDISK=384KB
FD: IO=0x50 UNITS=2
IDE: IO=0x10 MODE=RC
IDE0: 8-BIT LBA BLOCKS=0x0003D400 SIZE=122MB
IDE1: NO MEDIA
PPIDE: IO=0x20 PPI NOT PRESENT

Unit        Device      Type              Capacity/Mode
----------  ----------  ----------------  --------------------
Char 0      SIO0:       RS-232            115200,8,N,1
Char 1      SIO1:       RS-232            115200,8,N,1
Disk 0      MD1:        RAM Disk          384KB,LBA
Disk 1      MD0:        ROM Disk          384KB,LBA
Disk 2      FD0:        Floppy Disk       3.5",DS/HD,CHS
Disk 3      FD1:        Floppy Disk       3.5",DS/HD,CHS
Disk 4      IDE0:       CompactFlash      122MB,LBA
Disk 5      IDE1:       Hard Disk         --


RC2014 Boot Loader

ROM: (M)onitor (C)P/M (Z)-System (F)orth (B)ASIC (T)-BASIC (P)LAY (U)SER ROM
Disk: (0)MD1 (1)MD0 (2)FD0 (3)FD1 (4)IDE0 (5)IDE1

After booting in ZSDOS the floppy drives are mapped to drive C: and D: but when I try the FDU utility the floppy drive motor is not turning on. I hear the head moving when I try to read a track but not the motor and I get the following error:

READ: 46 00 12 00 01 02 01 2A FF --> <EMPTY> [EXEC TIMEOUT]. 

I tried everything within my knowledge to find the cause of this problem without any luck and I would really appreciate if somebody could point me in the right direction.

Danny

Sergey Kiselev

unread,
Jan 13, 2023, 11:04:50 AM1/13/23
to RC2014-Z80
I assume SMC is the FDC9266 based type...

There are a few things to check:
- Did you change the FDMODE definition in cfg_rcz80.asm to: "FDMODE        .EQU     FDMODE_RCSMC" and rebuilt the RomWBW image?
- Make sure that your floppy drives are configured for "DS=1" (standard IBM PC configuration)
- Make sure that you are using a PC-style floppy cable with "twisted" wires 10-16, and your disk 0 is on the other side of the "twist" from the controller. If you have two floppy drives, then drive 0 (C: in case of RomWBW), will be on the end of the cable, and drive 1 (D: in RomWBW) will be on the middle of the cable before the "twist"
- The FDC9266 itself can be bad... I thought I've mostly exhausted the world's supply of these chips a decade ago with  ECB Disk I/O V3 and Zeta SBC :)
- The 74HC139 (IC1), 74HC273 (IC4), or 74HCT04 (IC5) can be bad

Thanks,
Sergey

Wayne Warthen

unread,
Jan 13, 2023, 5:13:39 PM1/13/23
to RC2014-Z80
Since you are testing with the FDU utility, it actually won't matter what your RomWBW configuration is.  FDU interacts directly with the hardware.

Make sure you are picking option 'G' when starting FDU.  Could you post a log of your entire FDU session?

What are your jumper settings?

-Wayne

sonietje

unread,
Jan 14, 2023, 4:45:05 AM1/14/23
to RC2014-Z80
Hi Wayne,

Thanks, good to know that the FDU utility is independent from the RomWBW configuration.

ZSDOS v1.1, 54.0K TPA

B>fdu

Floppy Disk Utility (FDU) v5.4, 05-jAN-2020 [HBIOS]
Copyright (C) 2020, Wayne Warthen, GNU GPL v3

SELECT FLOPPY DISK CONTROLLER:
  (A) Disk IO ECB Board
  (B) Disk IO 3 ECB Board
  (C) Zeta SBC Onboard FDC
  (D) Zeta 2 SBC Onboard FDC
  (E) Dual IDE ECB Board
  (F) N8 Onboard FDC
  (G) RC2014 SMC (SMB)
  (H) RC2014 WDC (SMB)
  (I) SmallZ80 Expansion
  (J) Dyno-Card FDC, D1030
  (X) Exit
=== OPTION ===> RC-SMC

===== RC-SMC ==========<< FDU MAIN MENU >>======================
(S)ETUP: UNIT=00  MEDIA=720KB    MODE=POLL        TRACE=00
----------------------------------------------------------------
(R)EAD          (W)RITE         (F)ORMAT        (V)ERIFY
(I)NIT BUFFER   (D)UMP BUFFER   FDC (C)MDS      E(X)IT
=== OPTION ===> READ (S)ECTOR, (T)RACK, (D)ISK, (R)ANDOM ===> TRACK
ENTER TRACK [00-4F] (00): 10
ENTER HEAD [00-01] (00):

(floppy drive led goes on and I hear the head moving but no motor)

RESET DRIVE...
PROGRESS: TRACK=10 HEAD=00 SECTOR=01
READ: 46 00 10 00 01 02 01 2A FF --> <EMPTY> [EXEC TIMEOUT]
CONTINUE? (A)BORT, (R)ETRY, (I)GNORE ===> ABORT

My jumper settings: (see also picture)
IMG_5171.jpg
JP1 and JP2 short
JP3 2-3 short
JP4 2-3 short
11-12 short

Thanks;

Danny

Op vrijdag 13 januari 2023 om 23:13:39 UTC+1 schreef wwar...@gmail.com:

sonietje

unread,
Jan 14, 2023, 5:12:48 AM1/14/23
to RC2014-Z80
Hi Sergey,

Yes it is the FDC9266 based type. I changed the FDMODE and rebuilt the RomWBW image.
I tried already 2 different types of floppy drives that work on my other retrobrew computers with the twisted cable.
I think that the problem will be a faulty IC. I'll try some spare IC's this weekend.
Thanks;

Danny

Op vrijdag 13 januari 2023 om 17:04:50 UTC+1 schreef skis...@gmail.com:

Wayne Warthen

unread,
Jan 14, 2023, 10:35:04 AM1/14/23
to RC2014-Z80
Thanks for posting the log.  I don't see anything amiss.  I also checked that my jumper settings match yours.  I have not tried the SMC board in a long time and there have been some changes to FDU since the last time I tried it.  I will test my SMC module with FDU, but it will be much later today due to some other obligations.

For what it is worth, the error you are getting occurs when the FDC does not respond to a command in a reasonable time.  One reason this can occur is if the FDC is not receiving the index hole signal.

Thanks,

Wayne

Sergey Kiselev

unread,
Jan 14, 2023, 11:01:17 AM1/14/23
to rc201...@googlegroups.com
Can you please make sure that jumper in SV1 (bigger jumper block) is actually set to 11-12 position. On your photo it is in 13-14 position 

--
You received this message because you are subscribed to a topic in the Google Groups "RC2014-Z80" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rc2014-z80/T_W_NHsYznM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rc2014-z80+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/a3240f37-2850-4670-934e-13baf171fe09n%40googlegroups.com.

Wayne Warthen

unread,
Jan 14, 2023, 8:47:02 PM1/14/23
to RC2014-Z80
On Saturday, January 14, 2023 at 7:35:04 AM UTC-8 Wayne Warthen wrote:
I will test my SMC module with FDU, but it will be much later today due to some other obligations.

Just following up to let you know that I tested my SMC Floppy Module with FDU and it is working fine.  So, I'm pretty sure FDU is not a problem.

Thanks,

Wayne 

sonietje

unread,
Jan 15, 2023, 5:54:03 AM1/15/23
to RC2014-Z80
I checked the large jumper block and the jumper is on 11-12 (see picture)
IMG_5180.jpg

Op zaterdag 14 januari 2023 om 17:01:17 UTC+1 schreef skis...@gmail.com:

sonietje

unread,
Jan 15, 2023, 6:00:05 AM1/15/23
to RC2014-Z80
Thanks for checking this for me. Now I'm sure the problem is hardware related. 
I switched some of the IC's but I don't have a spare FDC9266.
I'm going to order the parts for the WD37C65 version and hopefully I have more luck with that one.

Thanks,

Danny

Op zondag 15 januari 2023 om 02:47:02 UTC+1 schreef wwar...@gmail.com:

Wayne Warthen

unread,
Jan 15, 2023, 4:11:24 PM1/15/23
to RC2014-Z80
The 37C65 tends to work better.

You may already know this, but in addition to the Scott Baker version of the 37C65, Sergey has designed the "Flock" which is quite a bit cleaner than Scott's.  See https://github.com/skiselev/flock for more information on Flock if desired.  Sergey's version is completely compatible with RomWBW and FDU.

-Wayne

Reply all
Reply to author
Forward
0 new messages