搜档网
当前位置:搜档网 › TI_LaunchPad原理图

TI_LaunchPad原理图

TI_LaunchPad原理图
TI_LaunchPad原理图

Tiva?C Series TM4C123G LaunchPad Evaluation Board

User's Guide

Literature Number:SPMU296

April2013

Contents 1Board Overview (4)

1.1Kit Contents (5)

1.2Using the Tiva C Series LaunchPad (5)

1.3Features (5)

1.4BoosterPacks (6)

1.5Specifications (6)

2Hardware Description (7)

2.1Functional Description (7)

2.1.1Microcontroller (7)

2.1.2USB Connectivity (8)

2.1.3Motion Control (8)

2.1.4User Switches and RGB User LED (9)

2.1.5Headers and BoosterPacks (9)

2.2Power Management (11)

2.2.1Power Supplies (11)

2.2.2Hibernate (11)

2.2.3Clocking (12)

2.2.4Reset (12)

2.3In-Circuit Debug Interface(ICDI) (12)

2.3.1Virtual COM Port (12)

3Software Development (13)

3.1Software Description (13)

3.2Source Code (13)

3.3Tool Options (13)

3.4Programming the Tiva C Series LaunchPad Evaluation Board (14)

4References,PCB Layout,and Bill of Materials (15)

4.1References (15)

4.2Component Locations (16)

4.3Bill of Materials(BOM) (17)

A Schematics (19)

https://www.sodocs.net/doc/7b4823381.html,

List of Figures

1-1.Tiva C Series TM4C123G LaunchPad Evaluation Board (4)

2-1.Tiva C Series LaunchPad Evaluation Board Block Diagram (7)

4-1.Tiva C Series LaunchPad Component Locations(Top View) (16)

4-2.Tiva C Series LaunchPad Dimensions (17)

List of Tables

1-1.EK-TM4C123GXL Specifications (6)

https://www.sodocs.net/doc/7b4823381.html,B Device Signals (8)

https://www.sodocs.net/doc/7b4823381.html,er Switches and RGB LED Signals (9)

2-3.J1Connector (9)

2-4.J2Connector (10)

2-5.J3Connector (10)

2-6.J4Connector (11)

2-7.In-Circuit Debug Interface(ICDI)Signals (12)

2-8.Virtual COM Port Signals (12)

4-1.EK-TM4C123GXL Bill of Materials (17)

Power Select Switch

Green Power LED

USB Connector

Reset Switch

RGB User LED User Switch 2

User Switch

1USB Micro-A/-B Connector (Device)

Tiva C Series LaunchPad

BoosterPack XL Interface (J1, J2, J3,and J4 Connectors)

Tiva C Series LaunchPad

BoosterPack XL Interface (J1, J2, J3,and J4 Connectors)MSP430

LaunchPad-Compatible BoosterPack Interface MSP430

LaunchPad-Compatible BoosterPack Interface

Tiva

TM4C123GH6PMI Microcontroller

Tiva

TM4C123GH6PMI Microcontroller

Chapter 1

SPMU296–April 2013

Board Overview

The Tiva?C Series TM4C123G LaunchPad Evaluation Board (EK-TM4C123GXL )is a low-cost evaluation platform for ARM ?Cortex?-M4F-based microcontrollers.The Tiva C Series LaunchPad design highlights the TM4C123GH6PMI microcontroller USB 2.0device interface,hibernation module,and motion control pulse-width modulator (MC PWM)module.The Tiva C Series LaunchPad also features programmable user buttons and an RGB LED for custom applications.The stackable headers of the Tiva C Series TM4C123G LaunchPad BoosterPack XL interface demonstrate how easy it is to expand the functionality of the Tiva C Series LaunchPad when interfacing to other peripherals on many existing BoosterPack add-on boards as well as future products.Figure 1-1shows a photo of the Tiva C Series LaunchPad.

Figure 1-1.Tiva C Series TM4C123G LaunchPad Evaluation Board

Tiva,MSP430,Code Composer Studio are trademarks of Texas Instruments.Cortex is a trademark of ARM Limited.

ARM,RealView are registered trademarks of ARM Limited.

Microsoft,Windows are registered trademarks of Microsoft Corporation.

https://www.sodocs.net/doc/7b4823381.html, Kit Contents 1.1Kit Contents

The Tiva C Series TM4C123G LaunchPad Evaluation Kit contains the following items:

?Tiva C Series LaunchPad Evaluation Board(EK-TM4C123GXL)

?On-board In-Circuit Debug Interface(ICDI)

?USB micro-B plug to USB-A plug cable

?README First document

1.2Using the Tiva C Series LaunchPad

The recommended steps for using the Tiva C Series TM4C123G LaunchPad Evaluation Kit are:

1.Follow the README First document included in the kit.The README First document will help you

get the Tiva C Series LaunchPad up and running in minutes.See the Tiva C Series LaunchPad web

page for additional information to help you get started.

2.Experiment with LaunchPad BoosterPacks.A selection of Tiva C Series BoosterPacks and

compatible MSP430?BoosterPacks can be found at the TI MCU LaunchPad web page.

3.Take your first step toward developing an application with Project0using your preferred ARM

tool-chain and the Tiva C Series TivaWare Peripheral Driver Library.Software applications are

loaded using the on-board In-Circuit Debug Interface(ICDI).See Chapter3,Software Development,

for the programming procedure.The TivaWare for C Series Peripheral Driver Library Software

Reference Manual contains specific information on software structure and function.For more

information on Project0,go to the Tiva C Series LaunchPad wiki page.

4.Customize and integrate the hardware to suit an end application.This user's manual is an

important reference for understanding circuit operation and completing hardware modification.

You can also view and download almost six hours of training material on configuring and using the

LaunchPad.Visit the Tiva C Series LaunchPad Workshop for more information and tutorials.

1.3Features

Your Tiva C Series LaunchPad includes the following features:

?Tiva TM4C123GH6PMI microcontroller

?Motion control PWM

?USB micro-A and micro-B connector for USB device,host,and on-the-go(OTG)connectivity

?RGB user LED

?Two user switches(application/wake)

?Available I/O brought out to headers on a0.1-in(2.54-mm)grid

?On-board ICDI

?Switch-selectable power sources:

–ICDI

–USB device

?Reset switch

?Preloaded RGB quickstart application

?Supported by TivaWare for C Series software including the USB library and the peripheral driver library ?Tiva C Series TM4C123G LaunchPad BoosterPack XL Interface,which features stackable headers to expand the capabilities of the Tiva C Series LaunchPad development platform

–For a complete list of available BoosterPacks that can be used with the Tiva C Series LaunchPad, see the LaunchPad web page.

BoosterPacks https://www.sodocs.net/doc/7b4823381.html, 1.4BoosterPacks

The Tiva C Series LaunchPad provides an easy and inexpensive way to develop applications with the

TM4C123GH6PM microcontroller.Tiva C Series BoosterPacks and MSP430BoosterPacks expand the available peripherals and potential applications of the Tiva C Series LaunchPad.BoosterPacks can be used with the Tiva C Series LaunchPad or you can simply use the on-board TM4C123GH6PM

microcontroller as its processor.See Chapter2for more information.

Build your own BoosterPack and take advantage of Texas Instruments’website to help promote it!From sharing a new idea or project,to designing,manufacturing,and selling your own BoosterPack kit,TI offers

a variety of avenues for you to reach potential customers with your solutions.

1.5Specifications

Table1-1summarizes the specifications for the Tiva C Series LaunchPad.

Table1-1.EK-TM4C123GXL Specifications

Parameter Value

4.75V DC to

5.25V DC from one of the following sources:

?Debugger(ICDI)USB Micro-B cable(connected to a

Board supply voltage

PC)

?USB Device Micro-B cable(connected to a PC)

2.0in x2.25in x0.425in(5.0cm x5.715cm x10.795

Dimensions

mm)(L x W x H)

? 3.3V DC(300mA max)

Break-out power output? 5.0V

DC (depends on3.3V DC usage,23mA to323

mA) RoHS status Compliant

Debug Breakout Pads

Breakout Pads

Chapter2

SPMU296–April2013 Hardware Description

