wvmarle:
Do fix your layout - ctrl-T in the IDE. Makes the code much more readable.One issue: you didn't make coinPulseCount volatile.
Then: does the program work? If so, you're done (well, except the volatile issue).
If not, where does it go wrong?
How do you know all pulses have been received? What if the user pushes a few coins into the machine in quick succession?
okay i made it volatile and I'm able to compile the program but i havent uploaded it yet and tried.
and there is slow fast toggle on the coin acceptor.