??? 05/24/04 12:04 Read: times |
#71044 - RE: Application Responding to: ???'s previous message |
"My application require lots of things to be done at the same time, one port is to for taking input other to sent data to displaying on 7-segment , also the other port is activating 8 different relays. Each input is to be treated separately.
Port 1 each pin wait for input POrt 2 sends data to 7-segment etc ..the describtion is too long but objective is to do lots of things at the same time treating each input bit action separately as done in the state machine example on this web" From your description it sounds as though you need to read some input on one port, control some outputs based on the state of the inputs and write something to an LED display. while(1) { ReadInput(); //Some logic WriteOutput(); WriteLED(); } Please explain why your problem is more complicated than that and maybe we will be able to help. |