Test setup for 65C816 processor

For discussing the 65xx hardware itself or electronics projects.
i_r_on
Posts: 62
Joined: 20 Jul 2015

Re: Test setup for 65C816 processor

Post by i_r_on »

I've replaced 10k resistors with 1.5K ones (I really don't have 3.3k ones)
I have 24Mhz and 32Mhz oscillators. Divided these by a counter to test 6, 8 and 12 Mhz. 6 and 8 ok, 12 Mhz fails. But my 24mhz logic analyzer can't properly display 12mhz clock too at that frequency.

If this is a counterfeit product by the way, it's not that strange they chose the name Winbond, in the below link they are wholesaling a part with Winsome brand :)

http://www.alibaba.com/product-detail/- ... 76269.html
User avatar
Dr Jefyll
Posts: 3526
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: Test setup for 65C816 processor

Post by Dr Jefyll »

i_r_on wrote:
in the below link they are wholesaling a part with Winsome brand :)
That's just a typo by the Alibaba web site. The markings on the chip say Winbond, right?

Not sure what to say about your 12 MHz test. There are several things that could cause a failure at high frequency. Can you post a photo of the test rig, especially showing the bypass caps and the counter etc used to generate the clock? What type of IC are you using for the counter?
Quote:
my 24mhz logic analyzer can't properly display 12mhz clock too at that frequency.
Hmm. If you go with a dummy opcode of $A9 then the address bus should increment every cycle, as Mike said. So, how about this. You can fool the logic analyzer by giving it A0 and "pretending" that's the clock. A0 will have one-half the frequency of PHI2, so now the "clock" is lower. Then connect the other logic analyzer lines to observe A1, A2, A3 and so on -- they should show the incrementing behavior.

(BTW even 1.5K may be too high for those resistors. I won't try to predict what the actual limit is -- that would require actual, as opposed to published, timing specifications; also actual input capacitance and actual input-voltage thresholds.)
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
i_r_on
Posts: 62
Joined: 20 Jul 2015

Re: Test setup for 65C816 processor

Post by i_r_on »

Dr Jefyll wrote:
i_r_on wrote:
in the below link they are wholesaling a part with Winsome brand :)
That's just a typo by the Alibaba web site. The markings on the chip say Winbond, right?
Actually the company's name in that link is Winsome. There is no picture of the IC they sell but the part number is W65C816.
Dr Jefyll wrote:
Not sure what to say about your 12 MHz test. There are several things that could cause a failure at high frequency. Can you post a photo of the test rig, especially showing the bypass caps and the counter etc used to generate the clock? What type of IC are you using for the counter?
A quick hack on the breadboard. I use a 74HC4040 12 bit counter IC. 220nf caps are there for all the supply pins to the parts. Logic analyzer's cables disrupt the view. I removed the reset part and feeded counter's most significant output to the reset pin so cpu would reset every 2^11 cycles.
20160122_225553.jpg
High res image : http://www.tepetaklak.com/data/20160122_225553.jpg
Dr Jefyll wrote:
Quote:
my 24mhz logic analyzer can't properly display 12mhz clock too at that frequency.
Hmm. If you go with a dummy opcode of $A9 then the address bus should increment every cycle, as Mike said. So, how about this. You can fool the logic analyzer by giving it A0 and "pretending" that's the clock. A0 will have one-half the frequency of PHI2, so now the "clock" is lower. Then connect the other logic analyzer lines to observe A1, A2, A3 and so on -- they should show the incrementing behavior.

