Files
SyncHome/trunk/MPLABXProjects/18F4580.X/main_18F4580.c
paolo.iocco e51d00d234
2023-03-09 10:05:56 +00:00

40 lines
629 B
C

/*
* File: main_18F4580.c
* Author: q242695
*
* Created on 19. Juni 2013, 12:31
*/
#include <stdio.h>
#include <stdlib.h>
#include <xc.h>
#ifndef _XTAL_FREQ
#define _XTAL_FREQ 32000000
#endif
#define LED PORTBbits.RB3
#pragma config OSC = HS, WDT = OFF, PWRT = OFF, DEBUG = ON, PBADEN = OFF, LVP= OFF
/*
*
*/
int main(int argc, char** argv) {
char count;
TRISB=0x00;
PORTB=0x00;
while(1) // Run Forever
{
LED=1;
for (count=0; count<25; count++)
__delay_ms(20);
LED=0;
for (count=0; count<25; count++)
__delay_ms(20);
}
return (EXIT_SUCCESS);
}