Connect with us

74HC165, parallel to serial data conversion

Discussion in 'Microcontrollers, Programming and IoT' started by RDD, Mar 6, 2018.

Scroll to continue with content
  1. RDD


    Mar 6, 2018
    Hi dear friends,

    Thanks for providing the opportunity to interact with you experts!

    Here I want to perform parallel to serial data conversion. Therefore I am using 74HC165, 8-bit parallel-in/serial-out shift register.

    I need C code to read & store the fault status into Variable( say unsigned char). I tried below C code but its not working.

    Basically I have an 8 Window Annunciator product where I want to read the Eight different Fault status. These faults can be either Logic 0 or Logic 1. Now these Eight status shall be collected into a Variable(datatype: unsigned char, as value 0b00000000/ 0b11111111 is possible)

    Hardware logic is illustrated as shown in fig(A):

    D0 to D7 are eight fault status which can be either Logic 0 or Logic 1.

    C Code to read & store the status is attached as follows:

    So kindly suggest the correct C code to read & store the fault status into Variable.



    Santosh Bhat

    Sr. Engg, Bangalore

    Attached Files:

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day