Workaround CH376 Reset Behavior

I am encountering some CH376 chips that go haywire after a
reset command.  They stop responding for a very long time.
I am seeing this only on "LC Tech" adapters and only on Z80
systems (not Z180).  No idea what is going on, so I am
giving up for now and removing the reset.
This commit is contained in:
Wayne Warthen
2023-12-18 17:35:57 -08:00
parent e9b9782ede
commit c7bee46f60
3 changed files with 10 additions and 3 deletions

View File

@@ -155,7 +155,14 @@ CH_INIT2:
XOR A ; UNKNOWN MODE
LD (CH_MODE),A ; SAVE IT
;CALL CH_FLUSH ; FLUSH DEVICE OUTPUT QUEUE
CALL CH_RESET ; FULL CH37X RESET
;
; I AM ENCOUNTERING SOME CH376 CHIPS THAT GO HAYWIRE AFTER A
; RESET COMMAND. THEY STOP RESPONDING FOR A VERY LONG TIME.
; I AM SEEING THIS ONLY ON "LC TECH" ADAPTERS AND ONLY ON Z80
; SYSTEMS (NOT Z180). NO IDEA WHAT IS GOING ON, SO I AM
; GIVING UP FOR NOW AND REMOVING THE RESET.
;CALL CH_RESET ; FULL CH37X RESET
;
CALL CH_DETECT ; DETECT CHIP PRESENCE
JR Z,CH_INIT3 ; GO AHEAD IF CHIP FOUND
LD DE,CH_STR_NOHW ; NOT PRESENT