Driving a 3-bit DAC from a VIA

Let's talk about anything related to the 6502 microprocessor.
Post Reply
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Driving a 3-bit DAC from a VIA

Post by cbmeeks »

Hello.

I found this schematic on how to drive a simple 3-bit DAC with a VIA (CB2).

http://wilsonminesco.com/6502interrupts/index.html#3.3

However, I was wondering if I could do the same thing with CA2. I'm reading over the data sheet but I'm just not getting how all of the timers work or I'm not finding how a timer can output data out to CA2 or CB2.

If that circuit only works with CB2, I will just have to swap my ports around. But I'd rather not if I don't have to. :-)

Thanks!
Cat; the other white meat.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Driving a 3-bit DAC from a VIA

Post by GARTHWILSON »

The VIA's SR (shift-register serial port) is confined to using CB2 for data and CB1 for clock.  If the clock is controlled by a VIA timer, it will be T2.  There are quite a few modes of operation for each; but as is the case also with microcontrollers, the various timers and pins have limitations in the mix-and-match options.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Driving a 3-bit DAC from a VIA

Post by cbmeeks »

GARTHWILSON wrote:
The VIA's SR (shift-register serial port) is confined to using CB2 for data and CB1 for clock.  If the clock is controlled by a VIA timer, it will be T2.  There are quite a few modes of operation for each; but as is the case also with microcontrollers, the various timers and pins have limitations in the mix-and-match options.

Dang it! I was afraid of that. LOL.

Well, I will just have to swap the two ports so no big deal.

BTW, one of the biggest reasons I am building this one is so that I can tinker with these chips and not have to ask so many questions.

Thanks!
Cat; the other white meat.
Post Reply