Lecture 8 Digital waveform generator using u-controller 2007/11/09 Prof. C.M. Kyung.

Slides:



Advertisements
Similar presentations
The 8051 Microcontroller and Embedded Systems
Advertisements

Programmable Interval Timer Prepared By: Prof. M. B. Salunke SITS, Narhe, Pune - 41.
8051 Core Specification.
Data Acquisition ET 228 Chapter
18/05/2015 Calice meeting Prague Status Report on ADC LPC ILC Group.
Lecture 10 A/D and D/A converter for Digital Filter Prof. C.M Kyung.
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
ASPPRATECH.
1.  8051 Timers “count up,” incrementing the Timer’s respective “count register” each time there is a triggering clock pulse. 2  When the “count register”
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Lecture 9 Timer Operations and Programming. 2  Introduction  Summary of timers  Timer programming sequence  Summary of timer SFRs  Timer 0: 8-bit.
The 8051 Microcontroller architecture
1 Timing System Timing System Applications. 2 Timing System components Counting mechanisms Input capture mechanisms Output capture mechanisms.
CHAPTER TIMER PROGRAMMING Timers The 8051 has two timers/counters, they can be used as ◦ Timers to generate a time delay ◦ Event counters.
8051 timer/counter.
Lecture 1 Combinational Logic Design & Flip Flop 2007/09/07 Prof. C.M. Kyung.
1 Chapter 4 Timer Operation (I. Scott MacKenzie).
Chapter 4 TIMER OPERATION
CoE3DJ4 Digital Systems Design Chapter 4: Timer operation.
AT91 Embedded Peripherals
Lecture 11 FIR Filter design using 8051 u-controller
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
MICROPROCESSOR AND MICRO CONTROLLER LAB
Timers /Counters Programming  The 8051 has 2 timers/counters: ○ timer/counter 0 ○ timer/counter 1 They can be used as 1. The timer is used as a time.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
1 Successive Approximation Analog-to- Digital Conversion at Video Rates 指導教授 :汪輝明 學 生:陳柏宏.
Lecture 6 Coffee Vending Machine using FPGA
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This course provides an overview of the standard peripheral.
Design of Digital-to-Analog Converter Qin Chen Yong Wang Dept. of Electrical Engineering Feb. 6th, 2006 EE597G Presentation:
MCS51 - lecture 3. Lecture 3 2/30 Timers/counters MCS51.
8254 Timer.
Analog-to-Digital and Digital-to-Analog Conversion
Jump, Loop, and Call Instructions
Chapter 5 - Interrupts.
The Silicon Laboratories C8051F020
Digital to Analog Converter (DAC)
8051 Aula 02 Prof Afonso Ferreira Miguel. Microcontrolador 8051 (MCS-51)  Timers do MCS51 Two 16-bit Counter/Timers: Two 16-bit Counter/Timers: Up counters,
Lecture 41 CSE 341 – Microprocessors Lecture 4 Md. Omar Faruqe UB 1228
Chapter Microcontroller
Kustanto,S.T.,M.EngECE/CS-352: Embedded Microcontroller Systems Embedded Systems By: Kustanto,S.T.,M.Eng.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
Timer Programming in Assembly and C Prepared By:
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
80C51 Block Diagram 1. 80C51 Memory Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits – i.e. addresses for only 256.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
FOR MORE CLASSES VISIT   ECET 340 Week 1 HomeWork 1  ECET 340 Week 1 iLab 1  ECET 340 Week 2 HomeWork 2  ECET 340 Week 2 iLab.
STM32 및 개발보드 소개 Jang Hyunsung Embedded Systems Lab. Dept. of CSE, PNU
Embedded Microcontroller Systems
80C51 Block Diagram ECE Overview.
Embedded Microcontroller Systems
Timer and Interrupts.
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Timer Source: under
Programmable Interval Timer 8254 LECTURE 3
UNIT 5 TIMRERS/COUNTERS
ECET 340 Education for Service/tutorialrank.com
EMT 348: Microcontroller Timer/counter
8051 Timers Prof. Rajiv R Bhandari.
Introduction to Micro Controllers & Embedded System Design Timer Operation Department of Electrical & Computer Engineering Missouri University of Science.
Timer.
Digital Theremin with LED
8051 Timers / Counters It has two timers Timer 0 and Timer 1.
8051 Microcontroller.
Timer Source: under
Timer Source: under
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
Programmable Interval Timer
Presentation transcript:

Lecture 8 Digital waveform generator using u-controller 2007/11/09 Prof. C.M. Kyung

Experimental Goal o GOAL is to get familiar with.. l Intel 8051 microcontroller l The concept of D/A converter l The concept of Timer l Function generator n Sine wave, square wave

D/A Converter : DAC0800 o Fast settling output current: 100 ns o Full scale error: ±1 LSB o Nonlinearity over temperature: ±0.1% o Full scale current drift: ±10 ppm/°C o High output compliance: −10V to +18V o Complementary current outputs o Interface directly with TTL, CMOS, PMOS and others o 2 quadrant wide range multiplying capability o Wide power supply range: ±4.5V to ±18V o Low power consumption: 33 mW at ±5V o Low cost

o Top Architecture of DAC D/A Converter : DAC0800

DAC Interface Circuit Digital ValueLatched Digital Value Analog Output DAC0800 DAC 74F573 Flip-Flop 8051 MCU Oscilloscope

DAC Interface Circuit

o C100H mapping l cmpact51.h 참조 l unsigned char xdata DAC_0800 _at_ 0xC100; o 수학함수 library 이용 l Sine function l Floating point 연산  속도 느림 l Specification 에 알맞은 방법 찾아보기

Timer / Counter o Count the machine cycle (1/12 of internal system cycle) or external clock / event o When the 8bit or 16bit timer overflows, timer interrupt occurs o 8051 has 2 timers – Timer0, Timer1 o Timers are controlled by TMOD, TCON registers o 4 modes are available

Timer Module o Timer Interface Circuit

Timer Mode o Mode0 l 8bit TH0 / lower 5bit TL0 o Mode1 l 16bit timer TH0/TL0 o Mode2 l 8bit timer with auto reload o Mode3 l Separated 8bit TH0 / 8bit TL0

Timer Mode

o Mode2 l TL 8bit counter 사용 l Auto reload 지원 n Overflow bit setting  – 사용자가 TF clear –TH 에 저장되어 있는 값이 TL 로 auto reload n Auto reload 는 수동 reload 보다 정확하다. l Timer 주기가 짧은 경우에만 사용 가능

Timer Registers

Problem State 1 o Sine wave generation l 한 주기 내에 샘플의 개수 선택, 또는 타이머 인터럽트 주기 결정 l COMPACT51 보드로 만들 수 있는 정현파의 최대주파수 l 버튼을 누를 때마다 주파수가 바뀌는 정현파 발생기 만들어보기

Problem State 2 o Square wave generation l 한 주기 내에 샘플의 개수 선택, 또는 타이머 인터럽트 주기 결정 l COMPACT51 보드로 만들 수 있는 구형파의 최대주파수 l 버튼을 누를 때마다 주파수가 바뀌는 구형파 발생기 만들어보기

Experiment Requirements o COMPACT51 보드 o KEIL uVisionII 프로그램 o PC o PC 와 COMPACT51 보드를 연결하기 위한 UART cable o Oscilloscope

References & Contact o Textbook l 8051 user’s manual l 8255 user’s manual l 8051 & C Programming, 문왕환, 도서출판 세화 l DAC0800/DAC0804 manual l COMPACT51 실험보드 회로도 l cmpt51.h 헤더파일 l KEIL uVisionIII 매뉴얼 (HELP) o 7th Week T.A. o Lecture Homepage l