Replacing shift register with PIC


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Apr 2006
    Posts
    92

    Default Replacing shift register with PIC

    Hi,

    I was wondering if it is possible to replace a 4021B (parallel to serial) shift register chip with a PIC using shiftin and shiftout functions?

    I am assuming that I would first need to shiftin the latch and clock data from the master, then shiftout the (serial data) bits to the master.

    The "master" in this case is a Nintendo NES video game system which uses a standard 4021B shift register in it's joystick to read 8 buttons in a parallel fashion, and then shifts the 8 bits out serially to the data input pin of the NES joystick input port.

    The NES sets the latch line low when it is ready to receive the serial data from the shift register. The shift register also receives clock data from the NES (master), but I'm not sure what to do with the clock data received.

    I want to mimic a 4021B shift register with my pic, but not sure how to handle the data received from the "master" clock and latch.

    Hope I'm not too confusing. If I am I'll try to clarify.

    Thanks for any help,
    T
    Last edited by TonyA; - 7th April 2008 at 16:18.

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  2. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. Use the PIC 16f877 or 877A instead of shift registers.
    By tsanders in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th October 2006, 17:23
  5. Replies: 15
    Last Post: - 30th January 2005, 03:58

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