Advertisement
everblut

parpadeante

Feb 25th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <16F873A.h>
  2. #use delay(clock=500000)
  3. #byte puerto_b = 0x06
  4.  
  5. void main() {
  6.    set_tris_b(0x00);
  7.    puerto_b = 0;
  8.  
  9.    do{
  10.       delay_ms(1000);
  11.       bit_set(puerto_b, 1);
  12.       delay_ms(1000);
  13.       bit_clear(puerto_b, 1);
  14.  
  15.    }while(TRUE);
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement