RuiViana

Teste.C

Jun 2nd, 2020
984
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. / Inicio  *********************************************************************
  2. void main()
  3. {
  4. // Configura as Portas *********************************************************
  5.    TRISA = 0b00100000;          // define PORTA como ssesssss
  6.    TRISB = 0b00000000;          // define PORTB como ssssesss
  7.    while(1)
  8.    {
  9.        Delay_ms(500);
  10.        PORTB.F0 = 0;
  11.        Delay_ms(500);
  12.        PORTB.F0 = 1;
  13.    }
  14.  
  15. }
RAW Paste Data