6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 3:37 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Jul 09, 2016 12:49 pm 
Offline

Joined: Sat Jun 11, 2016 9:45 am
Posts: 5
Hi. I'm working on my first 6502 build, which has a VIA (6522) and a ACIA(6551). For some reason, 1 mhz half can oscillators (for the 6502) are very expensive and I already have a 1.8432mhz half can oscillator for the ACIA. I was going to buy another to run the 6502 at a slightly faster 1.8432 mhz but I was wondering if its possible to run both the 6502 and 6551 on the same oscillator i.e both are connected to the clock out of the oscillator. A second oscillator will cost a lot (less than a 1mhz, but still). Also, is 1.8432mhz too fast for use with bridge wire/wire wrap techniques using standard perfboard and DIP sockets?


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 09, 2016 6:09 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8545
Location: Southern California
No problem at all, unless you have an old 1MHz 6502 which may be on the raggedy edge of not working at 1.8432MHz. As for construction techniques, see our sticky topic, "Techniques for reliable high-speed digital circuits."

_________________
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: Sun Jul 10, 2016 4:28 am 
Offline

Joined: Sat Jun 11, 2016 9:45 am
Posts: 5
Well, I bought it about a month ago from a website called semikart (I think they are essentially a proxy for mouser in india). The part numbers on the chips are:
1) W65C02S6TPG-14
2) W65C51N6TPG-14
Thanks!

EDIT: Just wondering, I often run atmel AVRs on a breadboard with 20 mhz clocks. What is the difference between the 6502 and the AVR that one can handle much higher capacitance and the other cant?


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 10, 2016 7:45 am 
Offline

Joined: Sun Apr 10, 2011 8:29 am
Posts: 597
Location: Norway/Japan
Those are 14MHz parts, and at least the 65C02 can very likely run at 20 MHz in practice. Some have even successfully run them at 25MHz, according to rumours. So no problems there. 1KHz, 1MHz, 10.. doesn't matter.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 11, 2016 12:17 pm 
Offline

Joined: Sat Jun 11, 2016 9:45 am
Posts: 5
Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 16, 2016 4:40 pm 
Offline

Joined: Wed Oct 23, 2013 8:52 pm
Posts: 17
aditya3098 wrote:
Well, I bought it about a month ago from a website called semikart (I think they are essentially a proxy for mouser in india). The part numbers on the chips are:
1) W65C02S6TPG-14
2) W65C51N6TPG-14
Thanks!


be careful of the W65c51, as you will see elsewhere on this forum there are some big problems with some of these devices. I have just ditched them in favour of a SC28L92. The biggest problem being that the transmit status flag doesn't get updated.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 16, 2016 7:02 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Well, I try not to push it lately, having been the one to find the problem with the latest chips. Simply put, the Xmit status bit is stuck active, which results in the Xmit register always appearing empty and requesting another byte. Every standard software routine polls the bit for polled I/O or checks it for interrupt-driven I/O. The result is the data register gets written over before the current character is transmitted. This resets the transmit in progress, resulting in garbage out.

The only known W65C51 part to have this problem is lot number A6A749.1. If you have this lot number on the chip, it has the problem. Note that receive works perfectly fine, either polled or interrupt-driven. Your options are limited, either replace the part with an older and slower 6551/65C51 part (like a Rockwell), or a different UART altogether. The other option is to use a timed loop or separate timer to step the transmit, allowing enough time for the selected baud rate to complete sending the contents of the Xmit register. Good luck with your initial board setup.

_________________
Regards, KM
https://github.com/floobydust


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

All times are UTC


Who is online

Users browsing this forum: DRG and 24 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: