I can't even get this PIC16F676 to flash a laser on and off
I can manage it with a PIC16F505, but i'm totally stumped here, I cant even get it to output a signal at all
Any glaring errors in my code?
The code builds and programs ok so I'm not sure whats going off :S
I can manage it with a PIC16F505, but i'm totally stumped here, I cant even get it to output a signal at all
Any glaring errors in my code?
Code:
#include <xc.h>
#define _XTAL_FREQ 4000000
/*********CONFIG**********/
#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _INTRC_OSC_NOCLKOUT
/******** GLOBAL VARIABLES ******/
/******* MAIN PROGRAM *******/
void main ()
{
TRISC = 0b00000000;
for (;;)
{
PORTC = 0b00000001;
__delay_ms(500);
PORTC = 0b00000000;
__delay_ms(500);
}
}
The code builds and programs ok so I'm not sure whats going off :S