Re: Slightly OT: Up/Down-Counter, easy interfaceable to 8-bit MPU

From: Spiro Trikaliotis (ml-cbmhackers_at_trikaliotis.net)
Date: 2004-05-03 18:41:14

Hello Steve,

* On Mon, May 03, 2004 at 09:33:39AM -0600 Steve Judd wrote:

> Forgive the intrusion of this thorough hardware ignoramus, but... why
> can't you couple a 6522/26 to a logic inverter, i.e. use the inverter when
> you want to count up, and don't use it when you want to count down?  (A
> 2's complement thingie would be better if they exist, but I figure an
> inverter is close enough?)

I don't really understand what you mean.

The 6522/6526 timers are counters which count PHI2 pulses. I need to
count my own, "custom" pulses. Possibly, I could feed PHI2 with the
clock I need to count, but I'm not sure.

If the counter should count up or down depends on the status of another
input line. The is, whenever a clock pulse comes in, the states of the
other line determines if this clock pulse is meant to increment or
decrement the counter. I need the absolute value afterwards.

Unfortunately, I don't exactly understand what you suggest.

Kind regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.