2. Getting Started
The sample application reads the position of the potentiometer (connected to the
microcontroller’s ADC peripheral) and displays this value on the LEDs.
To execute the sample application, follow the next steps:
2
1. Ensure that the PK-HC08QY4 board is connected to the PC (via the USB cable).
2. Verify that both the J5 and J4 jumpers (near the potentiometer and the LEDs) are
inserted. This is the factory configuration, and indicates that both the potentiometer and
the LEDs are connected to the lines of the microcontroller.
3. Start the CodeWarrior HC(S)08 IDE by selecting Start > Programs > Metrowerks
CodeWarrior > CW08 > CodeWarrior IDE . The CodeWarrior HC(S)08 IDE will open.
4. From the main menu, choose File > Open . Select the “adc.mcp” workspace file that is
located under the “\Program Files\Metrowerks\CodeWarrior
CW08\(CodeWarrior_Examples)\HC08\SofTec Microsystems\PK-HC08QY4\C\Adc”
directory. Click “Open” . The following window will appear.
The Project Window
5. The C code of this example is contained in the “main.c” file. Double click on it to open.
The following window will appear.
Page 14
相关PDF资料
PKN12EB105C1 MOTOR BRUSHED DC 3V 7796RPM
PKN7EB105C1 MOTOR BRUSHED DC 3V 12130RPM
PM20L-020-HHC3 MOTOR STEPPER 20MM 24VDC 18DEG
PM25L-024-HHC5 MOTOR STEPPER 25MM 24VDC 15DEG
PM25S-048-HHC4 MOTOR STEPPER 25MM 24VDC 7.5DEG
PM35L-048-HHC7 MOTOR STEPPER 35MM 24VDC 7.5DEG
PM35S-048-HHC6 MOTOR STEPPER 35MM 24VDC 7.5DEG
PM42L-048-HHC9 MOTOR STEPPER 42MM 24VDC 7.5DEG
相关代理商/技术参数
PK-HCS08GB60 功能描述:开发板和工具包 - 其他处理器 MC9S08GB60 STARTER KIT RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
PK-HCS12C32 功能描述:KIT STARTER USB FOR MC9S12C32 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
PK-HCS12E128 功能描述:KIT STARTER USB FOR MC9S12E128 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
PKI 10 A AU BLUE 制造商:SKS-Kontakte 功能描述:
PKI 10 A AU GREEN 制造商:SKS-Kontakte 功能描述:
PKI 10 A AU RED 制造商:SKS-Kontakte 功能描述:
PKI 10 A BLAU/BLUE 制造商:SKS-Kontakte 功能描述:
PKI 10 A GELB/GRUEN YELLOW 制造商:SKS-Kontakte 功能描述: