Question atmega328 to 74595

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Hi

I have a project with atmega 328p IC and register shift 74595 which is as above

The atmega328 IC has a small port, so we had to use the IC 74595

The work process is such that by pressing the push of buttons A and B on seven segments, figures are shown.

Of course, we have 4 pushbuttons on my circuit, each of which goes to a subroutine by pressing it and exits it with one of them.

According to my circuit, can anyone tell me what method was used?

The circuit can not be changed in any way

And we just have to use those ports

Someone can help

 

Programming language  c

software   codevision

 

 

 

 

Attachment(s): 

This topic has a solution.
Last Edited: Sun. Apr 4, 2021 - 11:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You don't need to put resistor at Q7' as it's output for cascading.
The MR pin (10) need to connect to VDD.
You left it floating.
It's the reset pin of 74595
.
I don't know what you mean about methode.
And I don't know what is exactly you need it to do.
What is the 4 button do?
What should show on display?
Tell us so anyone can help.

I don't know why I'm still doing this hobby

Last Edited: Sun. Apr 4, 2021 - 10:14 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

1jafarpour wrote:
The circuit can not be changed in any way
And we just have to use those ports

If your teacher has given you this circuit she is very cruel.

 

With any project you have to get the hardware electrical circuit correct before any software program can work.

 

You will never get push buttons to work in a sequential circuit.   Every bounce will be interpreted as a pulse.   Real buttons will have several bounces.

 

We will not do your schoolwork for you.    But if you ask specific questions we can answer them.

 

David.

Last Edited: Sun. Apr 4, 2021 - 10:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm not a student, I'm doing reverse engineering

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hold the button A then push Up / Down?
I'm just curious what board you want to reverse engineered?

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Parking jack board

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MicroGyro 1jafarpour  wrote:
I'm doing reverse engineering

Why?

 

Surely, this would be far easier to just write from scratch?

 

EDIT

 

fix citation

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Mon. Apr 5, 2021 - 09:02 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes, right

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can help me write it ?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The display was different with the one you write?
PA not AA nor PP

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sir... You quote the wrong person :)

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The program I have in mind is different
You can help me according to this plan I drew

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1jafarpour wrote:
You can help me according to this plan I drew

That takes us back to #3.

 

What have you tried?  Where are you stuck?

 

As always, if a problem is too big/complicated to solve in one go, break it down into smaller parts:

 

https://www.avrfreaks.net/commen...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can help me according to this plan I drew

Why did you connect one push button with a pull up resistor, and another with a pull down resistor?

Why do two of your push buttons not have any pull up or pull down resistors?

 

The Mega328 has internal pull-up resistors available which can often be used instead of adding external ones.

 

As a general rule, one would design the interface hardware, and then be consistent, i.e. use the same push button interface for each one, not use three different methods to interface the push buttons.

 

JC  

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DocJC wrote:

Why did you connect one push button with a pull up resistor, and another with a pull down resistor?


The schematic was already changed.

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1jafarpour wrote:
You can help me according to this plan I drew

The resolution is too low to read some of the text.

 

JPEG is best for photographs, not diagrams - try PNG instead.

 

MicroGyro wrote:
You quote the wrong person

So I did - sorry about that.  Fixed.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you sir!

I don't know why I'm still doing this hobby