Code for ZX-328n Working as slave of a PC with VB6
Posted: 11 October 2009, 13:18 PM
I am new with Z Processors and some idea programming in VB6.
I need to use a Zn-128 as interface to control a machine.
PortB will be used as output (Reles, light, etc...)
PortD will be used as Digital Input as Buttons, etc...
PortC will be used as A/D Reader for Temperature, Humidity, etc..
The Main program will be made by VB6, I will use the power of PC to store values, display, control, etc..
And, This is my question:
How Can I Get the values of PortC and PortD into VB6 variables?
How I can write values into PortB from VB6 variable?
Maybe you will consider these questions very child, but I have never work with RS232.
Thanks for your attention.
I need to use a Zn-128 as interface to control a machine.
PortB will be used as output (Reles, light, etc...)
PortD will be used as Digital Input as Buttons, etc...
PortC will be used as A/D Reader for Temperature, Humidity, etc..
The Main program will be made by VB6, I will use the power of PC to store values, display, control, etc..
And, This is my question:
How Can I Get the values of PortC and PortD into VB6 variables?
How I can write values into PortB from VB6 variable?
Maybe you will consider these questions very child, but I have never work with RS232.
Thanks for your attention.