8051 – Digital Output

Photo of author

By Jackson Taylor

Compiler : MIKRO C PRO

Micro controller : AT89S52

Crystal Frequency : 11.059

Blinking LED on the PORT 1

void main()
{
    while(1)
    {
        p1=0xff;;
        delay_ms(100);
        p1=0;
        delay_ms(100);
    }
}
See also
SOFT-SWITCHING BIDIRECTIONAL DC-DC CONVERTER USING A LOSSLESS ACTIVE SNUBBER -zvs

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works