Lecture Microcomputer principles and applications - Chapter 8: Analog-to-Digital Converter

21 40 0
Lecture Microcomputer principles and applications - Chapter 8: Analog-to-Digital Converter

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

To transform an analog signal into a digital one, the analog-to-digital converter (ADC) samples the input at fixed interval and do the conversion.

11:55:05 Chapter Analog-to-Digital Converter 11:55:05 8.1 Introduction To transform an analog signal into a digital one, the analog-to-digital converter (ADC) samples the input at fixed interval and the conversion Microcomputer principles and applications 11:55:05 8.1 Introduction Microcomputer principles and applications 11:55:05 8.1 Introduction MSP430 may contain one or more converters: • • • Comparator: Compare the voltages on its two input terminals and return or 1, e.g., Comparator_A+ Successive-approximation ADC: Use binary search to determine the closest digital representation of the input signal, e.g., ADC10 and ADC12 to give 10 and 12 bits of output Sigma-delta ADC: A more complicated ADC that gives higher resolution (more bits) but at a slower speed, e.g., SD16 and SD16_A, both of which give a 16-bit output Microcomputer principles and applications 11:55:05 8.1 Introduction Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL1 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL1 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL1 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10AE0 Analog (Input) Enable Control Register Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10AE1 Analog (Input) Enable Control Register Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10MEM Conversion-Memory Register, Binary Format Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10MEM Conversion-Memory Register, 2s Complement Format Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10DTC0 Data Transfer Control Register Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10DTC1 Data Transfer Control Register Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10SA Start Address Register for Data Transfer Microcomputer principles and applications 11:55:05 8.3 Main components of ADC10 • • • • Built-in voltage reference: Two selectable voltage levels, 2.5V and 1.5V Setting REFON in ADC10CTL0 register to enables the internal reference Setting REF2_5V in ADC10CTL0 to selects 2.5 V as the internal reference, otherwise 1.5V After voltage reference is turned on, we must wait about 30µs for it to settle Microcomputer principles and applications 11:55:05 8.4 Steps for single conversion • • • • Configure ADC10, including the ADC10ON bit to enable the module The ENC bit must be clear so that most bits in ADC10CTL0 and ADC10CTL1 can be changed Set the ENC bit to enable a conversion This cannot be done while the module is being configured in the previous step Trigger the conversion.This is done either by setting the ADC10SC bit or by an edge from Timer_A ADC10ON, ENC, ADC10SC are all in control register ADC10CTL0 Microcomputer principles and applications 11:55:05 8.5 ADC10 Interrupts One interrupt and one interrupt vector: • • When DTC is not used (ADC10DTC1 = 0), ADC10IFG is set when conversion results are loaded into ADC10MEM When DTC is used (ADC10DTC1 > 0), ADC10IFG is set when a block transfer completes If both ADC10IE and GIE bits are set: • • ADC10IFG generates an interrupt request ADC10IFG is automatically reset when interrupt request is serviced, or it may be reset by software Microcomputer principles and applications ... the analog-to-digital converter (ADC) samples the input at fixed interval and the conversion Microcomputer principles and applications 11:55:05 8.1 Introduction Microcomputer principles and applications. .. a 16-bit output Microcomputer principles and applications 11:55:05 8.1 Introduction Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles. .. principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles and applications 11:55:05 8.2 ADC10 Control Registers - ADC10CTL0 Microcomputer principles and applications

Ngày đăng: 12/02/2020, 18:37

Mục lục

  • Course learning outcomes and topics

    • Outcomes

    • 1.7 Logical and arithmetic operations

    • 1.7 Logical and arithmetic operations

    • 1.7 Logical and arithmetic operations

    • 1.7 Logical and arithmetic operations

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 3.4 Instruction Set Architecture (ISA)

    • 4.2 C Types, Operators, and Expressions

    • 4.2 C Types, Operators, and Expressions

Tài liệu cùng người dùng

Tài liệu liên quan