(BTW even 1.5K may be too high for those resistors. I won't try to predict what the actual limit is -- that would require actual, as opposed to published, timing specifications; also actual input capacitance and actual input-voltage thresholds.)
I used counter's Q1 output to get a 6Mhz signal to feed to logic analyzer since chip has failed with both $A9 and $EA opcode.

Here is a photo of the chips.. When I closely examined them on the photo I decided that they are indeed counterfeit products. Small cavities (dots) under the chip's notches are non standard among the chips. They are all different sizes.
20160122_225617.jpg
High res image : http://www.tepetaklak.com/data/20160122_225617.jpg
Last edited by i_r_on on Sat Jan 23, 2016 10:08 am, edited 1 time in total.
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Test setup for 65C816 processor

Post by barrym95838 »

Dr Jefyll wrote:
... Not sure what to say about your 12 MHz test. There are several things that could cause a failure at high frequency ...
Well, you know what they say, right? "You Winsome, you lose some" ... I'll show myself out, thanks.

Mike B.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Test setup for 65C816 processor

Post by BigDumbDinosaur »

Dr Jefyll wrote:
It will be helpful if you can share not only your conclusions but also the details of the supporting information.
Sorry for the delayed response—it's been a long and busy day.

I've been swapping E-mail with David Cramer at WDC, who in turn, has been swapping E-mail with Bill Mensch. They have never heard of Winbond making discrete devices—and I would think they'd know. I have not pulled any of this out of my hat.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Test setup for 65C816 processor

Post by BigDumbDinosaur »

barrym95838 wrote:
Dr Jefyll wrote:
... Not sure what to say about your 12 MHz test. There are several things that could cause a failure at high frequency ...
Well, you know what they say, right? "You Winsome, you lose some" ... I'll show myself out, thanks.

Mike B.
<Groan> :lol:

He's here all week, ladies 'n germen. :P
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: Test setup for 65C816 processor

Post by Martin A »

Could they be older 8mhz pulled parts that have been "tidied up".

The top chip is a 20 year old pulled W65C816SP-8, it's not too clear in the photo, but the word TAIWAN and what looks like a batch code (93161X) are engraved into the bottom of the chip roughly in the middle between the 2 grey lines. One of the dots is blank, the other has B4 moulded in it

The newer chip pictured at the bottom is a much more recent W65C816S6PG-14, and in this case TAIWAN is moulded into one of the dots and 6J4 in the other
top chip  date code 9540, lower chip 1023
top chip date code 9540, lower chip 1023
i_r_on
Posts: 62
Joined: 20 Jul 2015

Re: Test setup for 65C816 processor

Post by i_r_on »

@Martin A : Mine look a lot similar to the below picture.
One of them has Taiwan G2, and an empty dot.
One of them has Taiwan D3, and an empty dot.
Two of them have PHILIPPINES and BR
One has TAIWAN (very hard to read) and A2

All of them have non uniform bottom paint giving the impression that they got some processing. (sanding and or painting)

By the way, where can I get information about these 8mhz parts?
User avatar
Dr Jefyll
Posts: 3526
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: Test setup for 65C816 processor

Post by Dr Jefyll »

i_r_on wrote:
When I closely examined them on the photo I decided that they are indeed counterfeit products.
I'm disappointed that these chips are not what they appear to be. But at least you got something functional (apparently, so far). Of course the red flags are up. No quality control assurance on these babies!
i_r_on wrote:
By the way, where can I get information about these 8mhz parts?
I haven't checked what's in the 6502.org document archive but here's an old GTE datasheet for 8 MHz '816 and '802.
i_r_on wrote:
Dr Jefyll wrote:
Not sure what to say about your 12 MHz test. There are several things that could cause a failure at high frequency. Can you post a photo of the test rig, especially showing the bypass caps and the counter etc used to generate the clock? What type of IC are you using for the counter?
A quick hack on the breadboard. I use a 74HC4040 12 bit counter IC. 220nf caps are there for all the supply pins to the parts. Logic analyzer's cables disrupt the view. I removed the reset part and feeded counter's most significant output to the reset pin so cpu would reset every 2^11 cycles.
Nice trick with the Reset! But, from what I can see, connections to the bypass caps have a lot of room for improvement. Admittedly it's a contradiction that you would be using a breadboard to create a circuit whose maximum clock speed you wish to determine. But if you MUST go that route then I suggest the bypass cap for the CPU be attached to the chip itself -- soldered on top, straddling the 40-pin package.
BigDumbDinosaur wrote:
Sorry for the delayed response—it's been a long and busy day.

I've been swapping E-mail with David Cramer at WDC, who in turn, has been swapping E-mail with Bill Mensch. They have never heard of Winbond making discrete devices—and I would think they'd know. I have not pulled any of this out of my hat.
Thanks for the clarification. Busy day and delayed response for me, too! It seems to me WDC themselves should already be on record with a first-person statement of who the alternative sources are, but it's not your fault that isn't the case. What's the accepted practice in the industry? It seems a sad state of affairs when a fake Winbond chip and a legit GTE chip could both get tarnished with suspicion of being counterfeit.

[Edit: maybe I'm expecting too much. For every alternative source agreement there was probably a press release at the time. But now the info isn't easily accessed.]

-- Jeff
Last edited by Dr Jefyll on Sat Jan 23, 2016 9:28 pm, edited 1 time in total.
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: Test setup for 65C816 processor

Post by Martin A »

There's a copy of an early (c 1986?) WDC datasheet for the W65C816 which covers 2,4,6 and 8mhz parts, within the Apple2 GS hardware reference found here http://apple2.gs/library.php.

Its a low resolution scan so not the most readable document.
User avatar
Dr Jefyll
Posts: 3526
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: Test setup for 65C816 processor

Post by Dr Jefyll »

Martin A wrote:
WDC datasheet [...] within the Apple2 GS hardware reference
Yes, in Chapter 10 -- pdf page 115; or page 205 according to the original numbering. Thanks, Martin!
Quote:
Its a low resolution scan so not the most readable document.
I think the main problem has to do with washed-out gray scale (before-&-after tweak below). Looks like interesting material in this manual, though. :)
Attachments
IIgs manual gray-scale.png
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
User avatar
Alamorobotics
Posts: 54
Joined: 30 Oct 2015
Location: Sweden

