**************************************************************************
ARM Cortex M0 +
**************************************************************************
########################################################
**************************************************************************
LED blinking
**************************************************************************
* Steps to realize basic embedded C code to blink green LED with some finite delay.
Without header file MKL25Z4.h
# How to simulate the basic LED blinking embedded C code on FRDM KL25Z freedom board
With header file MKL25Z4.h
# Write Embedded C code to blink green LED with MKL25Z4.h library on KL25Z FRDM board.
Part-2
**************************************************************************
Switch and LED
**************************************************************************
* Steps to realize the interfacing of switch and LED with KL25Z FRDM board.
# Write the simple switch and LED interfacing code in Embedded C on KL25Z FRDM board.
**************************************************************************
Linear search
**************************************************************************
**************************************************************************
Simple calculator
**************************************************************************
SW1 |
SW2 |
SW3 |
SW4 |
Operation |
Result stored on location |
OFF |
OFF |
OFF |
OFF |
No operation |
- |
ON |
OFF |
OFF |
OFF |
Addition |
0x1FFFF100 – 0x1FFFF103 |
OFF |
ON |
OFF |
OFF |
Subtraction |
0x1FFFF104 – 0x1FFFF107 |
OFF |
OFF |
ON |
OFF |
Multiplication |
0x1FFFF108 – 0x1FFFF10F |
OFF |
OFF |
OFF |
ON |
Division |
0x1FFFF110 – 0x1FFFF113 |
**************************************************************************
Even and odd numbers
**************************************************************************
* Write embedded C code for FRDMKL25Z to bifurcate the even and odd numbers from given 16 elements list each having size of 8-bit. Store even numbers to the location starting from 0x1FFFF100 to 0x1FFFF10F and odd numbers to the location starting from 0x1FFFF110 to 0x1FFFF11F.
**************************************************************************