• 전문가 요청 쿠폰 이벤트
*민*
Bronze개인
팔로워0 팔로우
소개
등록된 소개글이 없습니다.
전문분야 등록된 전문분야가 없습니다.
판매자 정보
학교정보
입력된 정보가 없습니다.
직장정보
입력된 정보가 없습니다.
자격증
  • 입력된 정보가 없습니다.
판매지수
전체자료 58
검색어 입력폼
  • 올리버 트위스트 (Oliver Twist)
    Book ReportOliver TwistAuthor: Charles DickensPublisher: Oxford University PressDate of publication: 2008ISBN: 978-0-19-479266-0Oliver Twist by Charles Dickens is the story of one poor boy, Oliver Twist, who lived in England during the middle of 1800s. This story mainly progressed in the dirtiest and darkest place in London. In this time, there were so many the poor, and socially, the treatment for them was very not good. Even, the policy was discriminative for them. So, at that time, the life of the poor was really harder than in these days.There are several people in this story.Oliver Twist: He is a small and weak boy and a main character of this story. He is very innocent and pure but he meets so many hardships and suffering.Fagin: He is a pickpocket leader. He attracts poor young children to use them for his robbing. He is very nasty and bad.Monks: He was a mysterious stranger who hates and treats Oliver Twist harshly. But after all, the identity of him that he is Oliver’s half-brother is revealed. He is very so greedy that he send Oliver to prison for charging the inheritance of their father.Mrs. Maylie: She is a kind lady who helps Oliver when he suffered gunshot. Judging by the trial to stealing her house of the gang, she is rich enough to look after Oliver.Nancy: She was doing several bad things that, for example, teach the way to steal to the Fagin’s young children in the gang. But she always regrets her behavior and has conscience. She is the decisive role to find out the secret of Oliver’s identity.Mr. Brownlow: He is an old gentleman. At first, he and Oliver met when Oliver’s friends were stealing his handkerchief. But He intuited that Oliver is innocent and they could be a good friend.Rose Maylie : She is a niece of Mrs. Maylie. But she is also accepted to Mrs. Maylie’s house like Oliver. Finally, it comes out into the open that she is Oliver’s aunt.The main character, Oliver Twist is born in a workhouse. As soon as he is born, his mother is dead so he becomes an orphan. A workhouse is the place where the poor is managed forcibly by some janitors and works for their lives with low pay. Oliver should also work from a very young age. He is too painful to endure the abuse from the workhouse. He runs out from the work place and his master.He decides to go London. He might think London is best place to live newly because London is the Capital city. But Oliver is captured by Fagin who is the leader of the gang for pickpocket. Oliver seems like to start the life of the robber. But, luckily, he meets an old gentleman, Mr. Brownlow. Mr. Brownlow knew Oliver is innocent and has warm and pure heart. But new hardship attacks Oliver. Oliver is captured by Fagin and Nancy when he was doing some delivery errand.Oliver joins a plan to steal something in Mrs. Maylie’s house. But during the plan, he is injured by gunshot. Mrs. Maylie finds the crumpled boy in front of her house. She takes care of him and hears about his life. She feels a pity and lives together for a while. Afterward, Nancy makes a visit to inform Oliver and Mrs. Maylie of the secret of his birth and the information about Monks. Finally, Nancy is killed by Bill Sike because of her betrayal. But Oliver can solve his identity and receive the inheritance from his father.This is a human dramatic fiction that gives a moral lesson. The most important part of this story was the meeting between Oliver and Mrs. Maylie. If they did not meet, Oliver must live in the dirty streets with Fagin. But, because Oliver is so innocent and pure unlike other poor children robbing in the street, he could get the chance to meet the good people like Mrs. Maylie and Mr. Brownlow. This story gives us that justice always wins even though there is no light. And we can also feel the terrifying and adventurous from in this story because every situation is always dangerous when bad peoples make some plans to capture Oliver.Reviews;Some people can think that this is just a didactic novel. But this story gives us several topics to think. Because this story is based on the real history of London, we also indirectly felt the atmosphere of that period of London. At that time, the discrimination was so serious that we cannot imagine the life of the poor. This phenomenon was not only England but also anywhere in the world at that time. That is the reason why we should always keep and pursue the equal right of human even in nowadays. Except for above thing, we also have concern about various social problems.Even though young Oliver spent most his childhood time to live with bad people and bad temptation, he is never corrupted and grows very well. It was very impressive because whoever meets some temptations is bound to be swayed themselves. I really want to recommend this story to teenagers and young children. And I will keep in mind the lesson from this story.
    독후감/창작| 2010.11.02| 2페이지| 1,500원| 조회(457)
    미리보기
  • 예비보고서-Exp 5. FIR and IIR Filter Design.hwp
    Exp 5. FIR and IIR Filter Design1. Objectives- Understand the Linear-Time-Invariant (LTI) system, impulse response and z-transform- Understand how the sampling rate affects the signal distortion- Understand the characteristics of FIR (Finite Impulse Response) and IIR (Infinite Impulse Response) filters using MATLAB- Design and implement FIR and IIR filters2. Problem statement1) Design and implement digital FIR and IIR filters for filtering audio signal2) Investigate the signal distortion depending on sampling rate3. Pre-report1) Pre-report(1) Investigate the characteristics of the ‘mean’. filter given by the following input/output difference equation.① Determine the impulse response h[n] of the filter.어떤 system의 impulse response를 h[n]이라고 한다. 다시 말해서, 위 system에의 input이 가해지면 y[n] = h[n]이 된다.즉,이므로,(단, n은 matlab에서 너무 많은 부담을 주지 않기 위해 64 discrete time point로 하도록 하겠다.)② Plot the amplitude and phase spectrum of FFT of h[n] for several N and explain the effect of N. (Use fft() function in MATLAB 두 개를 convolution을 하면 tri 함수가 되므로 위의 2개의 mean filter를 convolution 하면 삼각 펄스 모양의 impulse response를 얻을 수 있다. 또한 sampling period에 따라 N값을 조절하면 원하는 filter를 만들어 줄 수 있다.즉, 다음과 같다.N = 30; % interval을 원하는 값에 맞추기 위해 N=30(=>Ts의 개념) 한다면, triangular impulse response의 interval은 N=60=(=>2Ts)이 된다.n = 1:64; %64개 ploth1 = [ones(1,N)/N zeros(1, 64-N)]; % 두 개의 rect 함수h2 = [ones(1,N)/N zeros(1, 64-N)];stem(N*conv(h1,h2)); % 두 rect 함수 convolution. N을 곱해 peak가 1이 되도록 한다.④ Explain how to design a FIR filter having Gaussian-shaped impulse response using mean filters.Mean filter를 무한대의 개수로 연결해주면 구현가능하다. 그러나 matlab에서 무한개를 해주기는 힘들기 때문에, 100번의 convolution을 해주었다.n = -3 : 0.1 : 3;N=10;h1 = [ones(1,N)/N zeros(1, 64-N)];h2 = [ones(1,N)/N zeros(1, 64-N)];for i=1:1:100; % 100번의 convolutionh2 = conv(h1, h2); endsubplot(121);plot(n, exp(-pi*n.*n));title('real Gaussian pulse');subplot(122);plot(h2(300:600));title('Gaussian shape using mean filter');즉, 두 그래프가 비슷함을 확인 할 수 있다.(2) Investigate the FIR and IIR filter design method으로 튀어나가서 생기는 문제인데, pole이 단위 원 밖에 있으면 시스템이 불안정해진다. IIR 필터는 과거의 출력까지 계산에 넣는 특성 때문에, 이러한 quantization noise가 FIR 필터에서보다 크게 드러난다.이러한 단점에도 불구하고 IIR 필터는 다음과 같은 장점들 때문에 많이 쓰인다.IIR 필터는 recursive한 특성 때문에 memory상에서 최근 몇 개의 입력만 저장해 주면 된다. 이에 반해 FIR 필터는 recursive하지 않기 때문에 차수만큼의 입력을 모두 저장해야 한다. 그래서 IIR 필터가 memory를 덜 차지한다. 또, 같은 이유로 IIR 필터가 출력을 연산하는 데 걸리는 시간도 더 짧다.Magnitude가 일정한 특성도 가진다. FIR 필터는 passband내에서도 magnitude가 감소하는 반면, IIR 필터는 passband내에서 거의 일정한 magnitude를 유지한다. FIR의 차수가 IIR의 차수보다 크더라도 IIR이 보다 좋은 주파수 응답을 갖는 것을 볼 수 있다.IIR필터의 phase distortion은, 차수가 낮은 filter를 연달아 사용하거나 parallel하게 연결하는 방식으로 어느 정도 줄일 수 있다.이제 설계방법을 생각해보자.참고로 MATLAB 프로그램을 이용하면 손쉽게 설계가 가능하다.(fdatool)실제 설계과정은 다음과 같다.IIR의 경우 digital filter를 얻기 위해 기존의 analog filter를 사용하게 된다. 이 때 analog filter를 digital filter로 바꾸는 과정에서 impulse invariance 과정을 거치게 되는데 impulse invariance의 기본 개념은 frequency response가continuous time system의 frequency response로 인해 결정되는 discrete time system을 구하는 하나의 방법이라고 생각할 수 있다. 이 설계 방법은 digital filter의 frequency response가 선형 위상 특성을 갖는다. 반면에 저지대역에서는 0이다. 이 때 위의 example을 적용시키면,이 되는 것을 알 수 있다.즉 위 filter의 impulse response는 infinite이고 다음과 같이 주어진다.위 적분식을 계산하면,이 나오는 것을 확인할 수 있으며, 이는 a에 대해 대칭임을 나타낸다. 이러한 사실은 선형 위상 FIR에 매우 유용한 것이다.으로부터 FIR filter를 얻기 위해서,의 양쪽을 잘라내야 한다. 이 때 길이가 M인 인과적 선형 위상 FIR filter의은 아래와 같다.또한 이 때이다. 이러한 연산을 windowing이라 한다.따라서 위 식에서을 어떻게 정의하느냐에 따라 다른 window design을 얻을 수 있다. 가령 예를 들면인 구간에서 1이고 나머지에서 0이라면 rectangular window가 된다.따라서 위 식으로부터이다.여기서,은 유한한 M의 길이를 갖고 있기 때문에 sinc function과 비슷한 형태의 main lobe과 side lobes를 갖으며, main lobe는에서 전이대역폭을 결정하는 전이대역을 만든다. 이 폭은 1/M에 비례한다. main lobe이 넓을수록 전이대역폭도 넓어진다.마지막으로 side lobes는 통과대역과 저지대역 모두에 비슷한 모양을 갖는 ripple을 만들게 될 것이다.(마지막 5번문제에서 직접 matlab의 filter design을 이용한simple FIR and IIR filters 설계를 해보았습니다. )② Design a 3rd and 5th order IIR filters (Butterworth, Chebyshev type1, Chebyshev type2) using MATLAB. Plot the amplitude and phase spectrum of each filter and compare the results. Explain how the characteristics of the filters are affected by the order.(Use frer window. Explain how the characteristics of the filters are affected by the order. (Use freqz(), fir1(), hamming(), boxcar(),…, kaiser() functions. Signal processing toolbox of MATLAB need to be installed to use these functions)3rd order㉠ Hammingclear all;N=3;% 차수를 써준다. 5th order일 때는 5W=0:pi/100:pi;a=fir1(N,0.3,7*hamming(N+1));H=freqz(a,1,W);subplot(211); plot(abs(H));title('Amplitude spectrum');subplot(212); plot(angle(H));title('Phase spectrum');5rd order3rd order㉡ Boxcarclear all;N=3;% 차수를 써준다. 5th order일 때는 5W=0:pi/100:pi;a=fir1(N,0.3,7*boxcar(N+1));H=freqz(a,1,W);subplot(211); plot(abs(H));title('Amplitude spectrum');subplot(212); plot(angle(H));title('Phase spectrum');3rd order3rd order㉢ Hanningclear all;N=3;% 차수를 써준다. 5th order일 때는 5W=0:pi/100:pi;a=fir1(N,0.3,7*hanning(N+1));H=freqz(a,1,W);subplot(211); plot(abs(H));title('Amplitude spectrum');subplot(212); plot(angle(H));title('Phase spectrum');5rd order3rd order㉣ Bartlettclear all;N=3;% 차수를 써준다. 5th order일 때는 5W=0:pi/100:pi;a하다.
    공학/기술| 2010.10.11| 18페이지| 2,000원| 조회(212)
    미리보기
  • 예비보고서-Exp 4. Digital Design Using Microcontroller (2nd week).hwp
    Exp 4. Digital Design Using Microcontroller (2nd week)1. PurposeIn this experiment, the function generator for sin and square waves by COMPACT51 board with 8051 microcontroller will be developed. Actually, the 8051 microcontroller is not proper for the accurate function generator owing to the simple structure and the low specification. For that reason, the focus of this experiment is the optimized realization using the provided hardware source.2. Preperation1) Pre-report(1) Investigate the use of D/A converter. (Reference : DAC0804 manual)① DAC0800은 8-bit high-speed current-output digital-to-analog converters로 100ns의 setting time을 가지고 있다. Settling time이란 A/D 컨버터에서 변환시간과 같은 개념으로 쉽게 말하면 가해진 디지털 입력에 대해 아날로그 출력이 안정될 때까지 걸리는 시간을 말한다. 디지털 신호를 B1~B8 총 8 bit로 입력하여 0V에서 기준전압 사이의 아날로그 신호로 변환해서 단자로 출력한다.-DAC0800 series 의 기본구조-② 기준 입력의 플러스측인 VR+는 위의 그림에서와 같이 R을 통해서 +10V에 연결되어 있고 VR-도 R을 통해 0V에 연결되어 있기 때문에 기준 입력 전류 IREF 는 10/R[A] 가 된다.③ 위의 그림은 DAC의 기본 구조이고 자세한 내부구조는 다음의 Block Diagram과 같다.Block Diag와 Current source로 구성되어 있다. 또한 입력단의 스위치는 입력의 1, 0 여부에 의해 항상과을 선택하도록 되어있기 때문에과를 더했을 때 최대 출력값이 나오도록 되어있다.또한, 위의 VLC 단자는 Block Diagram에서 디지털 입력의 threshold 전압을 조정하기 위한 것이다. 이 회로에서의 분해능은 28 이다. 분해능이란, Digital 입력 값의 최하위 비트를 변화시켰을 때 아날로그 출력의 변화를 의미한다. 분해능은 아날로그 출력을 얼마나 미세하게 표시할 수 있느냐를 의미하므로 높으면 높을수록 좋다. 일반적으로 분해능을 낮추기 위해서는 더 많은 bit의 DAC를 사용하게 된다.④ DAC0800 series의 특징(Features)- 빠른 출력 전류 : 100[ns]- 풀 스케일 에러 : ±1 LSB- 온도 상승에 의한 비 직선성 : ±0.1[%]- 풀 스케일 커런트 드리프트 : ±10[ppm/℃]- 높은 출력 : -10[V]~+18[V]- 전류출력 보상 기능- TTL, CMOS, PMOS와 인터페이스 가능- 2 상한 범위의 곱셈 기능- 파워 공급 범위 : ±4.5[V]~±18[V]- 저 전력 소모 : 33[mW](±5[V])- 낮은 가격(2) Investigate the use of timer in mode 2. (Reference : 8051 User’s Manual)① timer in mode 2 :Mode2는 auto-reload mode이다. 이 모드는 자동으로 타이머가 8비트 재설정되는 모드이다. 즉 오버플로우가 발생하여 register값이 0이 되었을 때 다시 자동으로 재설정을 해준다. 이 기능은 다른 모드에는 없는 기능이고, 다른 모드에서의 경우에는 오버플로우가 발생하면 TH와 TL모두 0h가 되므로 처음에 설정했던 값이 초기화 되면서 사라지게 된다. 그래서 서비스 루틴 내에서 수동으로 다시 시간을 설정해주어야 하는 번거로움이 있다.오버플로우가 일어나서 인터럽트가 발생하고, 프로그램에서 수동으로 시간을 다시 설정하는 사이에능 하게 되므로 통신 error가 발생할 수가 있다..-타이머2의 동작 개념 block diagram-설정 값의 계산은 모드0, 1과 동일한 원리로 계산되며 공식은 다음과 같다." TH의 설정값 = FFh - N + 1 "타이머 모드 2에서 0.2msec초 지난 후에 인터럽트를 발생하려고 할 때의 설정 값을 한 번 계산해 보면 다음과 같다.: 0.2 msec를 머신 사이클로 환산 -> 0.0002/1.085069444x10-6 = 184184는 16진수로 B8h ->설정 개수 = FFh - B8h + 1 = 48h③ TH register에 시간을 입력하는 방법: 모드 2에서는 TH의 8비트만을 사용하므로 다음과 같이 계산된 설정값 0x48를 LSB에서부터 차례로 TH 레지스터에 집어넣으면 된다.THbit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 001001000⇒ 0x48(3) When the number of samples in a period is fixed on 100, write out the pseudo-code for generating 50Hz and 100Hz sine wave.한 주기 당 sampling의 개수가 100개로 고정되어 있으므로, 정현파를 발생시키는 주파수가 달라지면서 sampling되는 주기가 바뀌게 된다. (system clock / 12)가 입력clock이고 system clock이 11.0592MHz이므로 계산해보면 0.9216MHz의 클록이 들어오는 것을 알 수 있다. Mode 2 timer는 8bit이므로,>> 50Hz의 정현파를 발생시킬 경우주기 : 1/50 = 20ms, 100번 샘플링 하므로 샘플링 하는 주기는 20ms를 100으로 나누어야 한다. 그러면 0.2ms마다 타이머 인터럽트가 발생해야 한다.⇒ 256 - 0.9216 X 200 = 72 = 48h>> 100Hz의 정현파를 발생시킬 경우주기 : 1/100 = 10ms, 100번 샘플링 하므로 샘플링 하는 주기는 10ms를 100으로 나눈이머0 인터럽트 enableTR0 = 1; // 타이머0 startwhile(1) ; // 무한 루프에 들어간다. 8051은 무한 루프 내에서 타이머가 // 오버플로우되어 인터럽트가 발생하기를 기다린다.}void Timer0_isr() interrupt 1{ // 타이머 0의 인터럽트 서비스 루틴이다. TH의 값이 증가하다가// 오버플로우가 발생하면 자동적으로 이 함수가 실행된다.// 다른 모드와는 달리 수동으로 다시 설정할 필요 없음counter++;DAC_0800 = (int)((sin(2*Pi*counter/100)+1)*127.5);if(counter == 100) counter == 0;}II) 100Hz의 경우#include #include "CMPT51.h"#include int counter=0; // 인터럽트 루틴 내에서 사용하기 위한 전역변수 선언void main(void){TMOD = 0x02; // 타이머와 인터럽트에 관련된 SFR을 설정TH0 = 0xA4; // 모드 설정 : 타이머 0, 모드 2 사용 , 100Hz 일 때EA = 1; // 전체 인터럽트 enableET0 = 1; // 타이머0 인터럽트 enableTR0 = 1; // 타이머0 startwhile(1) ; // 무한 루프에 들어간다. 8051은 무한 루프 내에서 타이머가 // 오버플로우가 발생하여 인터럽트가 발생하기를 기다린다.}void Timer0_isr() interrupt 1 // 타이머 0의 인터럽트 서비스 루틴이다.// TH의 값이 증가하다가 오버플로우가 발생하면 자동적으로 // 이 함수가 실행된다.{// 다른 모드와는 달리 재설정이 필요 없다.counter++;DAC_0800 = (int)((sin(2*Pi*counter/100)+1)*127.5);if(counter == 100) counter == 0;}(4) When time interval of writing value to D/A converter is fixed on 0.1ms, write out tHz 일 때 : frequency = 50;II) 100Hz 일 때 : frequency = 100;#include #include "CMPT51.h"#include /* 인터럽트 루틴 내에서 사용하기 위한 전역변수 선언. */void main(void){TMOD = 0x02; // 타이머와 인터럽트에 관련된 SFR을 설정TH0 = 0xA4; // 타이머 0, 모드 2 사용하도록 설정함EA = 1; // 전체 인터럽트 enableET0 = 1; // 타이머0 인터럽트 enableTR0 = 1; // 타이머0 startwhile(1) ; // 무한 루프에 들어간다. 8051은 무한 루프 내에서 타이머가// 오버플로우가 발생되어 인터럽트가 발생하기를 기다린다.}// 타이머 0의 인터럽트 서비스 루틴이다. TH의 값이 증가하다가// 오버플로우가 발생하면 자동적으로 이 함수가 실행된다.void Timer0_isr() interrupt 1{// reload가 필요 없다.// 50Hz 일 때 : frequency = 50;// 100Hz 일 때 : frequency = 100;counter++;DAC_0800 = (int)((sin(2*Pi*counter*0.0001*frequency)+1)*127.5);if(counter == 1/(0.0001*frequency)) counter == 0;}(5) In this experiment, between the fix of the number of samples in a period and the fix of time interval of writing value to D/A converter, which one will you select? Why?(3)은 주파수 값에 상관없이 항상 한 주기에 sampling하는 개수가 일정하다. 그러므로 주파수가 증가하여도 항상 일정한 quality의 정현파를 얻을 수 있다. 왜냐하면 정현파를 깨끗이 얻는 것에 영향을 주는 요인은 분해능으로 얼마나 자주 샘플링하느냐에 따라 그 quality다.
    공학/기술| 2010.10.11| 8페이지| 2,000원| 조회(118)
    미리보기
  • 예비보고서-Exp 3. Digital Design Using Microcontroller (1st week).hwp
    Exp 3. Digital Design Using Microcontroller (1st week)1. Object- Digital design experiment using 8051 microcontroller. - In this assignment, we are going to design our own digital system to improve our design ability. - Understanding the interrupt operation of 8051 microcontroller. - Getting familiar with COMPACT51 / KEIL uVIsionII development environment for 8051 microcontroller.2. Problem statement- Learn how to use 8051 microcontroller-based COMPACT51 board - Learn how to generate 8051-based binary codes using KEIL uVisionII compiler. - Design and implement stopwatch with this board.4. Pre-report1) Pre-report(1) Investigate the meaning of following registers by referencing 8051 User's Manual.- TCON, TMOD, TH1, TH0, TL1, TL0- IE, IP■ TCON Register란?- TCON의 의미는 Time control register이다. TCON register는 카운터/타이머를 제어하는데 상위 4비트만을 사용한다. 그리고 하위 4비트는 외부 인터럽트 제어에 사용된다.TF1TR1TF0TR0IE1IT1IE0IT0Timer Mode Register(TMOD) - Bit AddressableTF1(TCON.7) : Timer 1 overflow flag. Timer1이 overflow가 발생했을 때he interrupt service routine)TR0(TCON.4) : Timer 0 control bit.TR0=1일 때, timer 1 이 작동. 만약 TR0=0이면, timer 1은 멈춤.IE1(TCON.3) : 외부 인터럽트 1 edge flag. Pin P3.3에서 유효한 falling edge가 감지되었을 때 set됨.(Cleared by hardware when the interrupt is serviced)IT1(TCON.2) : 인터럽트 1 타입 컨트롤 비트.IT1=1일 때, P3.3의 falling edge에서 인터럽트1이 트리거 된다.IT1=0일 때, P3.3의 low level logic에 의하여 인터럽트1이 트리거 된다.IE0(TCON.1) : 외부 인터럽트 0 edge flag. Pin P3.2에서 유효한 falling edge가 감지되었을 때 set됨. Timer 0에 외부 interrupt 가 발생할 때 hardware 에 의해서 표시되는 register.(Cleared by hardware when the interrupt is serviced)IT0(TCON.0) : 인터럽트 0 타입 컨트롤 비트. imer 0의 interrupt 가 Falling edge/low level 중 어떤 형태를 취할 것인지 정하게 된다.IT0=1일 때, 인터럽트 1는 P3.2의 falling edge에 의하여 트리거 된다.IT0=0일 때, 인터럽트 0은 P3.2의 low logic level에 의하여 트리거 된다.그리고 예를 들어 TCON은 비트 단위의 access가 가능하다.ex)SETB TR0 : TIMER/COUNTER 0 runCLR TF1 : TIMER/COUNTER 1 overflow flag clear■ TMOD Register란?- Timer mode 레지스터로, 바이트 단위의 액세스만 가능하고 비트 단위의 액세스는 안됨.- Timer와 Counter의 mode를 결정함!ex) TMOD 설정할 때에는, 다음과 같이 한다.MOV ;timer x 는 timer mode로 작동하고, 입력은 system clock으로부터 받는다.M1 : Mode Select bit 1. Selector의 MSB.M2 : Mode Select bit 0. Selector의 LSB.■ TH0/TL0 과 TH1/TL1 이란?- TH1/TH0 : Timer/counter high byte- TL1/TL0 : Timer/counter low byte- TH0/TL0은 Timer/Counter0에서 사용되는 register들이고, special function register의 영역 내에 존재한다.- TH1/TL1은 Timer/Counter1에서 사용되는 register들이고, 이 또한 SFR영역에 존재한다.- 아 register들 (TH0/TL0,TH1/TL1)은 클럭이 입력될 때마다 +1이 증가하는 업카운터이다. 즉, 이 카운터 레지스터가 overflow가 발생하면, TCON(Timer control register)내에 있는 TF(Time Overflow)가 set 된다.■ IE와 IP에 대하여-- IE와 IP에 대하여 알아보기 위해서는 먼저 Interrupt system에 대한 이해가 필요하다.위 그림은 Interrupt control system이다. (TS80C31X2) 위의 경우 총 5개의 인터럽트 벡터를 가지고 있고, 각각 두 개의 외부 인터럽트(INT0와 INT1), 두 개의 타이머 인터럽트(timer0과 1), serial port interrupt로 구성되어 있다. 각각의 interrupt source들은 Interrupt Enable(IE) register에 의하여 bit를 set 또는 clear함으로써 enable하거나 disable된다.그리고 각각의 interrupt source들은 Interrupt Priority register(IP)와 Interrupt Priority High Register에서 bit를 set 또는 clear함으로써 4개의 priority level중 하나에 의해 프로 MnemonicDescription7-Do not set this bit.6-Do not set this bit.5-Do not set this bit.4PSSerial Port Priority bit.3PT1Timer 1 overflow interrupt Priority bit.2PX1외부 인터럽트 1 enable bit.1PT0Timer 0 overflow interrupt Priority bit.0PX0외부 인터럽트 0 enable bit.(2) Investigate the operation characteristics of 8255 by referencing 8255 datasheet.- 8255의 datasheet를 찾아보면, Intel 의 8255A 는 programmable I/O device이고, 24개의 핀을 가지고 있으며, 3가지 모드를 가지고 있다.이 세 가지 모드에 대하여 간단히 설명해 보자면,▶ Mode 0 : 12개의 Input/Output pin의 각 그룹이 4개, 8개의 input 혹은 output 으로 설정될 수 있다.▶ Mode 1 : 각 그룹이 8줄의 input 과 output 으로 프로그램 될 수 있다.▶ Mode 2 : 쌍방향 bus configuration□ 각 pin 별 기능⑴ I/O port : PA0 ∼ PA7, PB0 ∼ PB7, PC0 ∼ PC7Group A : A포트 & C포트의 상위 4Bit (C4∼C7)Group B : B포트 & C포트의 하위 4Bit (C0∼C3)⑵ A0, A1 : 포트들과 프로그래밍을 위한 번지들을 지정A0/A1지정값00Port A01Port B10Port C11Control Word⑶ D0 ~ D7 : CPU와 데이터 및 명령을 주고받기 위한 data bus.⑷ RESET : 내부 기능들을 초기화시킴.- Control Register Clear- 포트는 입력 모드로 둠.- 리셋 상태 유지⑸ RD : 8255A에서 데이터를 읽기 위한 제어 신호⑹ WR : 8255A로 데이터 및 명령을21의 제어에 의해 세븐 세그먼트의 그라운드(GND) 단자가 스위칭되도록 설계되어 있다. 이는 82C55 출력이 세븐세그먼트에 영향을 미칠 것인지에 대한 여부를 제어하기 위한 것으로 외부에 CON2(확장 헤더)를 통해 사용자가 만든 회로를 82C55의 각 포트에 인터페이스할 경우 내부에 인터페이스 된 세븐세그먼트의 그라운드를 오픈하여 외부회로만을 인터페이스되도록 할 수 있다. 이에 대한 제어는 상태 레지스터(Status Register) U9의 비트1에 의해 이루어진다. 즉 U9의 비트1을 ‘1’로 설정하면 내부 세븐 세그먼트가 enable되며, ‘0’으로 설정하면 세븐 세그먼트는 Disable되며 CON2와 인터페이스 된다.위의 그림에서 82C55는 출력으로만 사용하고 있다. 따라서 모드0를 사용하고 각 포트를 출력으로 설정하여 사용하면 적당하다. 위의 경우, 82C55를 통해 세븐 세그먼트를 제어하도록 구성되어 있다. 위의 그림에서 보는 것처럼 세븐 세그먼트는 캐소드형을 사용하고 있다. 즉 82C55의 출력이 ‘1’이면 해당 세그먼트 LED가 점등될 것이며 ‘0’인 경우 소등된다. 단, Q21이 온(On)된 상태이어야만 한다. 만약 세븐 세그먼트에 숫자 ‘2’를 디스플레이 하고자 한다면 세그먼트의 A, B, G, E, D LED가 점등되어야 하므로 해당 82C55의 포트에 ‘1'을 출력하면 된다.(3) To display the number 0~9 to the 7-segment logic block of the experiment board, what kinds of binary values should be written to those address?아래의 표에서 1이 적힌 부분을 light on해주면 된다.numberabcdefgDP가 MSB라고 했을 때 16진수로 표현된 값1-11---0x3f211-11-10x0631111-10x5b4-11--110x4f51-11-110x6661-111110x6d7111--1-0x7d811111110x2791111-다.
    공학/기술| 2010.10.11| 7페이지| 2,000원| 조회(145)
    미리보기
  • 결과보고서-Exp 3. Digital Design Using Microcontroller (1st week).hwp
    Exp 3. Digital Design Using Microcontroller (1st week)1. 실험 분석⑴마이크로컨트롤러란?- 하나의 LSI 칩 내에 마이크로프로세서의 CPU기능과 함께 한정된 용량의 주기억장치(ROM,RAM)와 입출력 제어회로를 내장시켜 이 칩 하나만으로 기본적인 컴퓨터의 기능을 모두 갖도록 만든 소자이다. 이것은 최소의 부품으로 간단한 컴퓨터를 구성할 수 있으므로 시스템의 단순화 및 저가격화가 가능하고, 따라서 범용 목적보다는 기기제어용으로 주로 사용하다. 그리고 IC소자 1개로 완전한 형태의 컴퓨터가 구성되므로 단일칩 마이크로컴퓨터이다.- 종래에는 CPU기능에 한정된 용량의 메모리(SRAM, EPROM, OTP ROM, 또는 플래시 메모리)와 인터럽트 제어기, 직렬 및 병렬 인터페이스, 카운터/타이머 등을 내장하는 정도였는데, 최근에는 DMA제어기와 같은 고성능의 I/O기능, 고속의 직렬통신 기능, A/D컨버터, PWM 출력, PLL회로 등을 내장하고 있다.⑵ 8051의 특징- 제어 목적에 적합하도록 설계된 8비트 마이크로컨트롤러이다.- 111종의 명령을 가지며, 이중에서 64종은 단일 머신 사이클에 실행된다.- 비트 단위로 Boolean Operation 처리 기능을 가진다.- 64kb의 외부 프로그램 메모리와 64kb의 외부 데이터 메모리를 가진다.- 8051시리즈에서는 128바이트의 데이터용 내부 RAM을 가진다. 내부 RAM의 일부 영역(20H~2FH)은 비트 어드레싱이 가능하다.- 시스템 클럭을 발생하기 위한 오실레이터 회로를 내장하고 있다.- 4개의 8비트 입출력 포트를 가지고 있어서 모두 32비트의 I/O가 가능하다.- 2개의 16비트 타이머/카운터(타이머0,1)를 가진다.- 6개의 인터럽트 소스/5개의 인터럽트 벡터를 가진다.- 아이들(idle)모드나 파워다운(power down)모드와 같은 소비전력 절약 모드를 가진다.- TIMER0와 INT0 pin을 사용하였고, 각각, P3.4, P3.2이다. (coding할 때숫자 모양으로 구성한 것으로 가격이 저렴하고 쉽게 제어가 가능하다. 아래 그림은 FND에 대한 LED의 배치를 나타내고 있다. 각각의 LED는 독립적으로 점등이 가능하지만 보통 사용되는 것이 10가지 정도만을 사용한다. 10가지라 함은 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 이외에 특별히 a, b, c, d, E, F 도 사용할 수 있기는 하다.FND는 크게 두 가지 종류가 있는데 하나는 Common Anode와 Common Cathode 형태가 있다. Anode 타입의 FND는 양극을 공통으로 묶어 사용하여 0 값을 주었을 때 LED가 점등하며 Cathode 타입의 FND는 음극을 공통으로 묶어 사용하며 1값을 주었을 때 LED가 점등하는 방식이다Anode type과 Cathode 타입에서 0 부터 F까지 사용하기 위한 진리표를 알아보자.DECabcdefgHEX000000010x01110011110x4F200100100x12300001100x06410011000x6C501001000x24601000000x40700011010x0D800000000x00900001000x04A. Common Cathode Type B. Common Anode TypeDECabcdefgHEX011111100x7E101100000x30211011010x6D311110010x79401100110x33510110110x5B610111110x5F711100100x72811111110x7F911110110x7BDECabcdefgHEX011111100x7E101100000x30211011010x6D311110010x79401100110x33510110110x5B610111110x5F711100100x72811111110x7F911110110x7BDECabcdefgHEX011111100x7E101100000x30211011010x6D311110010x79401100110x33510110110x5B610111110x5F711100100x72811111110x7F911110110x7 while expression and timer, program can handle with time.*/#include #include "CMPT51.h"sbit TIMER0_BUTTON = P3^4;sbit INT0_Button = P3^2;unsigned char Int0_flag = 0; // interrupt0의 발생을 알림unsigned int count = 0; // 1ms 마다 countunsigned int led_count=0; // led에 사용되는 1ms 마다 count하는 변수unsigned int ten_msec = 0;//10ms 마다 countunsigned int sec = 0;// 1s마다 countunsigned char change_sec=0;// 1초 단위가 바뀌면 1unsigned char change_tenmsec = 0;// 10ms 단위가 바뀌면 1unsigned char change_led = 0;// 0.25초가 지났다는 것을 알려주는 변수unsigned char code segment[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x27,0x7f,0x6f}; // seven segment의 각 수에 해당되는 16진수를 미리 저장해 놓은 배열unsigned char number[2]; // segment의 값을 저장할 때 쓰이는 변수data unsigned char led;// led 값을 저장할 때 쓰이는 변수//interrupt0 handervoid button_int_handler() interrupt 0{Int0_flag = 1;EX0=0;//int_enable을 0으로}//interrupt1 handlervoid timer_int_handler() interrupt 1{TR0=0;// Timer0을 정지TH0=0xFC;// TH0 초기화TL0=0x66;// TL0 초기화TR0=1;// Timer0을 다시 동작count++; // interrupt가 발생하였으므로 count증가하면ten_msec++;// 10ms 증가if(ten_msec==100){ // 1초가 된 경우if(sec==99) sec=0;//만일 99초면 0으로 가자.else sec++;//99초 아니면 1초 증가ten_msec=0;//10ms에 해당하는 변수를 다시 0으로change_sec=1;//초 단위가 바뀐 것을 알려준다.}count=0;// 인터럽트 숫자 초기화change_tenmsec=1;// 0.01초 단위가 바뀐 것을 알려준다.}if(led_count==250){ // 250번 인터럽트 발생하면change_led=1;// led가 변화해야 한다는 것을 알려준다.led_count=0; // 인터럽트 숫자 초기화}}void ResetTimer0(void){TMOD=0x01;// 타이머의 모드를 설정한다.TR0 = 0;// Timer0을 정지TH0=0xFC;// TH0 초기화TL0=0x66;// TL0 초기화TF0 = 0; // Timer0의 interrupt Flag도 초기화ET0 = 0; // Timer0의 interrupt를 disable로 설정led=0xFF; // 처음에 led는 다 꺼지게 설정P1=led; //led를 연결}void delay(unsigned char time){// about 10us per 1 loop @12MHz about 10.851us per 1 loop @11.0592MHzwhile(time--){time--;time++;}}void delay_ms(unsigned int ms){// define 1ms per 1 loop.do{ // about 1.0026ms per 1 loop @11.0592MHzdelay(91);// do~while loop=12 Machine cycle,}while(ms--);// delay() ret=2 Machine cycle} // (12+2+91*10)*1.0851us=1002.63usvoid main(void){ // Main함수SRRW1|=0x02; //7 Segment logic의 설정으로 설정C_8255_B = segment[0]; // 초기값을 0으로 설정C_8255_C = segment[0]; // 초기값을 0으로 설정ResetTimer0(); //타이머를 초기화한다.IT0=1;// 인터럽트 0 타입 컨트롤 비트를 1로 만들어 동작하게 한다EX0=1;// 인터럽트 0을 enable하게 한다EA=1;// 모든 인터럽트 enable하게 한다.while(1){//무한루프if(change_sec==1){// 초 단위가 바뀌면if(sec>=10){//10초 이상에서는number[1] =sec/10; //10초의 자리number[0] =sec%10; //1초의 자리C_8255_A = segment[number[1]];// A가 10초의 자리C_8255_B = segment[number[0]]| 0x80;//B가 1초의 자리를 표시 한다. 0x80과 OR연산을 통해 점을 표현한다.}else{ //10초 아래에서는number[1] = sec%10; //1초의 자리C_8255_A = segment[number[1]]| 0x80;//A가 1초의 자리를 표시한다. 0x80과 OR연산을 통해 점을 표현한다.}change_sec=0; // 초의 변화를 처리해주었으므로 다시 0으로 설정}if(change_tenmsec==1){//0.01초 단위가 바뀌면if(sec>=10){//10초 이상에서는number[1] =ten_msec/10;//0.1초의 자리C_8255_C = segment[number[1]];// C가 0.1초 단위를 출력한다.}else{ //10초 아래에서는number[1] = ten_msec/10;// 0.1초의 자리number[0] = ten_msec%10; //0.01초의 자리C_8255_B = segment[number[1]];//B가 0.1초 자리를 출력한다.C_8255_C = segment[number[0]];//C가 0.01초 자리를 출력한다.}change_tenmsec=0; //0.01초 단위의 변화를 처리해주었으므로 다시 0으로 설ed
    공학/기술| 2010.10.11| 10페이지| 2,000원| 조회(140)
    미리보기
전체보기
받은후기 4
4개 리뷰 평점
  • A+최고예요
    3
  • A좋아요
    1
  • B괜찮아요
    0
  • C아쉬워요
    0
  • D별로예요
    0
전체보기
해캠 AI 챗봇과 대화하기
챗봇으로 간편하게 상담해보세요.
2026년 04월 20일 월요일
AI 챗봇
안녕하세요. 해피캠퍼스 AI 챗봇입니다. 무엇이 궁금하신가요?
9:19 오후
문서 초안을 생성해주는 EasyAI
안녕하세요 해피캠퍼스의 20년의 운영 노하우를 이용하여 당신만의 초안을 만들어주는 EasyAI 입니다.
저는 아래와 같이 작업을 도와드립니다.
- 주제만 입력하면 AI가 방대한 정보를 재가공하여, 최적의 목차와 내용을 자동으로 만들어 드립니다.
- 장문의 콘텐츠를 쉽고 빠르게 작성해 드립니다.
- 스토어에서 무료 이용권를 계정별로 1회 발급 받을 수 있습니다. 지금 바로 체험해 보세요!
이런 주제들을 입력해 보세요.
- 유아에게 적합한 문학작품의 기준과 특성
- 한국인의 가치관 중에서 정신적 가치관을 이루는 것들을 문화적 문법으로 정리하고, 현대한국사회에서 일어나는 사건과 사고를 비교하여 자신의 의견으로 기술하세요
- 작별인사 독후감