My question is related to PIC Microcontrollers.
Q 1
I have to use port D of the PIC16F917A as an output port and write a simple program to control 8 LEDS to generate the binary-equivalent of the following decimal numbers:
119, 76, 14, 55 & 99
I know how to convert the numbers, but I am not that familiar with the C language.
Q 2
Use a switch as an input to read the status of bit 0 of port A, write a program to switch all odd numbered LEDs (the most right hand LED is number 0) connected to port D, upon detecting the switch closure.
Thanks everyone
Q 1
I have to use port D of the PIC16F917A as an output port and write a simple program to control 8 LEDS to generate the binary-equivalent of the following decimal numbers:
119, 76, 14, 55 & 99
I know how to convert the numbers, but I am not that familiar with the C language.
Q 2
Use a switch as an input to read the status of bit 0 of port A, write a program to switch all odd numbered LEDs (the most right hand LED is number 0) connected to port D, upon detecting the switch closure.
Thanks everyone