i face a problem, im doing a programing that program into the PIC16F684. im doing a digital clock, now i only able to show the second value that display 1 to 60, i dont know how to do the minute value. im using while loop.
while(1 == 1)
{
if (0 == DisplayLED)
{
RA5 = LEDDigit[DisplayValue %10] >> 6;
PORTC = LEDDigit[DisplayValue %10] & 0x03F;
}
else
{
RA5 = LEDDigit[(DisplayValue /10) & 0x0F] >> 6;
PORTC = LEDDigit[(DisplayValue /10) & 0x0F] & 0x03F;
}
TRISA = TRISA ^ 0b011111;
PORTA = PORTA & 0b111100;
DisplayLED = DisplayLED ^ 1; // Other Digit Next
NOP();
for (i = 0; i < 660; i++);
NOP();
j = j + 1;
if (100 == j)
{
DisplayValue++;
j = 0;
}
}
how to add the minutes value? as well hour and day...thank... S.O.S.....