klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T21:52:48Z


I want to count the number of each bit that enters the BSR element (#N10:0).
I can't get the counter to see each consecutive bits in a row.
The counter counts; for example, 5 bits in a row as "1".


How can I get the counter to "see" each bit; even if they(bits)
are in a row ?

Thanks-
klm
Guest
2020-04-29T22:11:56Z
KLM,

Ok , think I understand what you are asking, but just ask differently if I miss. You emailed in a pdf of your program and I see you are using the seconds bit of the clock to enable your BSR. You use your unload bit to go to a counter. I assume that you want to count the bits that are On or 1 that are shifted out of the shift register. The UL or unload bit contains the bit that is shifted off of the data being worked on with the shift register. So if you have a bunch of 1's comming off of the shift register, the first bit gets counted by your counter, but the rest are not counted because the counter never sees a low to high or 0 to 1 transition. I think if you put a normally open contact with your done bit in series with your UL bit enabling your counter you will solve your problem. The done bit will go high or 1 when the instruction is complete and whatever is in the UL bit will determine whether or not the counter receives an enable. When the BSR is next enabled, the DN bit should go low until the shift is complete giving you a low to high transition even if the next UL bit is a 1. Try this out and let me know if this works for you.

Russell
klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T22:23:19Z
Russell,

Your suggestion worked great. This finally cleared-up some things for me. I have a better understanding now, about the 'R6" control data file.

Greatly appreciate it!

Thanks-

klm
Similar Topics
Users browsing this topic