I bought the June 09 issue of Elektor magazine with part 2 of Embedding C programming.
I downloaded MPLAB but i can not get it to function properly
I tried making a new project then added a file called main.c to the project and inset this code:
Can anyone help me on this subject?
EDIT: BTW i managed to set it to PIC16F627
I downloaded MPLAB but i can not get it to function properly
I tried making a new project then added a file called main.c to the project and inset this code:
Rich (BB code):
void delay(unsigned int);
void set_7segment(int, int );
unsigned int t;
void main(void)
{
delay(100);
set_7segment(3,1)
...
}
void delay(unsigned int k)
{
int i;
...
}
void set_7segment(int nr, int dp)
{
...
}
if ((P1IN & BIT5)== 0)
{
do
{
P1OUT |= BIT1;
delay(3);
P1OUT &= BIT1
delay(3);
}
while(P1IN & BIT6);
EDIT: BTW i managed to set it to PIC16F627