PIC Microcontrollers

Thread Starter

friskyy

Joined Mar 27, 2011
13
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
 

DumboFixer

Joined Feb 10, 2009
217
And the problem is ?

Q1 : What do you have so far ?

Q2 : Again, what do you have so far.

I think you'll find the answers are easier than you think.
 
Top