The Tiva C Series LaunchPad includes a TM4C123GH6PM microcontroller and an integrated ICDI as well as a range of useful peripheral features(as the block diagram in Figure2-1shows).This chapter describes how these peripherals operate and interface to the microcontroller.

Figure2-1.Tiva C Series LaunchPad Evaluation Board Block Diagram

2.1Functional Description

2.1.1Microcontroller

The TM4C123GH6PM is a32-bit ARM Cortex-M4-based microcontroller with256-kB Flash memory,32-kB SRAM,and80-MHz operation;USB host,device,and OTG connectivity;a Hibernation module and PWM;and a wide range of other peripherals.See the TM4C123GH6PM microcontroller data sheet

(literature number SPMS376)for complete device details.

Functional Description https://www.sodocs.net/doc/7b4823381.html, Most of the microcontroller signals are routed to0.1-in(2.54-mm)pitch headers.An internal multiplexer allows different peripheral functions to be assigned to each of these GPIO pads.When adding external circuitry,consider the additional load on the evaluation board power rails.

The TM4C123GH6PM microcontroller is factory-programmed with a quickstart demo program.The

quickstart program resides in on-chip Flash memory and runs each time power is applied,unless the

quickstart application has been replaced with a user program.

2.1.2USB Connectivity

The EK-TM4C123GXL is designed and functions as a USB device without hardware modification.The USB device signals are dedicated to USB functionality and are not shared with the BoosterPack headers.

The USB device signals are listed in Table2-1.

https://www.sodocs.net/doc/7b4823381.html,B Device Signals

GPIO Pin Pin Function USB Device

PD4USB0DM D–

PD5USB0DP D+

The TM4C123GH6PM target device is also capable of USB embedded host and on-the-go(OTG)

functions.OTG functionality can be enabled by populating R25and R29with0-Ωresistors.These

resistors connect the USB ID and USB V

BUS signals to PB0and PB1.When these resistors are populated,

PB0and PB1must remain in the respective USB pin mode configurations to prevent device damage.PB0 and PB1are also present on the J1BoosterPack header.Therefore,if R25or R29are populated,care must be taken not to conflict these signals with BoosterPack signals.

USB embedded host operation can be enabled in the same way for USB devices that are self-powered.

Providing power when acting as a USB host requires a BoosterPack with power switching and appropriate connectors.All USB host signals are available on the BoosterPack interface except D+and D–,which are only available on the USB micro-A/-B connector and the two adjacent test points.

When connected as a USB device,the evaluation board can be powered from either the ICDI or the USB Device connectors.The user can select the power source by moving the POWER SELECT switch(SW3) to the Device position.See the Power Management schematic(appended to this document).

2.1.3Motion Control

The EK-TM4C123GXL includes the Tiva C-Series Motion Control PWM technology,featuring two PWM modules capable of generating16PWM outputs.Each PWM module provides a great deal of flexibility and can generate simple PWM signals—for example,those required by a simple charge pump—as well as paired PWM signals with dead-band delays,such as those required by a half-H bridge driver.Three generator blocks can also generate the full six channels of gate controls required by a3-phase inverter bridge.

Two quadrature encoder interfaces(QEI)are also available to provide motion control feedback.See the Headers and BoosterPacks section of this document for details about the availability of these signals on the BoosterPack interface.

https://www.sodocs.net/doc/7b4823381.html, Functional Description 2.1.4User Switches and RGB User LED

The Tiva C Series LaunchPad comes with an RGB LED.This LED is used in the preloaded RGB

quickstart application and can be configured for use in custom applications.

Two user buttons are included on the board.The user buttons are both used in the preloaded quickstart application to adjust the light spectrum of the RGB LED as well as go into and out of hibernation.The user buttons can be used for other purposes in the user’s custom application.

The evaluation board also has a green power LED.Table2-2shows how these features are connected to the pins on the microcontroller.

https://www.sodocs.net/doc/7b4823381.html,er Switches and RGB LED Signals

GPIO Pin Pin Function USB Device

PF4GPIO SW1

PF0GPIO SW2

PF1GPIO RGB LED(Red)

PF2GPIO RGB LED(Blue)

PF3GPIO RGD LED(Green)

2.1.5Headers and BoosterPacks

The two double rows of stackable headers are mapped to most of the GPIO pins of the TM4C123GH6PM microcontroller.These rows are labeled as connectors J1,J2,J3,and J4.Connectors J3and J4are

located0.1in(2.54mm)inside of the J1and J2connectors.All40header pins of the J1,J2,J3,and J4 connectors make up the Tiva C Series TM4C123G LaunchPad BoosterPack XL Interface.Table2-3

through Table2-6show how these header pins are connected to the microcontroller pins and which GPIO functions can be selected.

NOTE:To configure the device peripherals easily and intuitively using a graphical user interface

(GUI),see the Tiva C Series Pinmux Utility found at https://www.sodocs.net/doc/7b4823381.html,/tool/lm4f_pinmux.This easy-

to-use interface makes setting up alternate functions for GPIOs simple and error-free.

Table2-3.J1Connector(1)

Analog Tiva C

GPIOPCTL Register Setting

On-

Function Series

J4Pin GPIO board

MCU

GPIO Function

1234567891415

Pin

AMSEL

1.01 3.3V

1.02PB5AIN11–57–SSI2Fss–M0PWM3––T1CCP1CAN0Tx–––

1.03PB0USB0ID–45U1Rx–––––T2CCP0––––

1.04PB1USB0VBUS–46U1Tx–––––T2CCP1––––

1.05PE4AIN9–59U5Rx–I2C2SCL M0PWM4M1PWM2––CAN0Rx–––

1.06PE5AIN8–60U5Tx–I2C2SDA M0PWM5M1PWM3––CAN0Tx–––

1.07PB4AIN10–58–SSI2Clk–M0PWM2––T1CCP0CAN0Rx–––

1.08PA5––22–SSI0Tx–––––––––

1.09PA6––23––I2C1SCL–M1PWM2––––––

1.10PA7––24––I2C1SDA–M1PWM3––––––

(1)Shaded cells indicate configuration for compatibility with the MSP430LaunchPad.

Functional Description https://www.sodocs.net/doc/7b4823381.html,

Table2-4.J2Connector(1)

Analog Tiva C

GPIOPCTL Register Setting

Function

J4On-board Series

GPIO

Pin Function MCU

GPIO

1234567891415

Pin

AMSEL

2.01GND

2.02PB2––47––I2C0SCL–––T3CCP0––––

2.03PE0AIN3–9U7Rx––––––––––

2.04PF0–USR_SW2/28U1RTS SSI1Rx CAN0Rx–M1PWM4PhA0T0CCP0NMI C0o––

WAKE(R1)

2.05RESET

PB7––4–SSI2Tx–M0PWM1––T0CCP1––––

PD1AIN6Connected62SSI3Fss SSI1Fss I2C3SDA M0PWM7M1PWM1–WT2CCP1––––

2.06for MSP430

Compatibility

(R10)

PB6––1–SSI2Rx–M0PWM0––T0CCP0––––

PD0AIN7Connected61SSI3Clk SSI1Clk I2C3SCL M0PWM6M1PWM0–WT2CCP0––––

2.07for MSP430

Compatibility

(R9)

2.08PA4––21–SSI0Rx–––––––––

2.09PA3––20–SSI0Fss–––––––––

2.10PA2––19–SSI0Clk–––––––––

(1)Shaded cells indicate configuration for compatibility with the MSP430LaunchPad.

Table2-5.J3Connector(1)

Analog Tiva C

GPIOPCTL Register Setting

Function

J4On-board Series

GPIO

Pin Function MCU

GPIO

1234567891415

Pin

AMSEL

3.01 5.0V

3.02GND

PD0AIN7–61SSI3Clk SSI1Clk I2C3SCL M0PWM6M1PWM0–WT2CCP0––––

PB6–Connected1–SSI2Rx–M0PWM0–T0CCP0––––

3.03for MSP430

Compatibilit

y(R9)

PD1AIN6–92SSI3Fss SSI1Fss I2C3SDA M0PWM7M1PWM1–WT2CCP1––––

PB7–Connected4–SSI2Tx–M0PWM1––T0CCP1––––

3.04for MSP430

Compatibilit

y(R10)

3.05PD2AIN563SSI3Rx SSI1Rx–M0FAULT0––WT3CCP0USB0EPE

