DEMO9S08QD4 Freescale Semiconductor, DEMO9S08QD4 Datasheet - Page 6

BOARD DEMO FOR MC9S08QD FAMILY

DEMO9S08QD4

Manufacturer Part Number
DEMO9S08QD4
Description
BOARD DEMO FOR MC9S08QD FAMILY
Manufacturer
Freescale Semiconductor
Type
MCUr
Datasheets

Specifications of DEMO9S08QD4

Contents
Board, Cable, CD
Processor To Be Evaluated
MC9S08QD
Data Bus Width
8 bit
Interface Type
USB
Silicon Manufacturer
Freescale
Core Architecture
HCS08
Core Sub-architecture
HCS08
Silicon Core Number
MC9S08
Silicon Family Name
S08QD
Rohs Compliant
Yes
For Use With/related Products
MC9S08QD2, MC9S08QD4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Controlling the Stepper Based on an Input Signal (PWM)
The code can take samples of the duty cycle and determine the percentage of the duty. As shown in
Figure
TPM2CH0I detects in rising-edge and falling-edge of all the changes of the input signal
changes are stored as variables and then are calculated to produce the duty cycle. For details see the
MC9S08QD4 Data Sheet.
Below are the pin definitions described in code:
/*********** Pin definitions *************
6
*****************************************
*
*
*
*
*
*****************************************/
PWM_INPUT
COIL_A1
COIL_A2
COIL_B1
COIL_B2
7, PTA5 can be used with the TPM module configured as input capture. In this mode, the
Driving a Stepper Motor Based on the MC9S08QD4 and Other 8-bit Families, Rev. 0
PTA5/TPM2CH0I/IRQ/RESET
PTA4/TPM2CH0O/BKGD/MS
PTAD5 - Pin 1 *
PTAD0 - Pin 8 *
PTAD1 - Pin 7 *
PTAD2 - Pin 6 *
PTAD3 - Pin 5 *
Figure 8. Input Signal Data Measurements
Figure 7. MC9S08QD4 8-Pin Package
V
V
SS
DD
8-pin Assignment
1
2
3
4
DIP/SOIC
5
8
7
6
PTA3/KBI1P3/TCLK2/ADC1P3
PTA0/KBI1P0/TPM1CH0/ADC1P0
PTA2/KBI1P2/TCLK1/ADC1P2
PTA1/KBI1P1/TPM1CH1/ADC1P1
Freescale Semiconductor
(Figure
8). These

Related parts for DEMO9S08QD4