Adsense

Write embedded C code for FRDMKL25Z to perform linear search of the number 25 from list of 10 elements size 32-bit. If search result true then lit green LED else red LED for 100ms.

 Steps to implement the code:

1) Take the number into any integer.

2) Configure registers for RED and GREEN LEDs.

3) Compare the number with all the elements one by one.

4) If element match with the number given turned on the Green LED for 100ms else turned on RED LED for 100ms. 

No comments:

Post a Comment

Write a ARM cortex M0+ assembly language code based on arithmatc and logical instructions.

 Problem 1: Implement following code conversions to convert binary no 0x89ABCDEF(32-bits) into a) BCD (64-bits)   b) Gray (32-bits) Problem...