1 LHO 13 The 8051CF020 and the University Daughter Card.

Slides:



Advertisements
Similar presentations
Silicon Labs C8051F020 System Overview
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
Lecture 11 Digital-to-Analog Converters and Analog Comparators.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Lecture 12 Analog to Digital Converters. 2  What is an ADC?  Output vs. input  Input range  Single-ended vs. differential inputs  Output coding:
5-1 Analogue Input/Output Many sensors/transducers produce voltages representing physical data.  To process transducer data in a computer requires conversion.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Digital I/O Connecting to the Outside World
ASPPRATECH.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Team Members Jordan Bennett Kyle Schultz Min Jae Lee Kevin Yeh.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Introduction to the Orbit Edu Board Ahmad Rahmati Teaching Assistant, ELEC424 Rice Efficient Computing Group Sep 12, 2007.
Silicon Labs ToolStick Development Platform
LSU 06/04/2007Expanding the BASIC Stamp1 Expanding the BASIC Stamp: Useful peripherals Programming Unit, Lecture 6.
Objectives How Microcontroller works
System Clock, Crossbar and GPIO
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
Digital to Analogue Converter
Lecture 2 Silicon Labs C8051F020 System Overview.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Lecturers: Professor John Devlin Mr Robert Ross
FREQUENCY COUNTER USING Silicon Labs C8051F020 microcontroller
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
CHAPTER HARDWARE CONNECTION. Pin Description 8051 family members ◦ e.g., 8751, 89C51, 89C52, DS89C4x0) ◦ Have 40 pins dedicated for various functions.
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
WISP.
Alexei SemenovGeneric Digitizer Generic Digitizer 10MHZ 16 bit 6U VME Board.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
LHO 22 C and the  The Silicon Labs ISE uses the Keil C51 compiler.  The code size is limiter to 2K  C has replaced PL/M (the original Intel high.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Presented by Sadhish Prabhu
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Chapter Microcontroller
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.
Components of a typical full-featured microcontroller.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Criteria for choosing a microcontroller A microcontroller must meet the task at hand efficiency and cost effectively. Speed. What is highest speed of.
HOME SECURITY USING WIRELESS SENSOR NETWORK UNDER THE ESTEEMED GUIDANCE OF: P.RAMESH D.SIVOM( ) KANMANI RAVI( ) B.SAI RAJSEKHAR( )
EE 319K Introduction to Embedded Systems
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
1 The LPC1768 Architecture (with focus on Cortex-M3)
Embedded Microcontroller Systems
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
Vinculum II Development Modules
PROPELLER DISPLAY OF MESSAGE BY VIRTUAL LEDS
Microcontrollers & GPIO
DSC - fundamente MPU MCU DSP DSC Alternative Freescale
Silicon Labs C8051F020 System Overview
Introduction to the Orbit Edu Board
The Arduino Microcontroller: Atmel AVR Atmega 328
Introduction to Microprocessors and Microcontrollers
Silicon Labs C8051F020 System Overview
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
Wireless Embedded Systems
Presentation transcript:

1 LHO 13 The 8051CF020 and the University Daughter Card

2 Resources ents/TechnicalDocs/C8051F02x.pdfhttps:// ents/TechnicalDocs/C8051F02x.pdf University Daughter Card User Manual Embedded_Programming_Textbook.zip

3 Peak throughput25 MIPS FLASH program memory64 K On-chip data RAM4352 bytes Full-duplex UARTSx 2 16-bit timersx 5 Digital I/O ports64-pin 12-bit 100 ksps ADC8 channels 8-bit 500 ksps ADC8 channels DAC resolution12-bit DAC outputsx 2 Analog comparatorsx 2 Interrupts2 levels PCA (programmable counter arrays)5 channels Internal oscillator25 Mhz Debug circuitry

4 Standard 8051

5 C8051F020

6

7

8

9 I/O Ports Ports 0, 1, 2 and 3 are bit- and byte-addressable Four additional ports (4, 5, 6 and 7) are byte-addressable only There are a total of 64 general purpose port I/O pins Access to the ports is possible through reading and writing the corresponding port data registers (P0, P1, etc.) All port pins are 5 V tolerant and support configurable input/output modes and weak pull-ups In addition, the pins on Port 1 can be used as analog inputs to ADC1

10 The Digital Crossbar The digital crossbar is essentially a large digital switching network that allows mapping of internal digital peripherals to the pins on Ports 0 to 3 This is achieved by configuring the crossbar control registers XBR0, XBR1 and XBR2 Allows the system designer to select the exact mix of GPIO and digital resources needed for the particular application

11 12-Bit Analog-to-Digital Converter (ADC0) On-chip 12-bit successive approximation register (SAR) analog-to- digital converter (ADC0) 9-channel input multiplexer and programmable gain amplifier The ADC is configured via its associated special function registers One input channel is tied to an internal temperature sensor, while the other 8 channels are available externally

12 8-Bit Analog-to-Digital Converter (ADC1) On-board 8-bit SAR analog-to-digital converter (ADC1) Port 1 can be configured for analog input 8-channel input multiplexer and programmable gain amplifier The ADC is configurable via its configuration SFRs

13 Digital-to-Analog Converters Two 12-bit digital-to- analog converters: DAC0 and DAC1 The DAC voltage reference is supplied via the dedicated VREFD input pin The DACs are especially useful as references for the comparators

14 Comparators There are two analog comparators on chip: CP0 and CP1 The comparators have software programmable hysteresis Generate an interrupt on its rising edge, falling edge or both The comparators' output state can also be polled in software and programmed to appear on the lower port I/O pins via the crossbar

15 Voltage Reference for ADC and DAC A voltage reference has to be used when operating the ADC and DAC Three external voltage reference input pins: VREF0, VREF1 and VREFD ADC0 may also reference the DAC0 output internally ADC1 may also reference the analog power supply voltage (AV+)

16 Internal Voltage Reference Generator The internal voltage reference circuit consists of a 1.2 V band-gap voltage reference generator and a gain-of-two output buffer amplifier (2.4 V output) The internal reference may be routed via the VREF pin to external system components or to the voltage reference input pins The reference control register, REF0CN, enables/disables the internal reference generator and selects the reference inputs for ADC0 and ADC1

17 ToolStick UniDC Hardware Overview I/O Pins P0[7..2], P1, P2 Potentiometer Linear output that sweeps from 0V to 3.3V Target MCU C8051F020 Power LED Indicates 3.3V is available Reset Switch Analog I/O Pins Push-button Switches P5[3..0] LEDs P5[7..4] DIP Switches P4 Crystal MHz Prototype Area

18 Handling The ToolStick Caution: The modular ToolStick components are not encased in plastic. This makes both the base adapter (BA) and the daughter cards (DC) susceptible to electrostatic discharge (ESD) damage. Follow these recommendations to protect the hardware –Never connect or disconnect a ToolStick daughter card from the base adapter while connected to a PC –Always connect or disconnect a ToolStick by holding the large plastic connector or the edges of the boards –Be careful when using the mechanical components, such as the potentiometers, so as to not stress the connectors

19 Handling The ToolStick The Wrong way to hold the ToolStick

20 Handling The ToolStick The Correct way to hold the ToolStick

21

22

23 Consider a simple program #include // SFR declarations extern void Init(void); // in udc_init,c extern void wr_leds(unsigned char); // in unc_init.c extern unsigned char rd_buttons(void); // in unc_init.c void main (void) { Init(); // call to external function initialize UDC while(1) { wr_leds(rd_buttons()); // call external functions }

24 //udc_init.c - version 1.0 #include // SFR declarations // // Init - Configure UDC // Returns : None // Parameters : None // void Ext_Osc_Init(void); // switch clock to XTAL void init_crossbar(void); void init_ports(void);

25 void Init (void) { // Disable interrupts EA = 0; // Disable watchdog timer WDTCN = 0xde; WDTCN = 0xad; // Enable crossbar switch init_crossbar(); // Set up ports init_ports(); Ext_Osc_Init(); // Use external XTAL }

26

27 // // Init_crosbar - Configure crossbar switch // Returns : None // Parameters : None // void init_crossbar (void) { XBR0 = 0x04; // Enable UART 0 TX to P0.0, RX to P0.1 XBR1 = 0x80; // Output system clock to P0.2 P74OUT = 0x08; // Set P5(7_4) to push pull output XBR2 = 0x40; // Enable cross bar }

28 XBR2 = 0x40; // Enable cross bar

29 XBR0 = 0x04; // Enable UART 0 TX to P0.0, RX to P0.1

30 XBR1 = 0x80; // Output system clock to P0.2

31 P74OUT = 0x08; // Set P5(7_4) to push pull output

32 XBR2 = 0x40; // Enable cross bar

33 void init_ports(void) { P0MDOUT = 0x04; //Set P0.2 (sys clk) to push pull for fast rise time P1MDOUT = 0x00; P2MDOUT = 0xFF; //Set P2 to push pull for fast rise times P3MDOUT = 0x00; P5 = 0x0f; //TURN ON LEDS }

34 unsigned char rd_buttons(void) { unsigned char btns; btns = (~P5) & 0x0f; return(btns); } void wr_leds(unsigned char leds) { P5 = (leds << 4) | 0x0f; }