N

3.06PD3AIN4–64SSI3Tx SSI1Tx––––WT3CCP1USB0PFLT–––

3.07PE1AIN2–8U7Tx–––––––––

3.08PE2AIN1–7–––––––––––

3.09PE3AIN0–6–––––––––––

3.10PF1––29U1CTS SSI1Tx––M1PWM5–T0CCP1–C1o TRD1–

(1)Shaded cells indicate configuration for compatibility with the MSP430LaunchPad.

https://www.sodocs.net/doc/7b4823381.html, Power Management

Table2-6.J4Connector

Analog Tiva C

GPIOPCTL Register Setting

On-

Function

J4Series

GPIO board

Pin MCU

GPIO Function

1234567891415

Pin

AMSEL

4.01PF2–Blue LED30–SSI1Clk–M0FAULT0M1PWM6–T1CCP0–––TRD0

(R11)

4.02PF3–Green31–SSI1Fss CAN0Tx–M1PWM7–T1CCP1–––TRCLK

LED

(R12)

4.03PB3––48––I2C0SDA–––T3CCP1––––

4.04PC4C1––16U4Rx U1Rx–M0PWM6–IDX1WT0CCP0U1RTS–––

4.05PC5C1+–15U4Tx U1Tx–M0PWM7–PhA1WT0CCP1U1CTS–––

4.06PC6C0+–14U3Rx––––PhB1WT1CCP0USB0EPE–––

N

4.07PC7C0––13U3Tx–––––WT1CCP1USB0PFLT–––

4.08PD6––53U2Rx––––PhA0WT5CCP0––––

4.09PD7––10U2Tx––––PhB0WT5CCP1NMI–––

4.10PF4–USR_SW5––––M1FAULT0IDX0T2CCP0USB0EPE–––

1(R13)N

Connectors J1and J2of the Tiva C Series TM4C123G LaunchPad BoosterPack XL Interface provide

compatibility with MSP430LaunchPad BoosterPacks.Highlighted functions(shaded cells)in Table2-3 through Table2-5indicate configuration for compatibility with the MSP430LaunchPad.

A complete list of Tiva C Series BoosterPacks and Tiva C Series LaunchPad-compatible MSP430

BoosterPacks is available at https://www.sodocs.net/doc/7b4823381.html,/tm4c123g-launchpad.

2.2Power Management

2.2.1Power Supplies

The Tiva C Series LaunchPad can be powered from one of two power sources:

?On-board ICDI USB cable(Debug,Default)

?USB device cable(Device)

The POWER SELECT switch(SW3)is used to select one of the two power sources.Select only one

source at a time.

2.2.2Hibernate

The Tiva C Series LaunchPad provides an external32.768-kHz crystal(Y1)as the clock source for the TM4C123GH6PM Hibernation module clock source.The current draw while in Hibernate mode can be measured by making some minor adjustments to the Tiva C Series LaunchPad.This procedure is

explained in more detail later in this section.

The conditions that can generate a wake signal to the Hibernate module on the Tiva C Series LaunchPad are waking on a Real-time Clock(RTC)match and/or waking on assertion of the WAKE pin.(1)The second user switch(SW2)is connected to the WAKE pin on the microcontroller.The WAKE pin,as well as the

V

DD and HIB pins,are easily accessible through breakout pads on the Tiva C Series LaunchPad.See the

appended schematics for details.

(1)If the board does not turn on when you connect it to a power source,the microcontroller might be in Hibernate mode(depending on the

programmed application).You must satisfy one of the programmed wake conditions and connect the power to bring the microcontroller out of Hibernate mode and turn on the board.

In-Circuit Debug Interface(ICDI)https://www.sodocs.net/doc/7b4823381.html, There is no external battery source on the Tiva C Series LaunchPad Hibernation module,which means the VDD3ON power control mechanism should be used.This mechanism uses internal switches to

remove power from the Cortex-M4processor as well as to most analog and digital functions while

retaining I/O pin power.

To measure the Hibernation mode current or the Run mode current,the VDD jumper that connects the3.3 V pin and the MCU_PWR pin must be removed.See the complete schematics(appended to this

document)for details on these pins and component locations.An ammeter should then be placed

between the3.3V pin and the MCU_PWR pin to measure I

DD (or I

HIB_VDD3ON

).The TM4C123GH6PM

microcontroller uses V

DD as its power source during V

DD3ON

Hibernation mode,so I

DD

is the Hibernation

mode(VDD3ON mode)current.This measurement can also be taken during Run mode,which measures I

DD

the microcontroller running current.

2.2.3Clocking

The Tiva C Series LaunchPad uses a16.0-MHz crystal(Y2)to complete the TM4C123GH6PM

microcontroller main internal clock circuit.An internal PLL,configured in software,multiples this clock to higher frequencies for core and peripheral timing.

The Hibernation module is clocked from an external32.768-KHz crystal(Y1).

2.2.4Reset

The RESET signal into the TM4C123GH6PM microcontroller connects to the RESET switch and to the ICDI circuit for a debugger-controlled reset.

External reset is asserted(active low)under any of three conditions:

?Power-on reset(filtered by an R-C network)

?RESET switch held down

?By the ICDI circuit when instructed by the debugger(this capability is optional,and may not be supported by all debuggers)

2.3In-Circuit Debug Interface(ICDI)

The Tiva C Series LaunchPad evaluation board comes with an on-board In-Circuit Debug Interface(ICDI).

The ICDI allows for the programming and debug of the TM4C123GH6PM using the LM Flash Programmer and/or any of the supported tool chains.Note that the ICDI supports only JTAG debugging.An external debug interface can be connected for Serial Wire Debug(SWD)and SWO(trace).

Table2-7shows the pins used for JTAG and SWD.These signals are also mapped out to easily

accessible breakout pads and headers on the board.

Table2-7.In-Circuit Debug Interface(ICDI)Signals

GPIO Pin Pin Function

PC0TCK/SWCLK

PC1TMS/SWDIO

PC2TDI

PC3TDO/SWO

2.3.1Virtual COM Port

When plugged in to a PC,the device enumerates as a debugger and a virtual COM port.Table2-8shows the connections for the COM port to the pins on the microcontroller.

Table2-8.Virtual COM Port Signals

GPIO Pin Pin Function

PA0U0RX

PA1U0TX

Chapter3

SPMU296–April2013

Software Development This chapter provides general information on software development as well as instructions for Flash memory programming.

3.1Software Description

The TivaWare software provided with the Tiva C Series LaunchPad provides access to all of the

peripheral devices supplied in the design.The Tiva C Series Peripheral Driver Library is used to operate the on-chip peripherals as part of TivaWare.

TivaWare includes a set of example applications that use the TivaWare Peripheral Driver Library.These applications demonstrate the capabilities of the TM4C123GH6PM microcontroller,as well as provide a starting point for the development of the final application for use on the Tiva C Series LaunchPad

evaluation board.

3.2Source Code

The complete source code including the source code installation instructions are provided at

https://www.sodocs.net/doc/7b4823381.html,/tm4c123g-launchpad.The source code and binary files are installed in the DriverLib tree.

3.3Tool Options

The source code installation includes directories containing projects and/or makefiles for the following tool-chains:

?Keil ARM RealView?Microcontroller Development System

?IAR Embedded Workbench for ARM

?Sourcery CodeBench

?Texas Instruments'Code Composer Studio?IDE

Download evaluation versions of these tools from the TI website.Due to code size restrictions,the

evaluation tools may not build all example programs.A full license is necessary to re-build or debug all examples.

Instructions on installing and using each of the evaluation tools can be found in the Quickstart guides(for example,Quickstart-Keil,Quickstart-IAR)which are available for download from the evaluation kit section of the TI website at https://www.sodocs.net/doc/7b4823381.html,/tiva-c.

For detailed information on using the tools,see the documentation included in the tool chain installation or visit the respective web site of the tool supplier.

Programming the Tiva C Series LaunchPad Evaluation Board https://www.sodocs.net/doc/7b4823381.html, 3.4Programming the Tiva C Series LaunchPad Evaluation Board

The Tiva C Series LaunchPad software package includes pre-built binaries for each of the example

applications.If you have installed TivaWare to the default installation path of

