Shop OBEX P1 Docs P2 Docs Learn Events
Propeller as EEPROM emulator and Peripheral Chip for z80? - Page 3 — Parallax Forums

Propeller as EEPROM emulator and Peripheral Chip for z80?

13»

Comments

  • kwinnkwinn Posts: 8,697
    edited 2013-08-29 00:25
    @Shael

    Impressive project you have there. Thanks for posting the additional information. I have been adding comments to your code to help me understand what you are doing, and while I found where you disabled the Z80 RD/WT (# 3 on your description) I could not find anywhere it was re-enabled (#11). Does it need to be enabled (I'm pretty sure it does), and where in the code is that done?
  • ShaelShael Posts: 17
    edited 2013-08-29 04:34
    Hi Kwinn;

    Yes the RD/WT buffer must be enabled to allow the Z80 to operate. The Z80 RD/WT buffer is enabled in the "Z80_Reset" function found in the "Z80Cntrl.spin" file.

    mov OUTA, #0
    mov DIRA, BaseDirRegMsk
    ' CPU reset is active, clock is low, and the RD/WT line buffer is enabled.
  • kwinnkwinn Posts: 8,697
    edited 2013-08-29 22:36
    Thanks for posting that. Could not find it in the file I was adding comments to, but it was there in the original download. Four lines were missing so I guess I must have inadvertently erased them at some point.
Sign In or Register to comment.