PicoMite VGA


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5994
Posted: 08:49am 27 Sep 2022      

  Volhout said  @OA47

Looks like there is no support for OC.
If you want to create your own OC pins, then the simplest way is to add a FET to that pin.
A good example is in the level shifters that are used to convert 3.3V to 5V.
The 5V side is open drain. The 3.3V side can connect to a push-pull IO.

The circuits used for PS2 keyboard connector will do the task.

Regards,

Volhout


Correction: the diode inside the FET will still drive the 5V side high.
Look at the release candidates thread. The solution is to replace


'init pin
setpin x,dout,oc

'set high micromite
pin(x)=1

'set pin low micromite
pin(x)=0


With picomite code


'init pin
setpin x,din

'set high picomite
setpin x,din

'set pin low picomite
setpin x,dout
pin(x)=0

Edited 2022-09-27 18:50 by Volhout