myeou
Newbie level 3
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 22pf capacitor. Circuit runs on 5 V with 7805 regulator. and this is the code:
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 ?
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #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 ?
Last edited by a moderator: