NXP Semiconductors DEMO9S12PFAME Скачать руководство пользователя страница 17

DEMO9S12PFAME User's Manual 

6 Application Tutorial 

6.1 Overview 

This section will provide a step-by-step guide on how to launch your first project and get 
started with the CodeWarrior for HCS12(X) user interface. 

6.2 Step-by-Step Tutorial 

The sample application is the same as the one described in the 

“Standalone Mode” 

section 

above. 
 
1. 

Ensure that the Demonstration Board is connected to the PC (via the USB cable) and 
that the board is powered on. 

2. 

Make sure that all of the Demonstration Board jumpers are set to their factory position 
(see chapter “7.1 Jumpers” for details). 

3. 

Start CodeWarrior by selecting it in the Windows Start menu. 

4. 

From the CodeWarrior main menu, choose 

“File > Open”

 and choose the

 

“DEMO9S12PFAME\C\Demo\Demo.mcp” 

file. This is the board example you copied 

from the SofTec Microsystems

 “System Software” 

CD-ROM. 

5. Click 

“Open”

. The 

Project 

window will open. 

6. 

The C code of this example is contained in the 

“main.c” 

file. Double click on it to open 

it. 

7. 

From the main menu, choose 

“Project > Debug”

. This will compile the source code, 

generate an executable file and download it to the demo board. 

8. 

A new debugger environment will open. From the main menu, choose 

“Run > 

Start/Continue”

. The program will be executed in real-time. 

9. 

From the main menu, choose 

“Run > Halt”

. The program execution will stop. The next 

instruction to be executed is highlighted in the 

Source

 window. 

10.  From the main menu, choose 

“Run > Single Step”

. The instruction highlighted in the 

Source

 window will be executed, and the program execution will be stopped immediately 

after. 

11.  From the main menu, choose 

“Run > Start/Continue”

. The application will restart from 

where it was previously stopped. 

  

Congratulations! You have successfully completed this tutorial! You can continue to 
experiment with the CodeWarrior user interface and discover by yourself its potentialities. For 
an in-depth guide of all of the user interface features, select 

“Help > CodeWarrior Help” 

from 

CodeWarrior Development Studio’s main menu.

Page 17 

Содержание DEMO9S12PFAME

Страница 1: ...DEMO9S12PFAME Demonstration Board for Freescale MC9S12P128 80 Pin QFP User s Manual Revision 1 0 Copyright 2008 SMH Technologies DC10007...

Страница 2: ...interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken SMH Technologies E mail general information info smh tech com...

Страница 3: ...Development Studio 9 3 4 Installing SofTec Microsystems Additional Components 10 4 Hardware Setup 11 4 1 First Connection 11 4 2 Power Supply 13 5 Operating Modes 15 5 1 Overview 15 5 2 Standalone Mod...

Страница 4: ......

Страница 5: ...ode MCUSLK through three external 40 pin I O female header connectors 1 2 Package Contents The DEMO9S12PFAME package includes the following items The DEMO9S12PFAME evaluation board A USB cable A LIN c...

Страница 6: ......

Страница 7: ...connected to the MCU Reset pin A series of inputs o Two push buttons together with jumpers to connect disconnect them to from the microcontroller o Four DIP switches together with jumpers to connect...

Страница 8: ...Hardware Features The DEMO9S12PFAME Demonstration Board Page 8...

Страница 9: ...or HCS12 X must be installed first 3 2 Host System Requirements The Demonstration Board is controlled by CodeWarrior Development Studio The following hardware and software are required to run the Code...

Страница 10: ...tically appear 2 Choose Install Instrument Software from the main menu 3 Click on the Copy SofTec Microsystems DLL to CodeWarrior for HCS12 V4 7 Prog gdi option An Explorer window will open Copy the S...

Страница 11: ...osition 3 Insert one end of the USB cable into a free USB port 4 Insert the other end of the USB cable into the USB connector on the Demonstration Board 5 The first time the Demonstration Board is con...

Страница 12: ...gitally signed by Microsoft and Windows considers it to be potentially malfunctioning or dangerous for the system However you can safely ignore the warning since every kind of compatibility security t...

Страница 13: ...4 2 Power Supply The Demonstration Board can be powered in three ways 12 V DC input connector USB connector I O header connector The POWER SEL jumper allows you to power the board through either the 1...

Страница 14: ......

Страница 15: ...lects the UNREG position 6 Power on the Demonstration Board through the 12 V DC plug in power supply 7 The green POWER LED on the board should turn on 8 Press the PP0 push button Rotate the potentiome...

Страница 16: ...ser memory or locations in the memory map The Background Debug Module BDM uses a single wire communication interface via the BKGD line to allow non intrusive access to target system memory and registe...

Страница 17: ...s example is contained in the main c file Double click on it to open it 7 From the main menu choose Project Debug This will compile the source code generate an executable file and download it to the d...

Страница 18: ......

Страница 19: ...The USB to BDM interface is enabled default Not Installed The USB to BDM interface is disabled J304 LIN ENABLE Installed The microcontroller s PA7 line is routed to the LIN transceiver default Not Ins...

Страница 20: ...microcontroller J504 PUSH BUTTON PP1 ENABLE Installed The PP1 push button is connected to the microcontroller s PP1 line default Not Installed The PP1 push button is not connected to the microcontroll...

Страница 21: ...er s Manual Name Reference Description Pinout J508 1 LED ENABLE Installed The LEDs are connected to PA 3 0 ports of the microcontroller default Not Installed The LEDs are not connected to the microcon...

Страница 22: ...32 34 36 38 40 29 31 33 35 37 39 40 Pin I O Female Header Connector 1 1 VDD 5 0 V 2 PE1 3 GND 4 RESET 5 PS1 6 BKGD 7 PS0 8 PP7 9 PP0 10 PAD07 11 PP1 12 PAD06 13 PT0 14 PAD05 15 PT1 16 PAD04 17 PM4 18...

Страница 23: ...4 36 38 40 29 31 33 35 37 39 40 Pin I O Female Header Connector 2 1 PB0 2 PM0 3 PB1 4 PM1 5 PB2 6 PT2 7 PB3 8 PT3 9 PB4 10 N C 11 PB5 12 N C 13 PB6 14 N C 15 PB7 16 N C 17 PT4 18 N C 19 PT5 20 N C 21...

Страница 24: ...2 30 32 34 36 38 40 29 31 33 35 37 39 40 Pin I O Female Header Connector 3 1 N C 2 GND 3 N C 4 GND 5 N C 6 GND 7 N C 8 GND 9 N C 10 GND 11 N C 12 GND 13 N C 14 GND 15 N C 16 GND 17 N C 18 GND 19 N C 2...

Страница 25: ...9 5 1 RS 232 Connector 1 Connected to pins 4 and 6 2 TX 3 RX 4 Connected to pins 1 and 6 5 GND 6 Connected to pins 1 and 4 7 Connected to transceiver for testing purposes 8 Connected to transceiver fo...

Страница 26: ......

Страница 27: ...ponents have been installed perform the following steps under Windows XP 1 Connect the Demonstration Board to the PC 2 Open the Control Panel Start Settings Control Panel 3 Open the System options 4 S...

Страница 28: ......

Отзывы: