6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Nov 13, 2024 6:32 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 01, 2024 7:50 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
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.


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 01, 2024 8:27 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8540
Location: Southern California
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?


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 01, 2024 8:52 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: