C8051F020 DAC See chapter 8 of C8051F02x.pdfC8051F02x.pdf.

Slides:



Advertisements
Similar presentations
EUSART Serial Communication.
Advertisements

Digital-to-Analog Converters and Analog Comparators Professor Yasser Kadah –
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Lecture 11 Digital-to-Analog Converters and Analog Comparators.
Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
Lecture 12 Analog to Digital Converters. 2  What is an ADC?  Output vs. input  Input range  Single-ended vs. differential inputs  Output coding:
Interfacing ADC to 8051.
Interfacing of 8051 UNIT 4.
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Chapter 6 Interrupts (I. Scott Mackenzie).
Chapter 2. Definition Characteristics ExamplesNon-examples Input Graphic.
Lecture 9 Timer Operations and Programming. 2  Introduction  Summary of timers  Timer programming sequence  Summary of timer SFRs  Timer 0: 8-bit.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.
System Clock, Crossbar and GPIO
1 Chapter 4 Timer Operation (I. Scott MacKenzie).
CoE3DJ4 Digital Systems Design Chapter 4: Timer operation.
Unit 4 Design and Synthesis of Datapath Controllers
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
Lecture 2 Silicon Labs C8051F020 System Overview.
1 LHO 13 The 8051CF020 and the University Daughter Card.
FREQUENCY COUNTER USING Silicon Labs C8051F020 microcontroller
1. Registers Used in Timer/Counter  TH0, TL0, TH1, TL1  TMOD (Timer mode register)  TCON (Timer control register) 2.
Example. SBUF Register SCON Register(1) SCON Register(2)
1 The /27/ Today over fifty companies produce variations of the Several of these companies have over fifty versions of the 8051.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
ECE/CS-352: Embedded Microcontroller Systems The Silicon Laboratories C8051F020 Enhanced 8051 Part 4 Timer3, Temperature Sensor, AD0WINT.
The Silicon Laboratories C8051F020
Projects 8051.
The Silicon Laboratories C8051F020
Microprocessor MA Rahim Khan Computer Engineering and Networks Department.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.

Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
Kustanto,S.T.,M.EngECE/CS-352: Embedded Microcontroller Systems Embedded Systems By: Kustanto,S.T.,M.Eng.
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.
Criteria for choosing a microcontroller A microcontroller must meet the task at hand efficiency and cost effectively. Speed. What is highest speed of.
Memory Mapped IO (and the CerfBoard). The problem How many IO pins are available on the 8051? What if you are using interrupts, serial, etc…? We want.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
CSE466 Autumn ‘00- 1 Lab Issues and Questions?  Daily quiz: How is an interrupt different than a subroutine call?  Limitations of the assembler  Seems.
8255 Programmable Peripheral Interface
Binary & Decimal numbers
Embedded Microcontroller Systems
Connector Function Input I/O Output I/O
Microprocessor and Assembly Language
Embedded Microcontroller Systems
Source: Serial Port Source:
Interrupt Source: under
Atmega32 Serial Programming Basics
Introduction to Micro Controllers & Embedded System Design I/O Processing and Serial Port Operation Department of Electrical & Computer Engineering Missouri.
Timer Operations and Programming
Digital to Analog Converters
Source: Serial Port Source:
CENG2400 Revision Q1a A system has an ARM processor with a 32-bit General Purpose Input Output (GPIO) module. Two on/off switches are connected to bit-3.
C8051F020 DAC See chapter 8 of C8051F02x.pdf.
Memory organization On- chip memory Off-chip memory
ADC, DAC, and Sensor Interfacing
DAC3174 Pattern Test Feature
MICAz MTS310CA.
Timer and Counter Instructions
MICAz MTS310CA.
Enhancing Data Path M 4-bit Reg X A L U
Hardware Source: ttp:// under
Source: Serial Port Source:
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
Prof Afonso Ferreira Miguel
Source: Serial Port Source:
8051 Development System Details
CS 140L Lecture 8 Professor CK Cheng 11/19/02.
Presentation transcript:

C8051F020 DAC See chapter 8 of C8051F02x.pdfC8051F02x.pdf

The C8051F020 contains two 12-bit DAC’s Output swing from 0V to VREF-1LSB Several possible sources for VREF Internal reference = 1.2 X 2 = 2.4 volts, AV+, external. Possible update sources: Update on write to high byte of DAC. (Default) Update on timer overflow. Position of 12 bits used can be varied.

MOV REF0CN,#07H ;USE INTERNAL VREF

MOV DAC0CN,# B ;EN DAC0, UPDATE ON WR, LEFT JUSTIFIED

INIT_DACS: MOV REF0CN,#07H ;USE INTERNAL VREF MOV DAC0CN,# B ;EN DAC0, UPDATE ON WR, LEFT JUSTIFIED MOV DAC1CN,# B ;EN DAC1, UPDATE ON WR, LEFT JUSTIFIED RET WR_DAC0: MOV DAC0L,R7 ;OUTPUT LOW BYTE MOV DAC0H,R6 ;OUTPUT HIGH BYTE RET WR_DAC1: MOV DAC1L,R7 ;OUTPUT LOW BYTE MOV DAC1H,R6 ;OUTPUT HIGH BYTE RET

MOV XBR0,# B ;UART 0 TX TO P0.0, RX TO P0.1

MOV XBR1,# B ;SYSCLK OUT

MOV XBR2,# B ;ENABLE THE CROSSBAR