Objectives 1. Learn how to run multiple code in c language. 2. Learn implement delays with timer
Question:
Objectives
Methodology
Start a new project as you did it previously. In this experiment you will write a main code for given source files. Aim is that run leds and display seven segment together when button is pressed. Write the given codes as ?source file?. Head of the ?main? code is also given. You should write inside the main; call runing led function and seven segment function in the mean time which you have saved as source file previously, it is so short code, please do not think complicated, You just call the functions inside main that you have write as source. Search for calling function into main in MPLAB x c language on the internet. Not forget to assign ?header code?.
Understand that Led use delay function and seven segment use timer for assign a delay to button as it is given.
-Now write a main code for combine them. Head of the main code