i didn't have anything on computer so i wrote this up for you as an example
when using rs232 uart the slave tx lines will short is more than one is hooked to same chip pin, what i do is use a multiplexer chip, like this, it takes two uart tx lines and outputs one signal
, if you rig this up to a 16f1829 you have 10 port interrupts so can mux 10 tx lines into one, the timing from the master to get the signals is critical to keep everything in synch
here is the one's i drew up this morning, this is the master
this is the slave
the way this works is, its a simple draw up, the master chip is just a rc5 remote control acting like a keypad, when i input a number i can press a button to send it, when i do send it the keypad number returns back to zero, there is another key that also returns the value to zero incase when inputting data a digit gets missed, when you select to send the data thats on the screen it sends the number 0-511 out on the 9 bit uart tx
the slave chip is programmed only to respond to the address of 501!!!
what this does is it controls 5 pwms on the slave chip
the addresses are 501 to 511 so can have 10 chips on uart line,
its programmed to where it wont do anything unless a number 501-511 is received
when it is received it is locked on that slave chip and you won't have to enter the address again unless you want to talk to another slave, you can send a pwm address 300-304 which controls pwm#s 0-4
after that is sent you just send number 0-100 to control the dutycyle on the selected pwm module
you can also get the value from any of the pwms 0-4 by sending 400-404, it will return the dutycyle for that pwm on the screen
notice when in the pwm mode you don't have to keep sending the command for that pwm or for the chip address because its designed to be locked in until you changed it
you can see that its really easy to create a touch screen program that can control many chips with all kinds of functionallity with this approch
can make it when you ask for a certain pwm% you can increment it from there but i didn't put that functionallity into it yet on this one
did this help you out?