6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Apr 25, 2024 9:51 pm

All times are UTC




Post new topic Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: 65802 anyone?
PostPosted: Sun Mar 12, 2017 4:59 pm 
Offline

Joined: Mon Sep 14, 2015 8:50 pm
Posts: 110
Location: Virginia USA
It appears that a2heaven.com is working on a 6502 compatible plug in board to replace a 6502/65c02 cpu with a 65816. Not available yet, but it looks like it's in the pipeline...

https://www.facebook.com/a2heaven/photo ... =3&theater

Like the 65802, can address only 64k but can switch to native mode for 16 bit registers, relocatable stack and direct page.

Cheers,
Andy


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Sun Mar 12, 2017 9:57 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8143
Location: Midwestern USA
handyandy wrote:
It appears that a2heaven.com is working on a 6502 compatible plug in board to replace a 6502/65c02 cpu with a 65816.

Of all the places information about something like this device could be posted, why on Facebook? :?: :?

From the post:

    65C816->6502 board
    Advantage :
    - use 8 and 16 bit instructions set
    - full pin to pin compatible
    - generate missing PH1 and PH2 signals
    - generate SYNC signal
    - keep data bus in high impedance during PH1
    - low power consumption
    - up to 14Mhz

Concerning that highlighted item, the real 65C802 did not high-Z the data bus during Ø2 low, which is also true of other 65xx devices. I don't understand why this device would do such a thing. Any system that wanted to claim the data bus during Ø2 low would have the necessary hardware already in place.

Also, what is an "8 and 16 bit instructions set"?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 9:40 am 
Offline

Joined: Mon Sep 14, 2015 8:50 pm
Posts: 110
Location: Virginia USA
I found the link to the facebook page at a2central.com. There's another website a2heaven.com with other products. It looks a lot like a project I've seen proposed here using a 65816 as a pin-compatible replacement for a 6502. I would think that since a 65816 emits a bank address on the data bus that's the reason for the high impedance so as not to interfere with an apple IIc's video cycle (perhaps). 8 and 16 bit instruction set is probably another way of saying emulation and native mode. The folks are located in Bulgaria I believe. English isn't their native language.

Cheers!
Andy


Last edited by handyandy on Tue Mar 14, 2017 3:51 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 5:13 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8143
Location: Midwestern USA
handyandy wrote:
I would think that since a 65816 emits a bank address on the data bus that's the reason for the high impedance so as not to interfere with an apple IIc's video cycle (perhaps).

