Re: Programmable Counter



On Aug 13, 11:59 pm, gabor <ga...@xxxxxxxxxxx> wrote:
On Aug 13, 1:33 pm, gtalk.nik...@xxxxxxxxx wrote:

On Aug 13, 10:30 pm, gtalk.nik...@xxxxxxxxx wrote:

Hi,
   There is an up down counter which has a programmable upper limit
and lower limit, which can be programmed when enable is low. Counter
starts counting when enable is high . Now if one signal mode will
decide whether it is up or down , then how am i suppose to capture the
upper limit and lower limit ?

Also the counter is wrap around.. next time when enable goes low again
the user has ability to reconfigure the limits or stay with old ones

I'm confused.  Are you saying you want to "capture" the upper or lower
limit from the current counter value?  Or you have a separate upper or
lower limit input to your module that you need to sample only when the
count enable is low?  Either way you would need a register for each
limit which is only enabled at the appropriate time when not counting.

Maybe if you can more concisely say what you're trying to do, you
will figure out how to do it.

Regards,
Gabor

Hi,
Yes there is a seperate upper and lower limit for the counter, but
that could be taken from one
input when enable is low for two clock cycles. In first cycle upper
limit can be given and other cycle lower limit can be given and these
values should be stored in two seperate registers.

Now when enable is asserted counter should start counting from the
limit which user says i.e up/down depending on the up/down signal. But
here the problem is how to transfer the limits to a temporary register
which should be incremented/decremented depending on up/down signal.

Moreover, if enable goes low again inbetween the up down operation,
the user can reconfigure the limits or stay with the old one's, so i
need to retain those previous values (which is not of a problem).

I hope i am able to convey it properly now.

Thanks
.



Relevant Pages

  • Re: Creating 2D graphic strip chart with trace wrapping
    ... The dynamic range of some of the data traces is quite large, ... "shoots through" the upper limit, it re-enters from the lower limit. ... somehow possible to reflect the 2D line at the upper and lower bounds, ...
    (comp.graphics.api.opengl)
  • Re: Using CountIf with criteria on another sheet
    ... perfect match. ... >> fall between upper and lower limit values on another sheet? ... >> Where a1:z1 are values to be compared against the upper and lower limit ... >> then counted if they meet the criteria ...
    (microsoft.public.excel.worksheet.functions)
  • List vector using upper and lower limits
    ... spin buttons that control the upper and lower limit the user desires. ... 'new' data range and an upper value of 3674 would be the end). ...
    (microsoft.public.excel.misc)
  • RE: Shading only part of the area between the axes in a 2D line graph.
    ... If this link doesn't fit your needs, be sure to look at Jon's entire site: ... > outside an upper and a lower limit. ... > colour from the rest of the plot area? ...
    (microsoft.public.excel.worksheet.functions)
  • Programmable Counter
    ... There is an up down counter which has a programmable upper limit ... and lower limit, which can be programmed when enable is low. ... starts counting when enable is high. ...
    (comp.lang.verilog)