PDA

View Full Version : How to use 74LS164 ?



iugmoh
- 4th February 2008, 19:24
Hi friends

anyone have any idea how to use 74ls174 with pic to output 8 bits ?
I read its datasheet and know that it's working on rising edge pulse of clock

iugmoh
- 4th February 2008, 20:06
Yes , I used shiftout and it's working right
here is the code
==================================
; RB0 ==> clock
; RB1 ==> A
; B ==> VCC
; reset ==> VCC
INCLUDE "modedefs.bas"
symbol clock=portb.0
symbol inputA=portb.1

b0 var byte
b0=%11101010

shiftout portb.1,portb.0,1,[b0]

main:
goto main
end
==============================

duncan303
- 5th February 2008, 09:24
I guessed you would be back asking how to use the 74ls174 thats why I gave it to you, what did not surprise me either is that you also came back 10 minutes later after having glanced at the datasheet and said I can't be botherered to read this, Ill just get somebody to do it for me.

what has surprised me is that you have not changed your name.

would it surprise you to know that I am 93 years old, and a widow, I first got interested in PICs to monitor the temperature of the squashes in my bell cloche, I have only been programming for 3 weeks........ are you not embarrased young man, after all you are only 24 you should be able to read much better than me.

iugmoh
- 5th February 2008, 10:59
Thanks Dancan

I thank you to give me the chance to search and search and do and trial our working before I ask anyone untill I arrive to imposible stage to solve it then I will ask you