Guest Book

Leave your greetings here

  1. ss 2008/12/04 17:14 M/D Reply Permalink

    /* LED: PORTTF사용 PIN 54-61*/
    #define PORT_LED PORTF
    #define DDR_LED DDRF
    #define PIN_LED PINF


    /* FND: PORTC사용 PIN 35-42*/
    #define PORT_FND PORTC
    #define DDR_FND DDRC
    #define PIN_FND PINC

    /* KEY:PORTA사용 PIN 51~44 */
    #define PORT_KEY PORTA
    #define DDR_KEY DDRA
    #define PIN_KEY PINA // 219.252.***.***

  2. 박태성 2008/09/09 18:27 M/D Reply Permalink

    #include<avr/io.h>
    #include<avr/interrupt.h>
    #include<avr/signal.h>

    void init(void);

    int main(void){
    init(); // 포트 기타등등 초기화와 설정
    sei(); // set enable interrupt
    for ( ; ; )
    {
    } // 서비스 루틴
    return 1;
    }
    void init(){
    DDRF=0xFF; // DDRF Ports Output
    PORTF=0x55;
    DDRE=0<<INT0|0<<INT4; // DDRE


    // 인터럽트 해당하는 부분
    EIFR=0x00;
    EIMSK=(1<<INT0|1<<INT4);
    EICRA=EICRA|(1<<ISC01|0<<ISC00);
    EICRB=EICRB|(1<<ISC41|1<<ISC41);

    }
    SIGNAL(SIG_INTERRUPT0){
    PORTF=0x0F;
    }
    SIGNAL(SIG_INTERRUPT4){
    PORTF=0xF0;
    }

    // 219.252.***.***

    1. rCan 2008/09/10 21:48 M/D Permalink

      수정..

      #include<avr/io.h>
      #include<avr/interrupt.h>
      #include<avr/signal.h>

      void init(void);

      int main(void){
      init(); // 포트 기타등등 초기화와 설정
      sei(); // set enable interrupt
      for ( ; ; )
      {
      } // 서비스 루틴
      return 1;
      }
      void init(){
      DDRF=0xFF; // DDRF Ports Output
      PORTF=0x55;
      DDRE=0<<INT0|0<<INT4; // DDRE


      // 인터럽트 해당하는 부분
      EIFR=0x00;
      EIMSK=(1<<INT0|1<<INT4);
      EICRA=EICRA|(1<<ISC01|0<<ISC00);
      EICRB=EICRB|(1<<ISC41|1<<ISC40);

      }
      SIGNAL(SIG_INTERRUPT0){
      PORTF=~PORTF;
      }
      SIGNAL(SIG_INTERRUPT4){
      PORTF=0xF0;
      } // 124.63.***.***

  3. 강민수 2008/07/10 13:57 M/D Reply Permalink

    안녕하십니까~~ ^-^

    지나가다 들렸습니다.. 꾸벅~ // 222.112.***.***

  4. siroiki 2008/05/27 15:51 M/D Reply Permalink

    안녕하셈 ' ㅅ ' // 210.91.***.***

    1. rCan 2008/05/29 11:45 M/D Permalink

      안녕하세염 ^_^ ㅋㄷㅋㄷ // 219.252.***.***

  5. 新暗黑の香氣 2008/03/29 16:22 M/D Reply Permalink

    깡통 ㅋㅋ // 124.80.***.***

  6. rCan 2008/03/11 10:02 M/D Reply Permalink

    하아.... // 219.252.***.***

« Previous : 1 : 2 : 3 : 4 : 5 : 6 : ... 43 : Next »

블로그 이미지

- rCan

Calendar

«   2012/02   »
      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 27 28 29      

Notices

  1. About Me

Site Stats

Total hits:
113493
Today:
13
Yesterday:
37