Freescale Semiconductor DEMO9S08JS16 Lab Tutorial

8-bit USB Microcontrollers
DEMO9S08JS16
Lab tutorial
DEMO9S08JS16—Lab Tutorial
DEMO9S08JS16—Lab Tutorial
Introduction
These labs provide various USB examples included with the complimentary USB stack for
MC9S08JS16 (JS16) microcontroller (MCU). Instructions to install the software stack are
explained in the DEMO9S08JS16 Quick Start Guide (DEMO9S08JS16 QSG). Start each
lab with the board powered “On” and both provided USB cables connected between host
The USB-MINI stack gets installed at
C:\Program files\MC9S08JS16Demo.
Start/Continue (F5) button
Debug button
USB bootloader GUI button
DEMO9S08JS16—Lab Tutorial
Step-by-Step Installation Instructions
LAB
1
HID Class Keyboard
Start this lab with the board powered “On” and both provided USB cables connected between host and board.
1. Open CodeWarrior™ for Microcontrollers. From the Windows start menu, you can locate it using the path “Programs>Freescale CodeWarrior>CW for Microcontroller V6.2>CodeWarrior IDE.exe.”
2. From the CodeWarrior startup dialog, click “Start Using CodeWarrior.”
3. Open the HID keyboard example project by pressing “Ctrl” + “O” keys simultaneously. Follow C:\Program Files\MC9S08JS16Demo\JS16_HID_Keyboard and select “JS16_HID_Keyboard.mcp,” then click “Open.”
4. Remove all jumpers on J4 (demo board).
5. With the board turned on and both cables attached between host and board, compile and program the JS16 MCU with the HID class keyboard by clicking the button to launch the debugger.
6. From the connection manager menu, select “DEMOJM on USB1” port and click “Connect (Reset).”
7. From the Erase and Program Flash menu, click “Yes” to allow the debugger to mass erase the MCU’s on-chip flash memory and program it with the new application.
8. Click the “Start/Continue (F5)” button in the debugger to run the application. Close the debugger.
9. Your computer will automatically recognize the JS16 as a HID keyboard and begin the installation without user interaction. When the installation is complete, the JS16 will behave as a keyboard.
10. Click button labeled “PTG1” for Page Up key action.
11. Click button labeled “PTG2” for Page Down key action.
12. Click button labeled “PTG3” for Caps Lock key action; the LED labeled “PTE3” will be switched on or off.
13. Click the Num Lock and/or Caps Lock key on your computer keyboard; the “PTE2” and/or “PTE3” LEDs will turn on/off respectively.
Loading...
+ 5 hidden pages