Good afternoon everyone.
last week I asked for help getting a counter to display to a LCD.
This week I need more help, also with a counter but for different reasons.
I am building a module that mount on top of our coffee maker.
one of those ones that takes PODS or CAPSULES.
The bin for holding the used capsules can only hold 18 or 19 capsules.
with 19 I have trouble getting it out.
I bought an 8pin development board and it came with a PIC12F675 preloaded with a simple flasher that flashed the 2 LEDs at the same time. Could have made the demo a little more interesting.
The board has
LED1 on GP0
LED2 on GP1
KEY1 on GP2
RESET on GP3
ADC on GP4
KEY2 on Gp5
I have done my program using the same IO configurations.
My code is attached below.
The problem is that LED2 is on all of the time.
If I press RESET LED1 comes on for a brief moment then goes out.
The counter has no effect, it should count to 6 then turn on the led.
I thought this might be the 200ms delay I have to test the unit, but when I change the delay to 2000ms I.e. 2 sec
LED1 stays on for about 7 seconds. "by counting to myself."
I REM'd out the entire counter section which left LED1 & Led2 both set to a low level,
however It Didn't Work.
Both LEDS are on all the time and when I press RESET Both of the LEDs dim to aprox 1/2 brightness until I release the reset.
I think the problem could be the way I have named the pins.
Any help Would be appreciated.
my code has only one file. COFFEE MAIN.c