hi , i am trying to learn pic programming and basic circuit. So i am unexperienced. I am using pic16f84a with 4 mhz crystal osillator with 22 pf capacitors. Circuit runs on 5 V with 7805 regulator. and this is the code:
#include <16F84A.h>
#define pir input(PIN_A2) // Switch on RA0
void main (void)
{
set_tris_a(0x11);
set_tris_b(0x00);
output_b(0x00);
while(1) { //Forever Loop
output_high(pin_B1);
output_high(pin_B2);
}
}
I import this file with pickit2.
There voltage supply on pic , i can read it with voltameter but somehow there is no output. It isnt work.
Anyone , any idea how to solve the problem ?
#include <16F84A.h>
#define pir input(PIN_A2) // Switch on RA0
void main (void)
{
set_tris_a(0x11);
set_tris_b(0x00);
output_b(0x00);
while(1) { //Forever Loop
output_high(pin_B1);
output_high(pin_B2);
}
}
I import this file with pickit2.
There voltage supply on pic , i can read it with voltameter but somehow there is no output. It isnt work.
Anyone , any idea how to solve the problem ?