C:\ti\TivaWare_C_Series_,you can find the example applications in

C:\ti\TivaWare_C_Series_\examples\boards\ek-tm4c123gxl.The on-board ICDI is used with the LM Flash Programmer tool to program applications on the Tiva C Series LaunchPad.

Follow these steps to program example applications into the Tiva C Series LaunchPad evaluation board using the ICDI:

1.Install LM Flash Programmer on a PC running Microsoft?Windows?.

2.Switch the POWER SELECT switch to the right for Debug mode.

3.Connect the USB-A cable plug to an available port on the PC and the Micro-B plug to the Debug USB

port on the board.

4.Verify that the POWER LED D4on the board is lit.

5.Run the LM Flash Programmer.

6.In the Configuration tab,use the Quick Set control to select the EK-TM4C123GXL evaluation board.

7.Move to the Program tab and click the Browse button.Navigate to the example applications directory

(the default location is C:\ti\TivaWare_C_Series_\examples\boards\ek-tm4c123gxl).

8.Each example application has its own directory.Navigate to the example directory that you want to

load and then into the directory which contains the binary(*.bin)files.Select the binary file and click

Open.

9.Set the Erase Method to Erase Necessary Pages,check the Verify After Program box,and check

Reset MCU After Program.

Program execution starts once the Verify process is complete.

Chapter4

SPMU296–April2013 References,PCB Layout,and Bill of Materials

4.1References

In addition to this document,the following references are available for download at https://www.sodocs.net/doc/7b4823381.html,:

?Tiva C Series TM4C123GH6PM Microcontroller Data Sheet(literature number SPMS376).

?LM Flash Programmer tool.Available for download at https://www.sodocs.net/doc/7b4823381.html,/tool/lmflashprogrammer.

?TivaWare for C Series Driver Library.Available for download at https://www.sodocs.net/doc/7b4823381.html,/tool/sw-tm4c-drl.

?TivaWare for C Series Driver Library User’s Manual(literature number SPMU298).

?TPS73633Low-Dropout Regulator with Reverse Current Protection Data Sheet(literature number SBVS038)

?Texas Instruments’Code Composer Studio IDE website:https://www.sodocs.net/doc/7b4823381.html,/ccs

Additional support:

