[ATMEGA128] 냐옹

// 256 분주 62500 데헷 'ㅅ';
//흐암 -_-;


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

void init_port(void);
void init_timer1(void);

int main(void){

        init_port();
        init_timer1();
        sei();
        while(1){}
        return 0;
}
void init_port(void){
        DDRF=0xFF;
        PORTF=0xFF;
        sbi(DDRB,5);
}
void init_timer1(void){

        TIFR=0x00;
        TCNT1H=0x00;
        TCNT1L=0x00;

        TCCR1A=0x40;
        TCCR1B=0x0C;
        TCCR1C=0x00;

        OCR1AH=0xF4;
        OCR1AL=0x24;

        TIMSK=0x10;
}

SIGNAL(SIG_OUTPUT_COMPARE1A){
}

Posted by rCan

2008/10/07 17:40 2008/10/07 17:40
Response
No Trackback , No Comment
RSS :
http://rcan.net/rss/response/576

Trackback URL : http://rcan.net/trackback/576

Leave a comment
« Previous : 1 : ... 25 : 26 : 27 : 28 : 29 : 30 : 31 : 32 : 33 : ... 439 : 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:
113575
Today:
6
Yesterday:
43