The code objective was to turn on a LED whenever the counter increments itself by using the trigger PORTB.F2
On my assumption it will turn ON PORTB.F2 at a very fast time interval so I wrote this code just to see if it will works but unfortunately it doesn't
Am I missing something important?
Here's the document of the multi-coinslot that I used.
**broken link removed**
Here's the part list
- PIC18F4620
- Multi-Coin Slot Model: 623
- Crystal Oscillator 20MGHz
I put the counter pin of the multicoinslot to RX pin of the MCU...
I managed to get a blinking led result. F0 = 1 F1 = 1 F0 and F1 = 0, but I haven't inserted a coin yet. Jeez! Im so confused..
Thanks for helping us out taroot... I really appreciate your help... but unfortunately I can't try that solution right now... I'm working on a different project this week... I'll let you know if the solution works when I'm done Thanks a lot dude.