6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 12:58 pm

All times are UTC




Post new topic Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: Tue Sep 06, 2011 9:21 am 
Offline
User avatar

Joined: Mon Dec 08, 2008 6:32 pm
Posts: 143
Location: Brighton, England
When using Motorola 68xx chips with the 6502, the E line should be connected directly to the 6502's phase 2 output. Although this line is called Enable, it is not a chip select line, it is a timing line with the same function as the 65xx series phase2 line.

It is called Enable because it is used to indicate that data should be enabled onto the data bus by a devices' 3-state drivers when it is active.

_________________
Shift to the left,
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2011 1:56 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8178
Location: Midwestern USA
PaulF wrote:
When using Motorola 68xx chips with the 6502, the E line should be connected directly to the 6502's phase 2 output. Although this line is called Enable, it is not a chip select line, it is a timing line with the same function as the 65xx series phase2 line.

It is called Enable because it is used to indicate that data should be enabled onto the data bus by a devices' 3-state drivers when it is active.

Told you my memory was hazy. :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Oct 02, 2011 5:00 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
When i connect my 6850 with the rs232, can i leave the receive clock running all the time, or it must be synced with the rs232 data?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Oct 02, 2011 5:46 pm 
Offline

Joined: Fri Aug 30, 2002 2:05 pm
Posts: 347
Location: UK
The Rx clock should be running all the time.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Oct 02, 2011 7:30 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
Yes. Again, RS-232 is asynchronous.

_________________
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  
 Post subject:
PostPosted: Sun Oct 02, 2011 11:50 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
I know that rs232 is usually associated with uart, anyway what is the difference between acia and uart?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Oct 02, 2011 11:59 pm 
Offline

Joined: Fri Aug 30, 2002 2:05 pm
Posts: 347
Location: UK
An ACIA only implements a subset of character lengths, parity, start and stop bit and break options. A UART should do them all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 03, 2011 1:56 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
I've never heard of a distinction.  The 6551 ACIA does do the whole set AFAIK:
  • 5, 6, 7, or 8 data bits
  • 1, 1.5, or 2 stop bits
  • odd, even, mark, space, or no parity
  • full duplex
  • programmable echo mode
  • transmit data, continuous stop, or continuous break
  • 15 programmable baud rates, + external 16x clock source like for MIDI which is 31.25kbps
Is there anything else?

_________________
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  
 Post subject:
PostPosted: Mon Oct 03, 2011 2:10 pm 
Offline

Joined: Fri Aug 30, 2002 2:05 pm
Posts: 347
Location: UK
All UARTs are ACIAs but not all ACIAs are UARTs.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 03, 2011 2:54 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8178
Location: Midwestern USA
Dajgoro wrote:
I know that rs232 is usually associated with uart, anyway what is the difference between acia and uart?

None...two different terms describing the same functionality.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 04, 2011 11:38 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1001
Location: Canada
A USART (like a 2651 or 16550) is the big boy in low speed communications. Both the ACIA and UART have subset functionality and are essentially the same.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 05, 2011 12:01 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1001
Location: Canada
GARTHWILSON wrote:
I see now in the data sheet that for the 1MHz 6850, the CS lines need to be valid at least 80ns before E rises; so yes, E would definitely have to be gated by phase 2, whereas the chip selects must not be. For the 1.5MHz part, it's 60ns min, and for the 2MHz part, it's 40ns. You could probably run phase 2 directly to the E input by itself. As long as the CS lines are not all true, it won't do anything.


Hmmm, I've hung the E input to Vcc and gated phi2 with the CS2 through a 74ls138. It seems to work fine and has for many years.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 05, 2011 12:11 am 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Since i have lots of stuff that uses serial com, i made myself a small switching circuit 4 to 1 for the acia. Do i have to switch the rts cts signals too, or can i connect them directly both from max232 to the acia(rts will need an or gate, i think)?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 05, 2011 12:48 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
Quote:
Quote:
I see now in the data sheet that for the 1MHz 6850, the CS lines need to be valid at least 80ns before E rises; so yes, E would definitely have to be gated by phase 2, whereas the chip selects must not be. For the 1.5MHz part, it's 60ns min, and for the 2MHz part, it's 40ns. You could probably run phase 2 directly to the E input by itself. As long as the CS lines are not all true, it won't do anything.

Hmmm, I've hung the E input to Vcc and gated phi2 with the CS2 through a 74ls138. It seems to work fine and has for many years.

Well, I suppose WDC is not the only company with errors in their data sheets!

_________________
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  
 Post subject:
PostPosted: Wed Oct 05, 2011 1:31 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1001
Location: Canada
You know, I never even looked at the datasheet.

I had the 6850 knocking around and saw a circuit for a UK101 work-like which I discovered in the projects section of this site that used it. While the rest of the circuit is different, I used his connection schema for the 6850 and it's clock. I figured if it worked for him it would work for me. And it did!

Over the years I have put Lee's EhBasic on it as well as OSI basic, Pittman's Tiny Basic and Micro-chess. More recently I had actually wanted to find a romable Forth to put on it as well, but ran out of steam on that. It's been a real trooper.

Just looked at the datasheet for 6850, and according to it, it should not work!

_________________
Bill


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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: