728x90
반응형
펌웨어실습
#define DDRA (*((volatile unsigned char *)0x21)) // 위표의 주소값
#define PINA (*((volatile unsigned char *)0x20))
#define PORTA (*((volatile unsigned char *)0x22))
#define PINA (*((volatile unsigned char *)0x20))
#define PORTA (*((volatile unsigned char *)0x22))
int main(void)
{
volatile unsigned long uiCnt; // volatile : 휘발성의
DDRA=0xff;
while(1)
volatile unsigned long uiCnt; // volatile : 휘발성의
DDRA=0xff;
while(1)
{
for(uiCnt=0 ; 100000>uiCnt ; ++uiCnt); // 시간지연
PORTA=0x08;
for(uiCnt=0 ; 100000>uiCnt ; ++uiCnt);
PORTA=0x40;
for(uiCnt=0 ; 100000>uiCnt ; ++uiCnt); // 시간지연
PORTA=0x08;
for(uiCnt=0 ; 100000>uiCnt ; ++uiCnt);
PORTA=0x40;
}
return 0;
return 0;
}
728x90
'코스웨어 > 16년 스마트컨트롤러' 카테고리의 다른 글
20160314_오아람_업무일지_펌웨어분석+전역변수 (0) | 2016.03.16 |
---|---|
20160316_장진웅_업무일지_펌웨어 실습(LCD) (0) | 2016.03.16 |
Lcd.h (0) | 2016.03.16 |
Alpha Yong (1) | 2016.03.16 |
20160314_김도관_업무일지_펌웨어실습_인터럽트_버튼으로 LED점멸 (0) | 2016.03.16 |
20160311_업무일지_정우민_펌웨어실습 (0) | 2016.03.16 |
20160315-이보원 AVR2560 LCD 실험 준비 (2) | 2016.03.16 |
20160314_박진한_업무일지_펌웨어 분석 (1) | 2016.03.16 |