Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/31/05 05:25
Read: times


 
#98496 - 74hc165 read problem
hi every one,
i tried to read 74hc165 chip throgh microcontroller but the data i receive is not according to inputs of 74hc165,
please see the code and guide where i am wrong.

pin 1(l/s) of 74hc165 is connected to port0.2
pin 2(clock) of 74hc165 is connected to port0.1
pin (9&10) of 74hc165 are connected to port0.0

below is routine to read from 74hc165

serial_sensor:
push acc
clr port0.2 ;load inputs
nop
nop
setb port0.2
mov c,port0.0 ;read d7
rlc a

clr port0.1 ;clock
nop
nop
setb port0.1
mov c,port0.0 ;read d6
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

clr port0.1
nop
nop
setb port0.1
mov c,port0.0
rlc a

mov sensor,a
pop acc
ret

thanks shivani

List of 28 messages in thread
TopicAuthorDate
74hc165 read problem            01/01/70 00:00      
   pull ps?            01/01/70 00:00      
      external pull up            01/01/70 00:00      
   74LS165 schematic and assembly program            01/01/70 00:00      
      re 74LS165 schematic and assembly progra            01/01/70 00:00      
   connections and timings            01/01/70 00:00      
      Port0 can show very high rise times            01/01/70 00:00      
      thanks oleg and kai            01/01/70 00:00      
      re connections and timings            01/01/70 00:00      
         What pull-ups?            01/01/70 00:00      
            Also....            01/01/70 00:00      
               re also            01/01/70 00:00      
                  Very strange...            01/01/70 00:00      
                     re Very strange...            01/01/70 00:00      
                        Something wrong with 74HC165?            01/01/70 00:00      
                           If you have an oscilloscope..            01/01/70 00:00      
                              re If you have an oscilloscope..            01/01/70 00:00      
            re What pull-ups?            01/01/70 00:00      
               HC vs HCT vs TTL            01/01/70 00:00      
   165 access problem            01/01/70 00:00      
   using opto to pulldown pin of 74hc165            01/01/70 00:00      
      which optocouplers            01/01/70 00:00      
      time for schematics            01/01/70 00:00      
   here is solution            01/01/70 00:00      
   it is working            01/01/70 00:00      
      because of something in your hardware            01/01/70 00:00      
         nop not due to hardware            01/01/70 00:00      
            still could be            01/01/70 00:00      

Back to Subject List