element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Shift Register Help
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 473 subscribers
  • Views 551 views
  • Users 0 members are here
Related

Shift Register Help

Former Member
Former Member over 15 years ago

Hi all,

I'm using 2 x 14 pin 74HC164Ns, cascaded together, to operate an LCD, 3 LEDs and a Piezo sounder. Controlled by a PIC16F874. Running at 4MHz.

My problem is: when I write to the shift registers, I get a clicking  sound on the Piezo, and flashing on the LEDs. The LCD is unaffected as  I'm driving the en input directly from the PIC.

The PCB has already been designed and manufactured, so I am a bit stuck.  Even toggling the clear input on the shift register doesn't solve the  problem.

Ideally I should have used a shift register with tri state outputs such  as the 595. However I am stuck with making what I have here work.

Possible solutions:

a) run the PIC at a higher speed?
b) fit a small filter to my LED and Piezo outputs (which are on flying leads) so they ignore these very short signals?

I'd appreciate your comments on the above - many thanks.

Phil

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 15 years ago

    Hi Phil.

     

    Well, if I'm right, you use these shiftregisters as an kind of port expander.

     

    If you are changing some values, you have to schift the whole 28 bits. And there's the problem.

    The other bits rattle over the output pins which drives the piezo and the leds. So if the speed is

    not high enought, you will see or hear this.

     

    So I have two possible solutions for this.:

     

    1)    try to increase the speed of the writing to the registers

     

    2)    solder a socket instead of the 74HC164Ns into your PCB. If you have good luck, you will find a pincompatible ic with an extra output enable pin, which you can connect to an free pin of the PIC, lcd enable pin or maybe to the last output bit of thes registers.

     

    I hope I helped you with this.

     

    yours woolf

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 15 years ago in reply to Former Member

    I think that woolfs error analyze is good, I think he's right.

     

    But I also think that the solution isn't the best.

     

    If you increase the speed you don't remove the fault you just hide it! I don't like to solve problems like this way.

     

    I think you have to edit your project basically to get a perfect result.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 15 years ago in reply to Former Member

    I think that woolfs error analyze is good, I think he's right.

     

    But I also think that the solution isn't the best.

     

    If you increase the speed you don't remove the fault you just hide it! I don't like to solve problems like this way.

     

    I think you have to edit your project basically to get a perfect result.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube