help i have test tomorrow

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
uae_91
Posts: 5
Joined: 22 Apr 2012 06:06

help i have test tomorrow

#1 Post by uae_91 » 13 Jun 2012 12:08

this is question
Write a micro controller program to do the following.
When push button b0 is pressed the 7 segment displays "on" and LED c0 should burn at maximum brightness
When push button b1 is pressed the 7 segment displays "75" and LED c0 should burn at 75% brightness
When push button b2 is pressed the 7 segment displays "25" and LED c0 should burn at 25% brightness
When push button b3 is pressed the 7 segment displays "off" and LED c0 should be turned off
Here is a summary of the ports being used:
PortA and PortD used for 7 segment display
PortB used for push button input
PortC used for LED output
help i don't know how to write it

Post Reply

Return to “mikroC Wish List”