Linux Fedora(리눅스 페도라) Minicom 을 이용한 디지털시계 설계
- 최초 등록일
- 2012.10.11
- 최종 저작일
- 2012.04
- 12페이지/ 한컴오피스
- 가격 1,500원
소개글
A+받은 설계과제 자료입니다.
리눅스의 페도라로, 미니컴을 어플리케이션으로 이용한 디지털시계 설계입니다.
스탑워치를 이용하여 시한폭탄을 만든 소스이며,
입력값을 바꿔 원하는 시간으로 설정 가능합니다.
목차
1. Sketch
2. Design Purpose.
- The Existing Purpose
- The Second Best Way
3. Design Plan
4. Member`s Role Division
5. Program Code Analysis
6. Reference
본문내용
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <asm/fcntl.h>
#include <string.h>
#define SEGMENT1 0x14800000 //세그먼트 자리선택 제어주소
#define SEGMENT2 0x14801000 //세그먼트 선택 제어주소
#define ADDRESSOFLED 0x14805000 //LED의 물리주소
#define ADDRESSOFTEXTLCD 0x14809000 //LCD의 물리주소
void lcd_con();
void lcd_con2();
void initialize_textlcd();
void setcommand(unsigned short command);
void writebyte(char ch);
int function_set(int rows, int nfonts);
int display_control(int display_enable, int cursor_enable, int nblink);
int cusrsor_shit(int set_screen, int set_rightshit);
int entry_mode_set(int increase, int nshift);
int return_home(); ...............
참고 자료
HBE-SM2로 배우는 임베디드 리눅스 프로그래밍 Second Edition , (주)한백전자 기술연구소,
2008. 07. 03, p.177 ~ p.189