Jump to content

informer

Membru activ
  • Content count

    90
  • Joined

  • Last visited

Community Reputation

1 Neutral

About informer

  • Rank
    Nou venit

Profile Information

  • Locatie
    Timisoara
  1. push button 12f675

    Pai asta nu se prea compileaza nicaieri ca ai uitat un i la functia aia de initializat intreruperea... :). Oricum, ceva de genu`: void InitExternal_INT(void); void main() { ANSEL = 0x00; ADCON0 = 0x00; CMCON = 0x07; VRCON = 0x00; TRISIO = 0x08; GPIO = 0x00; InitExternal_INT(); while(1) {} } void InitExternal_INT() { TRISIO2_bit = 1; INTCON |= 0x90; OPTION_REG |= 0x40; } void interrupt() { if(INTF_bit){ GP5_bit=~GP5_bit; INTF_bit=0; } }
×