?RealView MDK(https://www.sodocs.net/doc/7b4823381.html,/arm/rvmdkkit.asp)

?IAR Embedded Workbench(https://www.sodocs.net/doc/7b4823381.html,).

?Sourcery CodeBench development tools(https://www.sodocs.net/doc/7b4823381.html,/gnu_toolchains/arm).

Component Locations https://www.sodocs.net/doc/7b4823381.html, 4.2Component Locations

Plots of the top-side component locations are shown in Figure4-1and the board dimensions are shown in Figure4-2.

Figure4-1.Tiva C Series LaunchPad Component Locations(Top View)

https://www.sodocs.net/doc/7b4823381.html, Bill of Materials(BOM)

Figure4-2.Tiva C Series LaunchPad Dimensions

NOTE:Units are in mils(one thousandth of an inch):1mil=0.001inch(0.0254mm).

4.3Bill of Materials(BOM)

Table4-1shows the bill of materials for the EK-TM4C123GXL evaluation board.

Table4-1.EK-TM4C123GXL Bill of Materials

Item Ref Des Qty Description Manufacturer Manufacturer Part No 1C1-2,C7,C12,C145Capacitor,0402,X5R,10V,Low Johanson Dielectrics100R07X105KV4T

ESR Inc

2C25-26,C31-324Capacitor,10pF,50V,5%,Murata GRM1555C1H100JZ01D

NPO/COG,0402

3C28-292Capacitor,24pF,50V,5%,TDK C1005C0G1H240J

NPO/COG,0402

4C3,C5,C8,C15,7Capacitor,0.01μF25V,10%Taiyo Yuden TMK105B7103KV-F C18-19,C210402X7R

5C4,C6,C10-11,C17,8Capacitor,0.1μF16V,10%0402Taiyo Yuden EMK105B7104KV-F C20,C23-24X7R

6C9,C222Capacitor,2.2μF,16V,10%,Murata GRM188R61C225KE15D

0603,X5R

7D11LED,Tri-Color RGB,0404SMD Everlight18-038/RSGHBHC1-S02/2T

Common Anode

8D41LED,Green565nm,Clear0805Lite-On LTST-C171GKT

SMD

9H241Header,1x2,0.100,T-Hole,3M961102-6404-AR

Vertical Unshrouded,0.220Mate FCI68001-102HLF 10H251Jumper,0.100,Gold,Black,Sullins SPC02SYAN

Closed

11J1,J32Header,2x10,T-Hole Vertical Samtec SSW-110-23-S-D

unshrouded stacking

Bill of Materials(BOM)https://www.sodocs.net/doc/7b4823381.html,

Table4-1.EK-TM4C123GXL Bill of Materials(continued)

Item Ref Des Qty Description Manufacturer Manufacturer Part No 12J111USB Connector,Micro B Recept Hirose ZX62-B-5PA

RA SMT BTTM MNT

13J2,J42Header,1x2,0.100,SMT,Samtec TSM-110-01-S-DH-A-P-TR

Horizontal Unshrouded,0.2304UCON10995

Mate

Major League TSHSM-110-D-02-T-H-AP-

Electronics TR-P-LF 14J91USB Connector,Micro A/B Hirose ZX62-AB-5PA

Receptacle SMD

15Q1-33NPN SC70pre-biased Diodes Inc DTC114EET1G

16R1-2,R9-16,R20,12Resistor,0Ω1/10W0603SMD Panasonic ERJ-3GEY0R00V R26

17R18-19,R21-23,R286Resistor,10kΩ,1/10W,5%,0402Yageo RC0402FR-0710KL

Thick Film

18R3-5,R8,R275Resistor,330Ω,1/10W,5%,0402Yageo RC0402FR-07330RL

19R311Resistor,1MΩ1/10W,5%,0402Rohm MCR01MRTF1004

20RESET SW1,SW23Switch,Tact6mm SMT,160gf Omron B3S-1000

21SW31Switch,DPDT,SMT300mA×2at C K Components JS202011SCQN

6V

22U1,U22Tiva C Series MCU Texas Instruments TM4C123GH6PMI

TM4C123GH6PM

23U81Regulator,3.3V,400mA,LDO Texas Instruments TPS73633DRBT

24Y11Crystal,32.768kHz Radial Can Abracon AB26TRB-32.768KHZ-T 25Y2,Y52Crystal,16.00MHz5.0x3.2mm NDK NX5032GA-16.000000MHz

SMT Abracon ABM3-16.000MHz-B2-T

PCB Do Not Populate List

(Shown for information only)

26C31,C342Capacitor,0.1μF16V,10%0402Taiyo Yuden EMK105B7104KV-F

X7R

27D21Diode,Dual Schottky,SC70,Diodes Inc BAS70W-05-7-F

BAS70Common Cathode

28R171Resistor,10kΩ1/10W5%,0402Yageo RC0402FR-0710KL

Thick Film

29R241Resistor,330Ω,1/10W,5%,0402Yageo RC0402FR-07330RL

30R25,R29-303Resistor,0Ω,1/10W0603Panasonic ERJ-3GEY0R00V

31U41IC,Single Voltage Supervisor,5V,Texas Instruments TLV803MDBZR

DBV

Appendix A

SPMU296–April2013

Schematics

This section contains the complete schematics for the Tiva C Series LaunchPad board.?Microcontroller,USB,Expansion,Buttons,and LED

?Power Management

?In-Circuit Debug Interface

51仿真器使用说明

51仿真器使用说明 初学51单片机或是业余玩玩单片机开发,每次总要不断的调试程序,如没有仿真器又不喜欢用软件仿真,那只有每次把编译好的程序烧录到芯片上,然后在应用电路或实验板上观察程序运行的结果,对于一些小程序这样的做好也可以很快找到程序上的错误,但是程序稍大,变量也会变的很多,系统调试就极为复杂,此时就需要有一台仿真器。一台好的仿真器非常贵,这里介绍这种自制的51芯片仿真器。 这个仿真器的仿真CPU是使用SST公司的SST89C516RD2。 1.制作带串口的的最小应用板 无论是EasyIAP还是仿真器,都需要用串行口使SST89C58芯片和PC上位机进行通讯传输数据,因此先要设计RS232/TTL转换电路。由于现在的电脑多取消了普通串口,因此我们此处设计了一个usb转TTL的串口接口电路,使用的接口芯片是PL2303。 2.通过编程器烧写仿真监控程序 接下来需要把仿真CPU的HEX文件烧到SST89C58里面,再把它插到上面的最小系统电路中就可以了。因为SST89C58有两个程序存储区,在这里要注意的是在烧写时就把仿真监控程序烧到SST89C58的第二个存储区也就是的RB1。烧写时要求用支持SST89C58的编程器。 3. 仿真器原理简介 SST的MCU SoftICE通过PC的一个COM口与KEIL uVision2 Debugger 通讯它可以实时地调试目标程序,因此提供使用SST单片机的工程师简单有效和容易使用在板上调试程序。尽管小而紧凑,SoftICE却提供高级仿真器的大部分功能与KEIL uVision2 Debugger 一起使用。 SoftICE提供以下特性: 源代码调试支持汇编语言和C51高级语言 单步执行STEP和STEP OVER 断点调试做多到10个固定和1个临时断点 全速运行 显示修改变量 读/写数据存储器 读/写代码存储器 读/写SFR特殊功能寄存器 读/写P0-P3端口 下载INTEL HEX文件 对8051程序存储区的反汇编 在线汇编 SST MCU产品特有的IAP功能In Application Programming SoftICE 用到的MCU 硬件资源 SST的SoftICE用到的MCU硬件资源如下

仿真器接氧传感器及调试方法

天然气仿真器与氧传感器连接及其调试方法 前面文章说过天然气仿真器必须接氧传感器,并测试是不是正常仿真的。很多改装厂这个过程不规范,不接线或者仿真设置不正确,甚至给出“天然气烧气故障灯亮是正常的”这种错误的解释。 接线方法是断开氧传感器的信号线,用仿真器的白色线接传感器,黄色线接行车电脑输入。 接线完毕后一定要在烧油和烧气两种状态下分别测量黄色线和搭铁之间的直流电压为10S在0-1v波动8次左右,以此判断仿真器直通和烧气仿真信号是不是正常的。如果不是这样,可按照下面方法调试DIP开关和电 位器。 一、仿真器电路板上有DIP开关,如图(图是两个开关的):, DIP开关不论有几个,(2个或3个,不会有4个的)必定有一种状态是这样的:烧油时氧传感器信号直接通过仿真器,仿真器不起作用,这个可在烧油状态时测量白色线和黄色线上的电压同时波动得知;烧气时氧传感器信号被截止,由仿真器输出一个信号(黄线)给行车电脑ECU。 相关设置如下并把它写在纸上备用: 2个开关的有如下几种设置: ON ON ON OFF OFF ON OFF OFF 3个开关的有如下几种设置: ON ON ON ON ON Off ON OFF ON ON OFF OFF OFF ON ON OFF ON OFF OFF OFF ON OFF OFF OFF 二、动手测量 第1步:用油启动

第2步:先测量白色线对电瓶负极电压,观察一定时间(如10S)内电压及指针摆动次数和幅度,记在纸上, 在此称“油态电压” 第3步:设置(按照写在纸上的顺序)DIP开关,测量黄色线对电瓶负极电压及摆动情况如和“油态电压”相同请在此DIP状态上打勾,并完成所有设置的测量,这些设置在此简称“直通设置” 第4步:切换到烧气 第5步:测量这几种“直通设置”时黄色线对电瓶负极的电压及摆动情况,必有一种设置电压摆动幅度与“油态电压”相近,这时调整电位器,使其电压波动次数和幅度和“油态电压”相同。 四、完成设置 记下刚才筛选出的DIP开关状态并设置,关闭发动机,拨出钥匙,取下电瓶负极,3分钟后,安装电瓶负极,用钥匙转至电源档,自检,30秒后,关闭,拨出钥匙,30秒后再次插入、自检,启动,先油然后切换到气,分别测量黄色线对电瓶负极电压及摆动情况,(一般10S内电压在0-1v波动7-8次)。 如有必要再调整,这个过程一定要有耐心。

仿真器的作用

仿真器的作用 问1.用虚拟软件仿真与这个有什么区别吗?我没有看到过仿真器也没有用过仿真器 答:虚拟软件仿真,不能看到驱动硬件的实际效果。 问2.仿真器接电脑,仿真器再通过仿真头接目标板,然后程序就能在线仿真? 答:是的,连接好了以后,打开51开发软件平台KEIL,通过在KEIL中修改你的程序中不满意的部分,仿真器会在软件平台KEIL的控制下时时联 动。然后通过单步运行程序或者让程序运行到指定的程序行停止,等等调试方法调试你的程序,直到你满意为止,全部过程硬件都会和程序同步运行,所见即所得。 可以极大地提高效率,不用再反复的用编程器向51芯片中烧录程序。 问3.仿真器的本质是什么?

答:仿真器就是通过仿真头用软件来代替了在目标板上的51芯片,关键是不用反复的烧写,不满意随时可以改,可以单步运行,指定端点停止等等,调试方面极为方便。 问4.操作仿真器的软件KEIL都支持那些编程语言? 答:同时支持汇编语言和C语言。 问5.如果我不会使用KEIL怎么办? KEIL是德国开发的一个51单片机开发软件平台,最开始只是一个支持C语言和汇编语言的编译器软件。后来随着开发人员的不断努力以及版本的不断升 级,使它已经成为了一个重要的单片机开发平台,不过KEIL 的界面并不是非常复杂,操作也不是非常困难,很多工程师的开发的优秀程序都是在KEIL的平台 上编写出来的。可以说它是一个比较重要的软件,熟悉他的人很多很多,用户群极为庞大,要远远超过伟福等厂家软件用户群,操作有不懂的地方只要找相关的书看 看,到相关的单片机技术论坛问问,很快就可以掌握它的基本使用了。

问6.仿真器是不是适合初学者使用? 答:仿真器适合初学者使用,这是肯定的,使用它学习单片机自然事半功倍,但是首先必须有一定理论基础。个人认为它不适合没有任何51单片机基础的初 学者,比较适合有一定理论基础和实践经验的用户,也适合渴望开发复杂程序的有经验用户。可以说如果没有单步运行调试等手段来仿真,很难开发出复杂的程序, 在早些年因为51芯片的存储器是EPROM的,反复烧写的寿命非常有限,开发程序只能靠专业的昂贵的专业仿真器来完成,排除了所有错误之后才能写入单片机 芯片中。有了内部含有闪存的单片机之后,才使反复烧写试验成为可能,但是也还是无法实现象仿真器那样的时时调试。在公司进行单片机程序开发的工程师都是使 用仿真器,对于想真真掌握单片机开发的人,最终也一定会熟练的使用仿真器。 问7.仿真器的原理是什么? 答:仿真器内部的P口等硬件资源和51系列单片机基本是完全兼容的。仿真主控程序被存储在仿真器芯片特殊的指定

51单片机简易仿真器的制作

51单片机简易仿真器的制作 实验目的: 由于市场上现有的单片机仿真器非常昂贵,为了减少在开发单片机时的成本,故提出利用SST公司的SST89E564RD系列单片机制作简单的51单片机仿真器。 实验环境: 1.硬件环境: 计算机一台SST89E564RD单片机MAX232芯片串口线一根 2.软件环境: Protel99SE软件和KeilC51软件。 其中Protel99SE可以完成硬件原理图的设计,以及PCB板的制作;KeilC51可以完成工程的建立,代码的编写,程序的编译以及最终的软硬件仿真。 实验内容: 1.实验原理: 只需将SST单片机的RXD P3.0 和TXD P3.1 管脚通过一个RS232的电平转 换电路连接到PC的COM串口即可,可使用这个RS232的转换电路做一个通用的8051的下载线。下载时只需将下载线连接到用户目标板上单片机的P3.0 P3.1 VCCGND4个管脚即可进行下载或仿真。 设计的原理图如图1所示,在实际的设计过程中,添加了一个发光二极管,其目的很简单,就是为了验证仿真器供电正常。

图1 SST89E564单片机仿真器原理图 设计的SST89E564单片机仿真器的PCB 板如图2所示,在设计并印制PCB 板之后,硬件电路的设计就完成了。

图2 SST89E564单片机仿真器PCB板

2.实验步骤: 1)通过SST 串口下载软件BootLoader 下载SOFTICE 监控代码 由于SST的MCU在出厂时已经将BOOT LOADER的下载监控程序写入到芯片中,因此无需编程器就可通过SST BOOT-STRAP LOADER软件工具将用户程序下载到SST的MCU中,从而运行用户程序。 SST BOOT-STRAP LOADER软件工具还可将原来的MCU内部的下载监控程序转换为SoftICE的监控程序,从而实现SOFTICE的仿真功能。 执行SSTEasyIAP11F.exe软件运行SST Boot-Strap Loader,在内部模式下检测到对应器件的型号后,SoftICE固件通过按SoftICE菜单下“Download SoftICE”选项下载,便将SoftICE固件下载到MCU 。在BLOCK1的SST Boot-Strap Loader 会被SoftICE固件代替。 详细操作步骤如下 A 选择连接的串口 B 选择芯片型号和内部存储器模式(选择使用SST89E564RD,使用片内程序存储器)

ARMJTAG仿真器电路讨论.

ARM JTAG仿真器电路讨论 以下是我在实践中的一些积累,发现这点是因为我在尝试用对SAMSUNG S3C44B0 JTAG 适用的编程板电路给SAMSUNG的另一款ARM9内核MPU S3C2440 JTAG编程时出现问题,查阅了一些资料后最终解决。希望这些对那些在自制ARM JTAG编程器上遇到困难的朋友一点帮助。 一. JTAG仿真器的实质 JTAG (Joint Test Action Group) 编程调试实质上是利用了MCU/MPU片上自带的跟踪调试功能(需MCU/MPU硬件支持)。JTAG编程板一端与PC的并口相连,另一端连接至目标板,由于通常的MCU/MPU的工作电压在1.8V-3.6V之间,而PC机并口输出的电平逻辑为5V,因此需做电平转换,通常使用一枚缓冲/驱动器(如:74××244/74××541)作隔离,并通过电阻分压,限制进入目标板的电平。因PC并口没有电压输出,所以编程板上的IC要由目标板供电,即:JTAG接口中的VCC脚是必须恰当连接的。 二. JTAG接口的管脚定义 主流的JTAG接口有14针和20针两种,管脚分配如图一 14针的JTAG接口为老式接口。 JTAG中的非地管脚定义如下图二。

三. 第一种线序的JTAG编程板电路 实测我所使用的SAMSUNG ARM7 S3C44B0开发套件中的JTAG编程板电路如图

但将该编程板与S3C2440相连后却无法正确载入程序。 依据244的输入输出关系,可整理PC并口与JTAG接口管脚的对应关系如下: PC并口引脚 2 3 8 4 JTAG引脚 TCK TMS TDI nSRST 四. 第二种线序的JTAG编程板电路 经查阅S3C2440的官方JTAG编程板SJF2440的USER’S GUIDE中的编程板电路,整理PC 并口与JTAG接口管脚的对应关系如下: PC并口引脚 2 3 4 11 JTAG引脚 TCK TDI TMS TDO

绘制层次电路原理图讲解

《电路CAD 》课程实验报告 实验名称绘制层次电路原理图实验序号实验二姓名张伟杰系专业电科班级一班学号201342203 实验日期5月5日指导教师曹艳艳组名第一组成绩 一、实验目的和要求 1 掌握层次原理图的绘制方法。 2 理解层次原理图模块化的设计方法。 二、实验设备 计算机、Altium Designer 10 三、实验过程(步骤、程序等) 1 新建工程项目文件 1)单击菜单File/New/PCB Project,新建工程项目文件。 2)单击菜单File/Save Project保存工程文件,并命名为“洗衣机控制电路.PrjPCB”。 2 绘制上层原理图 1)“在洗衣机控制电路.PrjPCB”工程文件中,单击菜单File/New/Schematic,新建原理图文件。 2)单击菜单File/Save As..,将新建的原理图文件保存为“洗衣机控制电路.SchDoc” 3) 单击菜单Place/Sheet Symbol或单击“Wring”工具栏中的按钮,如图1所示,依次放置复位晶振模块,CPU模块,显示模块,控制模块四个模块电路,并修改其属性,放置后如图2所示

