ARM 프로그램 소스 (LED 점등, 비트밴딩, 3색LED, 세크먼트, key)
본 자료는 2페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
해당 자료는 2페이지 까지만 미리보기를 제공합니다.
2페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

ARM 프로그램 소스 (LED 점등, 비트밴딩, 3색LED, 세크먼트, key)에 대한 보고서 자료입니다.

목차

1. LED 점등
2. 비트밴딩
3. 3색LED
4. 세크먼트
5. key

본문내용

g*)0x40011014) |= 0x67;
delay_int_count(500000);
(*(volatile unsigned long*)0x40011010) |= 0xff;
(*(volatile unsigned long*)0x40011014) |= 0xFF;
delay_int_count(500000);
(*(volatile unsigned long*)0x40011010) |= 0xff;
(*(volatile unsigned long*)0x40011014) |= 0xE7;
delay_int_count(500000);
}
}
5. key
/*
* Key_led_test:wkup-Green;userkey-Red
*/
static void delay_int_count(volatile unsigned int nTime)
{
for(; nTime > 0; nTime--);
}
int main(void)
{
(*(volatile unsigned*)0x40021018) |= 0x8; //GPIOB CLOCK ENABLE led 클럭
(*(volatile unsigned*)0x40021018) |= 0x4; //GPIOA CLOCK ENABLE key 클럭
(*(volatile unsigned*)0x40010c04) &= 0xffffff00; //GPIOB_pin9,8 초기화
(*(volatile unsigned*)0x40010c04) |= 0x11; //GPIOB_pin9,8 mode 설정
(*(volatile unsigned*)0x40010c00) &= 0xff0fffff; //GPIOB_pin5 초기화
(*(volatile unsigned*)0x40010c00) |= 0x100000; //GPIOB_pin5 mode 설정
(*(volatile unsigned*)0x40010800) &= 0xffffff00; //GPIOA_pin1,0 초기화
(*(volatile unsigned*)0x40010800) |= 0x44; //GPIOA_pin1,0 mode 설정
while(1)
{
(*(volatile unsigned*)0x40010c14) |= 0x20;
delay_int_count(50000);
(*(volatile unsigned*)0x40010c10) |= 0x20;
delay_int_count(50000);
if( ( (*(volatile unsigned*)0x40010808) & 0x1 )== 0x1 ) //GPIOA_pin0 check
{
(*(volatile unsigned*)0x40010c14) |= 0x100;
}
else
{
(*(volatile unsigned*)0x40010c10) |= 0x100;
}
if( ((*(volatile unsigned*)0x40010808) & 0x2 )== 0x2 ) //GPIOA_pin1 check
{
(*(volatile unsigned*)0x40010c14) |= 0x200;
}
else
{
(*(volatile unsigned*)0x40010c10) |= 0x200;
}
}
}
  • 가격9,660
  • 페이지수7페이지
  • 등록일2014.05.28
  • 저작시기2014.3
  • 파일형식한글(hwp)
  • 자료번호#920477
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니