Re: Test setup for 65C816 processor

Post by Alamorobotics »

Bummer...

Didn't think of the possibility of counterfeit 65816 chips.
Sorry to hear they are not what they suppose to be.

Hopefully I should be safe if I stick with Mouser and DigiKey...
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Test setup for 65C816 processor

Post by BigDumbDinosaur »

Alamorobotics wrote:
Bummer...

Didn't think of the possibility of counterfeit 65816 chips.
Sorry to hear they are not what they suppose to be.

Hopefully I should be safe if I stick with Mouser and DigiKey...
Major electronics suppliers such as Mouser and Digi-Key have programs in place to try to catch counterfeits. In the case of the 65C816, WDC has publicly disclosed the foundries that produce their devices, which tends to make it easier to trace the parts back to their progenitors.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
Dr Jefyll
Posts: 3526
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: Test setup for 65C816 processor

Post by Dr Jefyll »

BigDumbDinosaur wrote:
WDC has publicly disclosed the foundries that produce their devices
I commented on this issue in my previous post, then tempered my remarks with an edit on Saturday to insert a post-script. Apologies if this was too easily overlooked -- I maybe should've made a new post.

Certainly the info about alternative sources isn't secret, but neither is it on record if the best we have to go on is, "BDD said that Cramer said that Mensch said... " Also, Winbond is just one part of the puzzle. The inquiry revealed nothing about other potential sources.
I wrote:
Edit: maybe I'm expecting too much. For every alternative source agreement there was probably a press release at the time. But now the info isn't easily accessed.
FWIW I have '816 datasheets from VLSI and from GTE (later acquired by CMD, I believe) -- and no Winbond datasheet. But the latter's absence didn't alarm me, given that old datasheets can be hard to find. And regarding the actual chips, GTE, CMD and VLSI markings can be faked. WDC, too.

I guess the takeaway is: either deal with major suppliers (for the reason BDD noted) or accept a degree of risk and be on the lookout for anomalies in the chips themselves. i_r_on, I hope you'll keep us informed regarding your further success (or otherwise) with your purchase.

-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
kakemoms
Posts: 349
Joined: 02 Mar 2016

Re: Test setup for 65C816 processor

Post by kakemoms »

barrym95838 wrote:
I would gladly pay an extra $10 for peace-of-mind, but that's just how I like to roll. Now, if I was buying in bunches, I might be tempted to re-think that ...

Mike B.
I think you should re-think your strategy and ask WDC for a meeting if you need volume. They will certainly give you much lower price on volume than what some dodgy parts from "winbon" will be. They are nice folks to talk to.

A usual strategy from such companies is to give you 10 working parts that are top notch. If you order 1000pcs you will be lucky to have 10 more working. This is no joke.
Post Reply