图1 模块电路属性 图2 放置四个模块电路 4)单击菜单P1ace/Add sheet Entry或单击“Wring”工具栏的按钮,放置模块电路端口,并修改其属性,完成后效果如图3所示 图3 放置模块电路端口

5)连线。根据各方块电路电气连接关系,用导线将端口连接起来,如图4所示 图4 连线 3 创建并绘制下层原理图 1)在上层原理图中,单击菜单Design/Create Sheet From Symbol,此时鼠标变为十字形。 2)将十字光标移到“复位晶振模块”电路上,单击鼠标左键,系统自动创建下层原理图“复位晶振模块.SchDoc”及相对应的I/O端口。如图5所示。 图5 自动生成的I/0端口 4)绘制“复位晶振模块”电路原理图。 其用到的元件如下表1所示。绘制完成后的效果如图6所示。 表1 “复位晶振模块”电路元件列表 元件标号元件名所在元件库元件标示值元件封装R1 RES2 Miscellaneous Devices.IntLib 270ΩAXIAL0.4 R2 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 C1 Cap Miscellaneous Devices.IntLib 33pF RAD-0.3 C2 Cap Miscellaneous Devices.IntLib 33pF RAD-0.3 C3 Cap Miscellaneous Devices.IntLib 33pF RAD-0.3 S1 SW-PB Miscellaneous Devices.IntLib SPST-2 Y1 XTAL Miscellaneous Devices.IntLib R38 VCC 电源工具栏 GND 电源工具栏

51仿真器原理图及制作过程

51仿真器原理图及制作过程 -------------------------------------------------------------------------------- 51仿真器原理图及制作过程 此仿真器是采用SST89E564 芯片配合一些电子元器件制作的仿真器。仿真程序代码63K,现将此仿真器的资料整理如下(部分网站上也有整理,但不够完善): 1.仿真器电路原理图: 2.根据以上原理图将以上硬件搭好,再准备一条串口延长线和电路板连好,另 外我们再下载一个制作仿真器的软件SSTEasyIAP11F.exe 将*程序写入到 芯片,写完之后我们仿真器也就做好了。具体方法如下: 3.SSTEasyIAP11F.exe 软件的下载地址: https://www.sodocs.net/doc/7b4823381.html,/products/software_utils/softice/index.xhtml 本文来自: https://www.sodocs.net/doc/7b4823381.html, 原文网址:https://www.sodocs.net/doc/7b4823381.html,/mcu/51mcu/0084927.html https://www.sodocs.net/doc/7b4823381.html,/products/software_utils/softice/index.xhtml 4.解压后打开如下界面:

5.按下图操作,点击红色箭头: 6.得到如下界面,我们先选择仿真芯片为SST89E564,然后点击OK

7.得到下图后,我们点击确定,上电. 8.当出现下图红色箭头所示,表示连接成功.

9.接下来我们开始下载*程序,单击红色箭头的Download SoftICE 10.如下图所示,我们点击OK开始下载*程序

绘制层次电路原理图

《电路CAD 》课程实验报告 按钮,如图

图2 放置四个模块电路 )单击菜单P1ace/Add sheet Entry或单击“Wring”工具栏的按钮,放置模块电路端口,并修改其属性,完成后效果如图3所示 图3 放置模块电路端口

图4 连线 创建并绘制下层原理图 在上层原理图中,单击菜单Design/Create Sheet From Symbol,此时鼠标变为十字形。 将十字光标移到“复位晶振模块”电路上,单击鼠标左键,系统自动创建下层原理图“复.SchDoc”及相对应的I/O端口。如图5所示。 自动生成的I/0 晶振模块”电路原理图。 所示。绘制完成后的效果如图 晶振模块”电路元件列表 所在元件库

图7 DS80C310-MCL元件搜索图8 CPU电路模块 表3 显示模块电路元件列表 元件标号元件名所在元件库元件值元件封装 Miscellaneous Devices.IntLib LEDDIP-10

