Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

use of cascade 74HC595 with atmega 8

Status
Not open for further replies.

selva murugesan

Advanced Member level 4
Joined
Mar 30, 2012
Messages
116
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
2,007
hi

i am doing the project in atmega 8 using codevision avr .In that i need 12BIT DAC. for elimination large number of PINs , i am using 74HC595. My idea is send the 12 bit values to the 74HC595 via single I/O pin.then the 74HC595 deliver inputs (12 bits ) to the DAC.

in this process i succeed partially, i cant do proper shift adjustment in 74HC595. In total 12 bits , i can shift and send the last 8 bits from LSB properly . remaining bits gets shuffle.


can any one help me?

thanks in advance
 

Hello selva,

can you describe your wiring between AVR uC and your 74HC595 chain or can you please show your schematics?

Regards
 

thanks asim

here i added one paint file
 

Attachments

  • atmega 8 with 74HC595.png
    atmega 8 with 74HC595.png
    90.2 KB · Views: 116

Hello Selva,
What I understand from your scheme is you want to shift 12 bits to provide input to DAC which is connected with two parallel outputs of your 74hc595 ICs.

The link that alexan has provided is quite expanatory. Please notice that ST_CP signal must be asserted (from low to high) and then de-aserted (from high to low) to transfer serial register contents on the 74595 parallel outputs. Since you are using two cascaded serial shift registers which both have common ST_CP signals and in your scheme you are driving the serial data input of your second shift register with D7(MSB) of first shift register, therefore to transfer contents to your second high order shift register you will need ST_CP signal to be asserted every time you shift a single bit. In fact you should combine both the Clock (SH_CP) and ST_CP signals togather to make them a single wire being driven as clock from your microcontroller.

If your dac does not has any strobe or write enable then you may have problem that while a 12bit word transfer is in progress you will see errornous values apperaring at the DAC output.

Regards
 

hai asim,

thanks. i understood the problem of that circuit.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top