MikroC Pro increment and decrement two 7 segment display

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
IcyWolfBrain
Posts: 2
Joined: 01 Dec 2021 12:18

MikroC Pro increment and decrement two 7 segment display

#1 Post by IcyWolfBrain » 15 Dec 2021 14:01

Hello guys, i need help with MikroC Pro programming code and the task is following -
Using two 7-segment indicators and a PIC16F628A microcontroller, implement a number generator (range: 00 ÷ 99).
Initial state: 00. Control is realized by two buttons. If one button is pressed, the generator automatically performs increment generation (increment , +1),
if the other button is pressed, automatic decrementing of the number takes place.

In attached files is screenshoot of shematics PIC16F628A microcontroller connection structure, but i dont know it is connected right?
Please can someone tell if its right?
Can someone help me out with programming code?
Attachments
Screenshot 2021-12-14 121622.png
Screenshot 2021-12-14 121622.png (45.4 KiB) Viewed 1200 times

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: MikroC Pro increment and decrement two 7 segment display

#2 Post by Thomas.Pahl@t-online.de » 18 Dec 2021 20:07

1.) I think, Decimal Point needs a resistor too
2.) If you run the mcu with 5V and the leds are red you have about 30...35mA per led may be max. tolerable for the pins. (better 150 ohms)
3.) But the common cathode/anode pins will not tolerate 7 times 30 mA. Use transistors to switch these lines on.

Post Reply

Return to “mikroC PRO for PIC32 General”