R3 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R4 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R5 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R6 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R7 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R8 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R9 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 R10 RES2 Miscellaneous Devices.IntLib 1k AXIAL0.4 VCC 电源工具栏 图10 控制电路模块

trace32仿真器使用教程+

简介 大家可能会对uTrace-ICD比较陌生,简单介绍一下,uTrace-ICD 是TRACE32-ICD的兼容机。在这里我首先感谢国人的努力能让我用很少的RMB用上这么高端仿真器。废话少说,下面我给大家介绍一下uTrace-ICD下具体实现Linux调试的具体过程。 大概介绍一下实现的具体原理,首先要有一块可用的目标板,我选用的是SMDK2410评估板。编译环境是在虚拟VMware+RedHat9.0,调试环境是uTRACE。在这里有个问题:就是在虚拟机下编译的arm linux内核如何传递给安装在Windows下的uTRACE。我用的方法就是通过SMB服务器。在Redhat9.0下配置SMB Server将arm linux的源码包通过网络共享的方式共享给Windows XP。在XP下的Windows 资源管理器中将Redhat9.0共享的arm linux源码包影射为本地的一个虚拟盘比如是:Z盘。这样uTRACE就可以象操作本地盘一样来读取Redhat9.0中的arm linux源码包以及编译生成的内核映像及内核的符号表。 对于uTRACE调试器来说,需要的东东就是包含调试信息的arm linux的内核映像vmlinux。在这里要注意"包含调试信息",arm linux内核配置选项默认可能是不包含调试信息,如果将没有包含调试信息的vmlinux供uTRACE使用是实现不了内核源码级调试的。所以我们在配置arm linux内核时一定要将包含内核调试信息的选项选上。具在

"kernel hacking"下。其次uTRACE调试器需要的就是arm linux内核源码树。调试器的工作原理就是通过给定的地址查找对应的符号表找到对应的符号,以及符号所在文件的路径信息,行信息等,近而找到源程序所对应的函数或变量。 简单介绍了uTRACE调试的基本原理,接下来,具体介绍一下arm linux内核,驱动,及应用层源码级调试的具体实现过程。 具体实现 上一节简单介绍了uTrace-ICD调试的基本原理,下面将详细介绍调试的具体实现过程。 首先介绍一下我用的评估板SMDK2410的具体情况。目标板是nor flash启动,大小为8M,SDRAM配置情况是32M,首地址是 0x30000000。软件配置情况:bootloader为ppcboot2.0,arm linux内核为2.4内核(实现过程对2.6内核也适用)。 第一步:配置虚拟机Redhat9.0编译环境。 安装交叉编译器arm-elf-gcc,解压arm linux源码包到 “\SMDK2410\kernel”下,解压ppcboot到“\SMDK2410\ppcboot-2.0.0”下。 配置SMB Server将“\SMDK2410”目录网络共享出去。在Windows

STC仿真器使用指南

STC仿真器使用指南 STC单CPU方案仿真器监控程序使用资源: Flash : 6K Bytes (0DC00H - 0F3FFH) DATA : 0 Byte IDATA : 0 Byte XDATA : 768 Bytes (0400H - 06FFH) Port : P3.0 and P3.1 STC单CPU方案仿真器使用注意事项: 1、用户不可访问仿真系统区的0DC00-0F3FFH区域的6K代码空间 2、用户不能修改0400H-06FFH区的768字节的XDATA 3、用户不能向P3.0口和P3.1口写数据 4、用户不能使用与P3.0和P3.1相关的中断和功能(包括INT4中断、定时器2的时钟输出、定时器2的外部计数) 5、串口1可以切换到P3.6/P3.7或者P1.6/P1.7进行使用 1、安装Keil版本的仿真驱动

如上图,首先选择“Keil仿真设置”页面,点击“添加MCU型号到Keil 中”,在出现的如下的目录选择窗口中,定位到Keil的安装目录(一般可能为“C:\Keil\”),“确定”后出现下图中右边所示的提示信息,表示安装成功。添加头文件的同时也会安装STC的Monitor51仿真驱动STCMON51.DLL,驱动与头文件的的安装目录如上图所示。

2、在Keil中创建项目 若第一步的驱动安装成功,则在Keil中新建项目时选择芯片型号时,便会有“STC MCU Database”的选择项,如下图 然后从列表中选择响应的MCU型号(目前STC支持仿真的型号只有STC15F2K60S2),所以我们在此选择“STC15F2K60S2”的型号(实际需使用IAP15F2K61S2或IAP15L2K61S2),点击“确定”完成选择

单片机仿真器和仿真环境

单片机基本原理,如何使用DX516 仿真器,如何编程点亮和灭掉一个LED 灯,如何进入KEILC51uV调试环境,如何使用单步,断点,全速,停止的调试方法 单片机现在是越来越普及了,学习单片机的热潮也一阵阵赶来,许多人因为工作需要或者个人兴趣需要学习单片机。可以说,掌握了单片机开发,就多了一个饭碗。 51 单片机已经有30 多年的历史了,在中国,高校的单片机课程大多数都是51,而51 经过这么多年的发展,也增长了许多的系列,功能上有了许多改进,也扩展出了不少分支。而国内书店的单片机专架上,也大多数都是51 系列。可以预见,51 单片机在市场上只会越来越多,功能只会越来越丰富,在可以预见的数十年内是不可能会消失的。 作为一个初学者,如何单片机入门?需要那些知识和设备呢?知识上,其实不需要多少东西,会简单的C 语言,知道51 单片机的基本结构就可以了。一般的大学毕业生都可以快速入门,自学过这2 门课程的高中生也够条件。 就算你没有学过单片机课程,只掌握了C 语言的皮毛,通过本系列的教程,您也会逐渐的进入单片机的大门。当然在学习的过程中,您还是必须多去研读单片机书籍,了解他们的基本结构及工作方式。 下面以51 为例来了解一下单片机是什么东西,控制原理又是什么?

在数字电路中,电压信号只有两种情况,高电平和低电平,用数字来记录就是1 和0。单片机内部的CPU,寄存器,总线等等结构都是通过1 和0 两种信号来运作的,数据也是以1 或者0 来保存的。单片机的输入输出管脚,也就是IO 口,也是只输出或识别1 和0 两种信号,也就是高电平和低电平。当单片机输出一个或一组电平信号到IO 口后,外部的设备就可以读到这些信号,并进行相应操作,这就是单片机对外部的控制。当外部一个或一组电平信号送到单片机的IO 口时,单片机也可以读到这些信号,并进行分析操作,这就是单片机对外部设备信号的读取。当然实际的操作中,这些信号可能十分复杂,必须严格地按照规定的时间顺序(时序)输入输出。每种设备也都规定了自己的时序,只要都严格遵守,就可以控制任何设备,做出只要你想象得出的任何事情。 您可能会再问,我如何让单片机去控制和分析外部设备呢?答案是程序,您可以编写相关的程序,并且把他们烧写到单片机内部的程序空间,单片机在上电时,就会一步一步按照您写的程序去执行指令,做您想做的事情。 在51 标准芯片中,有32 个输入输出IO,分为4 组,每组8 个,分别为P0 口,P1 口,P2 口,P3 口。P1 口的8 条脚就用P1.0 至P1.7 表示,其余类似。51 就是用这32 个口来完成所有外部操作的。对于51 的内部结构,如果您已经了解,那是最好;如果不懂,也可以先放下,在完成了本教程开始的几个章节之后,您就会大有兴趣,自己去寻找资料阅读了。当然,如果您希望成为一个优秀的单片机开发程序员,还是必须熟悉单片机的内部结构及工作原理,切不可偷懒! 在这一章,您将用程序去控制一个LED 发光管的亮和灭。你应该知道,LED 发光管在通过一定电流时亮,不通电就灭。为了不让LED 通过太大的电流把它烧坏,我们还要串上限流电阻。51 的IO 是弱上拉的方式,在输出高电平时,只能输出几十微安的电流到地,而在输出低电平时,VCC 电源可以输入几十毫安的电流到IO。一般LED 需要10 毫安左右电流点亮,我们就将LED 接在电源VCC 和IO 口之间,中间串上电阻,当

层次电路原理图设计 报告

