Unless you are using a VERY slow clock, the LED on RB0 should blink, but it 
will blink so fast you won't see it.

--McD

----- Original Message ----- 
From: Get Started
To: [email protected]
Sent: Wednesday, June 04, 2008 9:46 AM
Subject: [Sdcc-user] simple program


Is this program correct? This should work? (blinking led)

#include "pic16f84.h"
void main()
{
    TRISB = 0;
    for (;;)
    {
        PORTB = 0;
        PORTB = 1;
    }
}





-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to