Question: (b) As an embedded system engineer, you are required to develop an embedded C program using mbed SDK to control three LEDs via the FRDM-KL25Z

(b) As an embedded system engineer, you are required to develop an embedded C program using mbed SDK to control three LEDs via the FRDM-KL25Z development board. LED1 should blink at a rate of 4Hz, LED2 should blink at a rate of 2Hz and LED3 should blink at a rate of 1Hz. The operation starts once the board is powered and it will run continuously until power is removed. The LEDs are turned on by a logical '0' and they are connected to PTB18 (LEDI), PTB19 (LED2) and PTD1 (LED3). i. Develop an embedded C program to perform the required operations by using [7 marks] ii. Rewrite the embedded C program in Q3(b)(i) to perform the required operations in a multithreading manner by using mbed RTOS API. [8 marks] mbed timer ticker function. (b) As an embedded system engineer, you are required to develop an embedded C program using mbed SDK to control three LEDs via the FRDM-KL25Z development board. LED1 should blink at a rate of 4Hz, LED2 should blink at a rate of 2Hz and LED3 should blink at a rate of 1Hz. The operation starts once the board is powered and it will run continuously until power is removed. The LEDs are turned on by a logical '0' and they are connected to PTB18 (LEDI), PTB19 (LED2) and PTD1 (LED3). i. Develop an embedded C program to perform the required operations by using [7 marks] ii. Rewrite the embedded C program in Q3(b)(i) to perform the required operations in a multithreading manner by using mbed RTOS API. [8 marks] mbed timer ticker function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
