Discussion in "PIC Microcontroller Discussion" started by    arp    Jan 9, 2008.
Wed Jan 09 2008, 02:51 pm
#1
Hello,

I have an application where i have to drive 8 leds thro' MM74HC595 using PIC16F877A.
Short Description of 74HC595:
15,1....7 -> o/p pins where LEDs are connected.
11 -> SCK
12 -> RCK
13 -> /G
14 -> SER (Data line from Microcontroller)

I require following pins from micro to interface 595:
RB0 -> pin 13(/G) to select the chip.
RB1 -> pin 11(SCK) for clock.
RB3 -> pin 14(SER) for data o/p to 595

My question is :

a) are the above lines(just interfacing) enough for the subjected application except VDD and GND.
b) Is there any requirement for RCK clock??

regards,
arp
Wed Jan 09 2008, 09:21 pm
#2
RCK and SCK are two clocks.. RCK for storage register clock and SCK for shift register clock.. you need both clocks to get your data out on output latches.. and to enable the data to be read on parallel output pins /G signal is needed.. serial data is inputted through SER pin.
Lastly /SCLR its a master reset signal to reset all the registers.. this can be used before sending any data to MM74HC595. This ensures that you are starting to send a fresh data..

So now as per i explained you need the following signals to control this IC
SER, SCK, RCK, /G, /SCLR.

SCK and RCK can be both shorted and connected to one of the pin of controller.. as per the datasheet.. shift register clock will always be one pulse ahead of that of storage register clock. So to successfully shift the complete data you need 9 clocks.
after that assert the /G signal.

Hope you understood.. if any problems.. ask again..

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am