Hi, I would like to ask again for your help. The problem is the pattern malfunctions. Even when the push button is not yet pushed, the pattern changes alternately from portd=0x0f to 0xf0. When I push the button, the pattern stops even if the pattern is 0x0f or it is 0xf0 it really stops. Can you help me? I'm using pic16f877a
My program should be: When push button is unpressed 2nd pattern - 0xF0 only should show. When push button is pressed 1st pattern - 0x0F only should show. They should be steady. I don't know if I'm having a problem on my C syntax or something else.