gnupic: Problems with PIC16F628A
Subject:
Problems with PIC16F628A
From:
Eduardo Namba ####@####.####
Date:
13 Dec 2005 12:58:18 +0000
Message-Id: <3034fe010512130458x247a21c6n@mail.gmail.com>
Hi,
What am I doing wrong with this code ?!
#include <16F628A.h>
#fuses INTRC,NOWDT,NOPROTECT,NOLVP,NOWDT,NOMCLR
#use delay(clock=4000000)
void main(){
SET_TRIS_A(0x00);
SET_TRIS_B(0x00);
output_high(PIN_B0);
while (true){
output_low(PIN_A0);
output_low(PIN_A1);
output_low(PIN_A2);
output_low(PIN_A3);
output_low(PIN_B6);
output_low(PIN_B7);
output_low(PIN_B5);
output_low(PIN_A7);
delay_ms(1);
output_high(PIN_A0);
output_high(PIN_A1);
output_high(PIN_A2);
output_high(PIN_A3);
output_high(PIN_B5);
output_high(PIN_B7);
output_high(PIN_B6);
output_high(PIN_A7);
delay_ms(74);
}
}
When I use this code I can't more write the pic.
The problems is with my circuit or with me ?! heheheheh
Thank's by atention !!
Namba