I need help in coding my Lab 1, in which i have to create 2 traffic lights control system using PIC18f45k22 by using MPlab software.
//--- Program Header --- /*---------------------------------------------------------------------------------------------- File Name: ELNC6007Template.c Author: Name Date: DD/MM/YYYY Modified: Name or None copyright Fanshawe College, 2019 Description: Describe what the main function will do and what features, platform (Hardware) and / or supplemental documents are required for use and modify. ----------------------------------------------------------------------------------------------*/ // Preprocessor ------------------------------------------------------------------------------ #include "pragmas.h" // Constants --------------------------------------------------------------------------------- #define TRUE 1 // On Build, Defined Labels will be replaced by values as listed #define FALSE 0 // Global Variables -------------------------------------------------------------------------- // Functions --------------------------------------------------------------------------------- // --- Function Header --- /*--- functionName --------------------------------------------------------------------------- Author: Name Date: DD/MM/YYYY Modified: Name or None Desc: Description of what the function does. Input: Type and purpose of input arguments Returns: Type and purpose of returning argument --------------------------------------------------------------------------------------------*/ void functionName(void) { // code for function here. } // eo functionName /*--- MAIN FUNCTION ------------------------------------------------------------------------- -------------------------------------------------------------------------------------------*/ void main(void) { // eo main }