
DEMO9S12NE64 Demo, Rev. 0.1
2
Freescale Semiconductor
Introduction
Run the Startup Demo program
The DEMO9S12NE64 is shipped with the Startup Demo already stored in on-chip flash memory as
mentioned before. You may view the source code for this demo on the supplied MC9S12NE64 Resource
CD as zip
file, “Startup_Demo.zip.” To run through this demo, follow the instructions below:
1.
Test1, Analog Input:
After powering up the board with SW3 in position 1, either LED1 or LED2
should be on. You are in Test1 of the Startup Demo. Turn the Analog Input to blink LED1 and LED2
alternately. Press SW2 to go to Test2.
2.
Test2, Switch:
Both LED1 and LED2 should light up. Press SW2 to turn off LED2, and let go to
turn it back on. Press SW1 to move on to Test3.
3.
Test3, Ethernet/Ping:
LED1 should turn off. You will now need to configure the IP address for the
PC. Please follow the directions below.
Set the PC’s IP address and the Ping Test
The ping test will verify that the PC is communicating with the DEMO board through the Ethernet
Crossover cable provide in the kit, but you must first set the PC’s IP address to one that is compatible with
the board’s IP address. For this demo, you will set the PC’s IP address to 192.168.2.1. The board’s IP
address is currently set at 192.168.2.3. The mask for both should be 255.255.255.0.
1.
Board’s IP address:
The board’s IP address is already preset to 192.168.2.3 and mask to
255.255.255.0.
They can be changed later, by changing the “prot_addr” and “netw_mask” entries
respectively, in the address.c source file of the Startup Demo project, Startup_Demo.mcp.
2.
PC’s IP address:
Setting the PC’s IP address using Windows XP (similar in other Windows
platforms; see
):
a.
On your PC, go to Start -> Settings –> Control Panel -> Network Connections -> Local Area
Connection.
b.
In the “Local Area Connection Status” window, click on “Properties.”
c.
In the “Local Area Connection Properties” window, click on “Internet Protocol (TCP/IP)” to
highlight it, and click “Properties, or just double click it.
d.
In the “Internet Protocol (TCP/IP) Properties” window, select “Use the following IP address”
and type in 192.168.2.1 for the IP address and 255.255.255.0 for the subnet mask. Notice the
PC’s IP address is exactly like the board’s IP address but with the fourth number slightly
different. Click OK, OK, and Close.
e.
To later return your LAN setting to normal, repeat steps 2a) -2c), select “Obtain an IP..,” and
click OK.