+ Post New Thread
Results 1 to 12 of 12
  1. #1
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Nov 2016
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    i want to help in this simple circuit of 7 segment

    hello, please, i want to help in this simple circuit , if i press the button stops the count

    code by mikroc


    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 28,814, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,587
    Helped
    1087 / 1087
    Points
    28,814
    Level
    41
    Blog Entries
    6

    Re: i want to help in this simple circuit of 7 segment

    I suspect you have a problem in the 1st line of your code.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )


    1 members found this post helpful.

  3. #3
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Nov 2016
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: i want to help in this simple circuit of 7 segment

    Quote Originally Posted by andre_teprom View Post
    I suspect you have a problem in the 1st line of your code.
    i want you to clarify the answer



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 28,814, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,587
    Helped
    1087 / 1087
    Points
    28,814
    Level
    41
    Blog Entries
    6

    Re: i want to help in this simple circuit of 7 segment

    How do you expect someone to help you fix the problem if you have not posted any code, or even reported precisely what is or is not working ? If you on the other hand are requesting a ready-to-use code, this is not the right way. You should first try to turn ON at least one of the segments of the display, and only after it this step, in the case of nothing works, you should ask for help. In short, with the information you have provided up to now, it is not possible to help you.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  5. #5
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Nov 2016
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: i want to help in this simple circuit of 7 segment

    i said i want to know how to make the count stops when the pressure, i mean i want the code for button and (special operation code in full only to clarify) the count from 0 to 9 , and thank you .



    •   AltAdvertisment

        
       

  6. #6
    Advanced Member level 4
    Points: 8,015, Level: 21
    Achievements:
    7 years registered
    paulfjujo's Avatar
    Join Date
    Jun 2008
    Location
    France 01120
    Posts
    1,303
    Helped
    264 / 264
    Points
    8,015
    Level
    21

    Re: i want to help in this simple circuit of 7 segment

    Hello,

    Quote Originally Posted by adine View Post

    code by mikroc

    put your mikroC code between CODE balises
    not into a picture not accessible..
    Then maybe you will get some help..



  7. #7
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    126 / 126
    Points
    5,417
    Level
    17

    Re: i want to help in this simple circuit of 7 segment

    Counter counts automatically and stops when button is pressed ? If yes, what happens if button is not pressed ? It will be counting till infinity ?



  8. #8
    Advanced Member level 4
    Points: 6,873, Level: 19
    Achievements:
    Created Blog entry Created Album pictures 7 years registered
    alexxx's Avatar
    Join Date
    Apr 2011
    Location
    Greece
    Posts
    1,011
    Helped
    278 / 278
    Points
    6,873
    Level
    19
    Blog Entries
    2

    Re: i want to help in this simple circuit of 7 segment

    In real life you would have taken the display in the hand, not to say the whole MCU! Can you imagine why?
    Also the web is full of 7 segment display examples in pic. A google search will confirm this in a few seconds.

    i mean i want the code for button
    Try searching for TRIS and PORT registers in the datasheet. There you will get the answers.

    Hint: Start with something simpler, ie display is always off and when you press the button all leds go on. Easy to implement and solid as a scenario to build on.



    •   AltAdvertisment

        
       

  9. #9
    Advanced Member level 4
    Points: 7,319, Level: 20
    Achievements:
    Created Blog entry 7 years registered
    xpress_embedo's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    1,162
    Helped
    199 / 199
    Points
    7,319
    Level
    20
    Blog Entries
    4

    Re: i want to help in this simple circuit of 7 segment

    Read Tutorials online and then post exactly, what problem you are facing.
    For Seven Segment
    http://embedded-lab.com/blog/lab-6-s...gment-display/
    For Basic Input Output
    http://embedded-lab.com/blog/lab-2-b...ut-and-output/



  10. #10
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    126 / 126
    Points
    5,417
    Level
    17

    Re: i want to help in this simple circuit of 7 segment

    Find the attached project.


    1 members found this post helpful.

  11. #11
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    126 / 126
    Points
    5,417
    Level
    17

    Re: i want to help in this simple circuit of 7 segment

    Fixed two things.

    1. Added a reset button so that when counter is 9 you can reset the PIC to restart the counter.
    2. It was not displaying 0 initially. Now it displays 0.



  12. #12
    Administrator
    Points: 1,173, Level: 7
    Achievements:
    Created Blog entry

    Join Date
    Sep 2014
    Location
    San Francisco Bay Area
    Posts
    19
    Helped
    1 / 1
    Points
    1,173
    Level
    7
    Blog Entries
    15

    Re: i want to help in this simple circuit of 7 segment

    Adine,
    You might also want to check out this tutorial on our sister forum community, Electro-Tech-Online, about 7-segment counters.
    https://www.electro-tech-online.com/...res-a-few.788/

    cheers,
    Ajak



--[[ ]]--