Hi,
I am trying to make some peripheral using a bluepill (STM32F103) for a computer on which the adress and data bus (but not the R/W nor clock signals) are available on the cartridge port.
The 6502 is a MOS one, according to this
datasheet it used "N channel, silicone gate, depletion load technology".
I want to avoid problems in case a bug in my code is causing conflict on the databus where both the STM32 and the 6502 are making write access.
If I understood correctly, the 6502 can draw a lot of current when pulling the signal to LOW, but won't source much to try going to HIGH. Then I deduce that if I only configure the GPIO linked to the databus to either input or open drain and not push-pull, even if a bus conflict happens I would just AND the values on the databus (if either the 6502 or the STM32 tries to output a zero, zero it will be).
Is that a safe assumption ? Will I need to add some (high value) pull up resistors if I configure the STM32 in open drain instead of push-pull ?
Could I also :
- configure pins as open drain
- activate the pull-ups for input mode on all pins
- write 0 to the gpio port (set all output as 0s)
- only configure as output the pins I want to write to 0, letting the other as input and benefit of the STM32's pull ups resistors ?
Thanks,
j.