That might have been the thinking, but the 65C02 shipped with the Apple ][c did not have that characteristic, nor did the 65C802. Generally speaking, the 65C family stays on the buses at all times unless the BE input is driven low, at which time A0-A15, D0-D7 and RWB go to the high-Z state.

Quote:
8 and 16 bit instruction set is probably another way of saying emulation and native mode.

Except there is no such a thing as an eight and 16 bit instruction set, and the instruction set has no relation to operating mode. The m and x bits in the status register determine if a load, store or implied register operation (e.g., INX) operates on eight or 16 bits, but the actual instructions are the same in either case.

It's important to understand that all 65C816 and 65C802 instructions are valid in both modes, although with some limitations in emulation mode. For example, SEP works in both modes, but the m and x bits cannot be changed while in emulation mode, preventing the selection of 16 bit registers. Certain instructions, such as TCD and TSC implicitly operate on 16 bits regardless of operating mode. Also, the B-accumulator remains accessible in emulation mode through the XBA instruction.

It can be said that in emulation mode, 65C816 sort of becomes a 65C02 in terms of software, but almost looks like an NMOS 6502 to other devices on the buses, except the bank bits are emitted during Ø2 low. In terms of software, the real 65C802 was the same as the 65C816 in emulation mode, but accurately produced the 65C02's bus characteristics.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 5:33 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3346
Location: Ontario, Canada
BigDumbDinosaur wrote:
the real 65C802 [...] accurately produced the 65C02's bus characteristics.
Agreed. And both of those CPU's "float" the data bus to its high-impedance state when Phase2 is low -- right? You seemed to say otherwise in your previous post, but I'm not 100% sure I understand the wording used. My take on the '802, 'C02 and 6502 datasheets I've seen is that the bus floats.

But the '816 is exceptional in this regard because when Phase2 is low its data bus presents the bank address. That could present a problem in the context of an '816 used for a 6502 compatible plug in board, but evidently they've managed to deal with that. (I want one of those boards! 8) )

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 7:27 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8427
Location: Southern California
WDC's 65c02 data sheet's timing diagram implies that if you have two write cycles in a row like you would when pushing a return address onto the stack, the processor may continue to assert the data bus through phase 1 but with data that's not guaranteed to be valid between the end of tDHW and tMDS.

_________________
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: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 7:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
That's the sort of thing which would have me suspecting the datasheet!
(Could you clip a snapshot and post it?)


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 8:18 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8427
Location: Southern California
Attachment:
02WrDataInPh1.gif
02WrDataInPh1.gif [ 25.13 KiB | Viewed 8161 times ]

I suppose that as with so many other things regarding WDC data, you just have to try it if you want to find out.

_________________
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: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 8:23 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Thanks for the clip! (If you want to test if a bus is driven or not, you need to sprinkle some resistors around.)


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Mon Mar 13, 2017 10:02 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3346
Location: Ontario, Canada
Attachment:
02WrDataInPh1.gif
02WrDataInPh1.gif [ 25.13 KiB | Viewed 8146 times ]
Certainly the diagram above is thought-provoking. The portion Garth circled seems to show the data bus driven to an invalid state. If the bus were invalid because it's floating then you'd expect it to be drawn as show below, using the usual visual vocabulary. So, can we conclude the bus is driven?

Attachment:
02WrDataInPh1 rev 1.gif
02WrDataInPh1 rev 1.gif [ 24.74 KiB | Viewed 8146 times ]


I don't believe so. We know that BE floats the bus. Why isn't its behavior drawn in the expected fashion (below)?

I think maybe the draftsman was a new hire! :P The diagram is flawed, IMO. But if there's other evidence to say a 65c02 (or any 65xx processor other than the '816) can drive the data bus in phase 1 then I'm all ears.
Attachment:
02WrDataInPh1 rev 2.gif
02WrDataInPh1 rev 2.gif [ 25.53 KiB | Viewed 8146 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Tue Mar 14, 2017 4:12 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8143
Location: Midwestern USA
BigEd wrote:
If you want to test if a bus is driven or not, you need to sprinkle some resistors around.

That, or check the driver's seat to see if anyone is occupying it. :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Last edited by BigDumbDinosaur on Tue Mar 14, 2017 4:30 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Tue Mar 14, 2017 4:30 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8143
Location: Midwestern USA
Dr Jefyll wrote:
Certainly the diagram above is thought-provoking. The portion Garth circled seems to show the data bus driven to an invalid state. If the bus were invalid because it's floating then you'd expect it to be drawn as show below, using the usual visual vocabulary. So, can we conclude the bus is driven?...I don't believe so. We know that BE floats the bus. Why isn't its behavior drawn in the expected fashion (below)?

Even more interesting and confusing was the timing diagram from the 65C832 data sheet:

Attachment:
File comment: 65C832 Timing Diagram (c. 1990)
65C832_timing.gif
65C832_timing.gif [ 94.45 KiB | Viewed 8108 times ]

The "dead time" signal state is shown as "flat lined," which I would interpret to mean the 65C832 has floated the relevant outputs.

On the other hand, the 65C816 timing diagram uses yet another "notation" for some of the signals during the clock cycle "dead time":

Attachment:
File comment: 65C816 Timing Diagram
65C816_timing.gif
65C816_timing.gif [ 44.76 KiB | Viewed 8108 times ]

Well, we all know WDC's documentation leaves something to be desired. :D So guess we shouldn't be too surprised over these anomalies.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Tue Mar 14, 2017 5:16 am 
Offline

Joined: Mon Sep 14, 2015 8:50 pm
Posts: 110
Location: Virginia USA
I happened to locate a datasheet for the 65802/816 from 1991. Perhaps helpful...

Attachment:
w658028161991.pdf [4.24 MiB]
Downloaded 347 times


Cheers,
Andy


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Tue Mar 14, 2017 6:51 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8143
Location: Midwestern USA
handyandy wrote:
I happened to locate a datasheet for the 65802/816 from 1991. Perhaps helpful...

Attachment:
w658028161991.pdf


Cheers,
Andy

Good find.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: 65802 anyone?
PostPosted: Wed Aug 16, 2017 6:07 am 
Offline

Joined: Wed Aug 16, 2017 5:35 am
Posts: 10
http://www.findchips.com/search/65c802


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

All times are UTC


Who is online

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