qatar.engineer
Junior Member level 1
pic18f4520 programming
Hi
i program pic18f4520 to light a led but it did not work so can any one see my program and help me if there is any wrong with it.
#include <p18cxxx.h>
#include <delays.h>
#pragma config WDT = OFF
//void delay_ms(long t);
void main (void)
{
TRISB = 0;
/* Reset the LEDs */
PORTB = 0;
/* Light the LEDs */
PORTB = 0x5A;
Delay1KTCYx(15);
while (1)
;
}
is there any website for circuit because i think my circuit is wrong
Hi
i program pic18f4520 to light a led but it did not work so can any one see my program and help me if there is any wrong with it.
#include <p18cxxx.h>
#include <delays.h>
#pragma config WDT = OFF
//void delay_ms(long t);
void main (void)
{
TRISB = 0;
/* Reset the LEDs */
PORTB = 0;
/* Light the LEDs */
PORTB = 0x5A;
Delay1KTCYx(15);
while (1)
;
}
is there any website for circuit because i think my circuit is wrong