confusion with the CD74HC165 8 bit register


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default confusion with the CD74HC165 8 bit register

    Hi,

    I am just trying to use the CD74HC165 chip to see the serial 8 bit output, but its giving me nothing. I do not understand the PL, CP and CE ports, and there no explanation in the datasheet, can some explain to me these three ports??

    thanks

    K

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi,
    The '165 is an 8bit parallel in/serial out shift register. If reading it with PBP you use the Shiftin command. I mention this because you say you're trying see the 8bit serial output which to me sounds as if your trying to use with Shiftout. The DS input of the chip is a serial input but there's no way to "see" the data being shifted in, it's used to shift data "thru" the device when cascading several '165's.

    OK, the PL input is what "loads" the 8 bits of data (D0-D7) into the internal shift register. CP and CE are the two clock inputs, CP is active high, CE is active low.

    This datasheet has a pretty good description of how it works.

    /Henrik.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I was trying to use serin command. Cause the chip is parallel in - serial out. Do I need to sent a special signal for CP, or PBP takes care of that ?

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Serin is for asynchronous serial communication and can't be used with that shiftregister. You need to use Shiftin which is for synchronous serial communication.

    With the Shiftin command you specify two pins, one for the data and one for the clock. First you need to load/latch the data into the shiftregister by pulsing the PL pin, then the Shiftin command is used to shift data out of the '165 and into the PIC.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I understang you are mentionning two pins, one clocking and one input. Although the datasheet mentions PL and CP for input, Then Q7 for serial output. That would mean three pins, so we dont need CE pin ??.

    K
    Last edited by lerameur; - 13th December 2010 at 13:45.

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I think I have things cleared up. Data is Q7, Clock=CP, Pulse=PL (send a signal to receive the byte with shiftin command) and CE is grounded. ?!?

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts