Hi Guys!
I am trying to create a very simple circuit using the PIC18f45k20 microcontroller whereby when power is applied to the PIC a welcome message appears on the LCD, when a button is pressed it sends a pulse to a relay to turn a motor on (Port RB4) When the button (RB4) is pressed again the motor stops running. I have attached the circuit diagram
I am coding in MPLab using the C18 compiler. I have attached the set up project window and I am a bit unsure how to finish the code.......
Simple PIC 18f45k20 Project
I am trying to create a very simple circuit using the PIC18f45k20 microcontroller whereby when power is applied to the PIC a welcome message appears on the LCD, when a button is pressed it sends a pulse to a relay to turn a motor on (Port RB4) When the button (RB4) is pressed again the motor stops running. I have attached the circuit diagram
I am coding in MPLab using the C18 compiler. I have attached the set up project window and I am a bit unsure how to finish the code.......
Simple PIC 18f45k20 Project