romel_emperado
Advanced Member level 2
- Joined
- Jul 23, 2009
- Messages
- 606
- Helped
- 45
- Reputation
- 132
- Reaction score
- 65
- Trophy points
- 1,318
- Location
- philippines
- Activity points
- 6,061
guys did I missed something?
It's working in protues but in real hardware is not working..
Im using internal clock of PIC16f628
how do I add config bits for that? I dont know the syntax
It's working in protues but in real hardware is not working..
Im using internal clock of PIC16f628
how do I add config bits for that? I dont know the syntax
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #include<pic.h> __CONFIG(WDTDIS & UNPROTECT); void main() { unsigned int x; TRISA2 = 0; PORTA = 0; while(1) { RA2 = 0; for(x=0; x<1000; x++); RA2 = 1; for(x=0; x<1000; x++); } }