Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

SN74HC595 Shift Register All true during bootup


  • Please log in to reply
4 replies to this topic

#1 pjnowak

pjnowak

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 09 October 2012 - 12:11 AM

I hooked up my shift register according to this demo. But when I start up the Netduino I noticed that all of my LED's are initially on until I set them.

The project that I am working on needs them to be in they off state. Even during they initial netduino start up. Is there any way I can do this?

#2 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 09 October 2012 - 03:34 AM

The state of the register's outputs is (almost) unpredictable. If you want to take control over the outputs behavior, you can do that by leveraging the /OE input. Connect that signal to any Netduino output (which is high by default at startup). When the /OE is high, all the register's outputs are totally "opened", as they were "detached" from the circuit. Since no current can flow through that outputs, also no activity on the leds. Finally, when the Netduino program is ready to control the registers, take the /OE low. Cheers
Biggest fault of Netduino? It runs by electricity.

#3 Zoot

Zoot

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 10 October 2012 - 12:59 AM

Good idea, Mario. I think that in addition to your fix, I would use a 10k resistor to tie the /OE line high. The Netduino pin can still take it low to activate the shift register outputs like you say, but the Netduino won't have to source any current to keep the line high when the shift register outputs are off. Just my $.02

#4 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 10 October 2012 - 03:44 AM

Good idea, Mario.

I think that in addition to your fix, I would use a 10k resistor to tie the /OE line high. The Netduino pin can still take it low to activate the shift register outputs like you say, but the Netduino won't have to source any current to keep the line high when the shift register outputs are off.

Just my $.02


All the Netduino outputs are driven high by a pullup during startup. You can add your own pullup, but it's already embedded into the micro-controller.
Cheers
Biggest fault of Netduino? It runs by electricity.

#5 koloy

koloy

    New Member

  • Members
  • Pip
  • 2 posts

Posted 10 October 2012 - 11:47 AM

I currently have an Arduino, mbed, and finally, a Netduino at my disposal for development / hobbyist use.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.