I have a vending machine that takes 6 diferent types of coin.

I can set my coin acceptor to give 1 to 50 pulses to my pic for any coin.

lets say I asign coin1 to give 1 pulse, coin2 gives 2 pulses, coin3 gives 3 pulses... and so on to coin 6.

thats fine, i can count the pulses to determine which coin was inserted and give the apropriate credit :-).

BUT, if someone enters coins fast the pulses have no gap between coins, so, if I insert coin 1 & coin 3 fast I get 3 pulses with no gap between.

So, how do I set the pulses so that I can decide which 2 coins were inserted from the 6 available coins ?