Difference between revisions of "MC9S08MP"
From emboxit
(→Blink) |
m (1 revision) |
(No difference)
|
Latest revision as of 16:51, 11 September 2015
- MC9S08MP product page
- DRM-115 3-Phase AC Induction Motor Control with PFC Using MC9S08MP16
- 3PHASELV-KIT: 3-Phase BLDC/PMSM Low Voltage Motor Control Drive
Contents
Project
- 3-Phase AC Induction Motor Control with PFC
- ACIM_VHZ_PFC_S08MP16_1_0: Application s/w for ACIM using MC9S08MP16. <--DOWNLOAD this EXE and run it to create the project directory
- Contains CodeWarrior project (classic IDE)
- 5-Jul-2012: Downloaded, installed to workspace and build with CW-classic 5.90
- Contains CodeWarrior project (classic IDE)
- ACIM_VHZ_PFC_S08MP16_1_0: Application s/w for ACIM using MC9S08MP16. <--DOWNLOAD this EXE and run it to create the project directory
Logistics
1: 2,43 € 25: 2,09 € 50: 2,02 € 100: 2,00 € 500: 1,94 € 1.000: 1,63 €
1: 1,72 € 25: 1,48 € 50: 1,42 € 100: 1,16 €
Schematics
Blink
<cpp>
- define led1 PTED_PTED4
- define led2 PTED_PTED3
- define BIT_3 0x08
- define BIT_4 0x10
unsigned int loopCount;
void main(void) {
EnableInterrupts; /* enable interrupts */ /* include your code here */
PTEDD = PTEDD | BIT_3; PTEDD = PTEDD | BIT_4; led1 = 1;
for(;;) { __RESET_WATCHDOG(); /* feeds the dog */ loopCount++; if (loopCount > 20000){ loopCount = 0; led1 ^=1; } } /* loop forever */ /* please make sure that you never leave main */
} </cpp>