海南师范大学 物理与电子工程学院 实验报告 (20 ----20 学年第学期) 课程名称:电子CAD技术 实验名称:层次电路原理图设计 专业班级:10级电子二班 学号:201006030240 姓名:叶芬 实验时间:年月日(第周) 实验室名称:学时数:

节 注:报告内容根据具体实验课程或实验项目的要求确定,一般包括实验目的、实验仪器、原理摘要、数据记录及结果分析等。如纸张不够请自行加纸。 实验目的 1、掌握层次电路图的概念和设计方法; 2、进一步熟悉原理图的设计方法和设计过程; 3、掌握生成各种电路原理图报表文件。 二、实验内容 对于一个庞大的电路原理图,设计者不能在一张电路图中绘制,Altium Designer Winter09为设计者提供了一个层次电路设计方案,将系统划分为多个子系统,子系统又由多个功能模块化构成。有自上而下和自下而上两种悻层次电路设计方法。 用层次电路设计方法绘制函数信号发生器电路原理图,如图3、图4和图所示。 图3-1 函数信号发生器总图

图3-2 函数信号发生器电路原理图图3-3 直流稳压电源

三、实验步骤 1、创建原理图输入文件,命名为函数信号发生器总图.SchDoc。 2、绘制层次原理图的总图,如图3-1。 (1)绘制方块电路,并完成方块电路属性的设置; (3)放置方块电路端口,并完成方块电路端口的设置; (4)绘制导线。 3、绘制层次原理图的分原理图。 (1)生成分原理图,在总图中执行【设计】→【产生图纸符号】菜单命令; (2)按图3-2和图3-3绘制分原理图。 4、执行【工具】→【上/下层次】菜单命令,实现上层和下层的切换。 5、生成网络表,查看网络连接。 5、保存文件。 实验结果 函数信号发生器总图

电路原理图与电路板设计实验报告

电路原理图与电路板设计实验报告 学院: 班级: 专业: 姓名: 学号:

指导老师: 河南工业大学实验报告专业班级姓名 学号 同组者姓名完成日期 成绩评定 实验题目:(一)原理图设计环境画原理图实验 实验目的: 1.熟练PROTEL99se的原理图编辑环境。 2.掌握常用管理器,菜单的使用,电气规则检查。 3.掌握元器件的调用,属性含义。 实验内容: 教材: ,,,环境熟悉

,工具条对象,器件调用 ,菜单使用,元件属性修改 练习1---练习8 实验仪器:PROTEL99se软件 实验步骤: (1)放置元件:就是在元件库中找元件,然后用元件 管理器的Place按钮将元件放在原理图中。 放置元件时需要使用如下所示快捷键: 空格键:每单击一次空格键使元件逆时针旋转90度。 TAB键:当元件浮动时,单击TAB键就可以显示属性编辑窗口。 X键:元件水平镜像。 Y键:元件垂直镜像。 (2)连接导线。使用划线工具连接导线。 (3)放置电源,地线和网络标记。放置电源和地线标

记前要显示电源地线工具箱。 (4)自动元件编号:使用菜单Tool/Annotate对元件自动编号。 (5)编辑元件属性。单击元件,在弹出的属性窗口中输入元件的属性,注意一定要输入元件封装。(6)电气规则检查。使用Tool/ERC菜单,对画好的原理图进行电气规则检查,检查完毕后,出现报 表信息,就可以进行下一步。 (7)原件图元件列表。使用Edit/Export to Spread 菜单,按照向导提示进行操作。 (8)建立网络表。使用菜单Design/Netlist。 实验截图: 注意事项: 连线:从器件的端点开始到端点结束,不要多余的线,按空格旋转原件;PAGEDOWN PAGEUO缩放。 河南工业大学实验报告

自制51芯片仿真器完全手册

自制51芯片仿真器完全手册 初学51单片机或是业余玩玩单片机开发,每次总要不断的调试程序,如没有仿真器又不喜欢用软件仿真,那只有每次把编译好的程序烧录到芯片上,然后在应用电路或实验板上观察程序运行的结果,对于一些小程序这样的做好也可以很快找到程序上的错误,但是程序大了,变量也会变的很多,而直接烧片就很难看到这些变量的值了,在修改程序时还要不断的烧片实验,确实很麻烦,这时如果有一台仿真器就会变得很好方便了。但一台好的仿真器对于业余爱好者来说确实有一些贵,在这里介绍这种易于自制的51芯片仿真器虽然有一些地方不够完善,但还是非常适于初学51单片机的朋友和经济能力不是很好的业余爱好者。 这个仿真器的仿真CPU是使用SST公司的SST89C58或 SST89C54(其它相容的芯片也可,这里主要讲述SST89C58),对于没有可以烧写SST89C58芯片的朋友应该选用CA版本的SST89C58芯片,这个CA型号的芯片出厂时已内置了BSL1.1E的固件程序。那什么是BSL呢?BSL就是英文BOOT-Strap Loader,意思就是可引导装载,形象来说就像电脑用DOS起动盘起动后可以装载应用程序并运行。只不过SST89C58是用串口来输入程序资料的。为了能把编译好的单片机程序HEX或BIN文件下载到SST89C58芯片上,SST 公司还提供了一种叫EasyIAP的软件,IAP为In-Application

Programming,有了这个软件就可以把SST89C54变为在线下载的实验器。在这里不详述EasyIAP的使用,只讲述如何利用它去把 SST89C58升级为带SoftICE固件程序的51仿真器。 一、制作带串口的的最小化应用板 无论是EasyIAP还是仿真器,都需要用串行口使SST89C58芯片和PC上位机进行通讯传输数据,因此我们先要制作一个带 RS232/TTL转换的应用板,如果你的51实验电路板或目标电路板已带有这样的电路那么你就可以跳过这一段了。图二是笔者所设计的可以用于制作SST89C58/54仿真器、S51系列下载器或51系列实验应用的小型应用板。它的电路是很简单的,用两个NPN的小功率三极管和一些电阻二极管做RS232/TTL转换(可参看 https://www.sodocs.net/doc/7b4823381.html,/web/alldata/CDLE/cdle050012.htm),其它元件则做复位和时钟振荡电路。图三是我以前做的51应用板,刚好可以用就拿来用了,省却了用万用板做图四那样的东西,但这块应用板不能像图4那个可以当芯片插到目标板上。在晶振方面最好使用11.0592M 或12M。

层次电路设计

单片机控制电路层次原理图设计一实验目的 1.能够更好的掌握DXP软件。 2.了解层次原理图的设计过程以及注意事项。 3.能够完成一些图的设计。 二实验器材 有DXP软件的计算机一台 三实验内容 (一)绘制原理图:串口电路、显示电路、发光二级管电路、键盘电路、单片机控制电路。 首先打开DXP软件,找出各个电路的元器件,点击“文件”“创建”“库”“原理图库”。 进行图形的绘制按照以下图进行各个原理的连接: 1.串口电路子原理图: 发光二级管电路子原理图:

键盘电路子原理图: 显示电路子原理图:

单片机控制电路子原理图: 完成以上各个图的制作。 (二)绘制层次原理图母图

(1)选择“文件”|”创建”|“原理图”命令,在原理图文件窗口内,使用原理图的编辑方法绘制项目文件方块图。 (2)单击“画线”工具中的放置方块电路图纸符号按钮,移动鼠标到原理图编辑区内。 (3)按下TAB键,即可进入方块电路属性设置对话框,设置其属性。 (4)将光标移到文字标注处并双击,即可设置方块电路的文字属性。 (5)用同样的方法完成其他方块的绘制。 (6)放置方块电路的输入/输出端口。单击画线工具中的按钮。 (7)将光标移入方块电路中。 (8)按Tab键将弹出“方块电路I/O 属性”对话框。 (9)设置结束后,单击“确认”按钮确认。 (10)移动鼠标,将方块电路移位,单击将其定位,这样就完成电路端口制作。 (11)按照以上方法,将所有的方块电路端口放置完成。 (12)绘制总线。 (13)绘制完一条总线之后,鼠标指针处于绘制状态,可以绘制其他总线。 (14)绘制导线,将具有电气连接关系的方块电路端口用导线连接起来。 (三)层次原理图切换 由母图切换到方块电路符号对应的子图

相关主题