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

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu May 19, 2022 3:19 pm 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
Hi all,
Newbie here, building an RC6502 Apple 1 SBC using an Issue H board.

Soldering is complete and to speed things up, I got a TL866 II Plus to burn the EEPROM which is an AT28C64XF-25PI (from EBay)
TL866 is new out of box and I reflashed the firmware in it. The device drop-down doesn't show an exact match but tried various flavours
and no joy.

I suspect the 28C64 is a 250mS part and I wonder if it is too slow???

Any ideas??
Cheers
Reg


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 3:35 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Welcome, Reg. :)

250ms would indeed be too slow :shock: but I think you mean 250 ns, which should be fine. :wink: (Your clock rate is only 1 MHz, am I right?)

It might be a mistake to focus your troubleshooting on the EEROM. Perhaps that chip is misprogrammed, but it's also possible your project has a problem elsewhere.

In order to assist most effectively we will need more information, starting with photos (which you're allowed to attach to your post). And the CPU -- is it really "RC6502" or is it actually R65C02?

A schematic will also be helpful; also the symptoms you've observed so far. IOW, how does the system behave? Cheers,

Jeff

_________________
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  
PostPosted: Thu May 19, 2022 3:52 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
Hi Reg,

Double check your jumper settings before you try anything else... A14 Select and A15 Select need to be un-jumpered to use a 28C64, and ROM_EN needs to short pins 1 and 2 to enable the ROM chip. The way the board is laid out can make this non-obvious at first.

Make sure your ROM chip is good by reading it back and comparing the dump file with the file you wrote. I seem to remember that the EEPROM programmer you have has a "detection mode," so you can tell it to look for a specific chip (in this case, 28C64) to make sure you bought the part you think you did.

If that doesn't uncover the problem, give more details... what specific CPU are you using, what clock speed, etc. I found the SBC version to be a bit fussy to get working, but I did eventually find success. (My modular backplane version is zooming along at 8Mhz with a modern WDC 65c02. :)

Edit: Hey, rereading your first post, I think maybe I misinterpreted your question. You're having trouble getting the ROM to work with the programmer, not with the SBC, is that right? In that case I'd suggest abandoning the manufactured software and switching to "MiniPro:" https://gitlab.com/DavidGriffith/minipro/. I run it on an old ThinkPad with ubuntu; there's also a MacOS version. Not sure if there's one for Windows.

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 4:07 pm 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
Hi Dr. Jeff
Thanks, that was quick off the mark. Typical of me to slip a quick '000 there :(

I am building the SBC off the github/tebl and will be using the 8k .bin file from there (when I can burn it).
Have done basic post-soldering tests and all chips except 28C64 are socketed but I have NOT turned on the power.
I am trying now to program the EEPROM in the TL866. Never done this before and it is a new toy :D

TL866 is from XGecu and the supported devices list from their site (28-pin dil only) is :-
AT28C64 AT28C64B AT28C64B(Non-Standard) AT28C64E AT28C64F
I have tried several of the above to no avail. I must admit I cannot find much detail on the XF variant.
Just noticed there are "HC" variants (not tried) of the 28*** but mine is definitely a "C"

I have attached a bit of 6502 Pron for you.

Thanks
Reg


Attachments:
RC6502.jpg
RC6502.jpg [ 1.4 MiB | Viewed 1647 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 4:18 pm 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
Hi Paganini,
Thanks. Yes, I am still trying to bet the .bin file onto the 28C64 using the TL866.

I will give that alternative software a whirl later on and get back. Manufacturer's software often lets these devices down.
Linux isn't a problem; use WIN for day-to-day but have a laptop and another box on Linux.

Cheers
Reg


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 4:38 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
RegH wrote:
Hi Paganini,
I will give that alternative software a whirl later on and get back. Manufacturer's software often lets these devices down.
Linux isn't a problem; use WIN for day-to-day but have a laptop and another box on Linux.


Great! My database has an "AT28C64" entry, which I think should work with your chip. I'm not totally sure what "XF" means, however. The Atmel data sheet doesn't list an "F" suffix, and googling for your exact chip doesn't turn up much.

Edit: I also came across this blog post: http://stuffandnonsense.elephantandchicken.co.uk/?p=904 Hopefully, you have not been the victim of counterfeit parts, but if you have you might be able to get it working by trying some alternate model codes. I'd suggest getting some more ROMs from, e.g., Mouser. You can never have too many ROMs! :D

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 8:27 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
Have you tried the Catalyst CAT28C64 device on the programmer? I had a case with a AT28C16 where the programmer wouldn't work with the Atmel device but would with the Catalyst.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 8:44 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Maybe it's nothing, but the 74LS04 looks a bit odd sitting in the socket. Might be worth checking to ensure all leads are inserted in the socket and that all chips are making good contact.

Beyond that, hopefully the software you're using to program the EEPROM can read the chip contents and allow you to view the buffer contents. This should allow you to get an idea of what's on the chip.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu May 19, 2022 11:10 pm 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
All,
Thanks ever so much for the help; it seems to be working now got into WozMon at least :D
Will elaborate more tomorrow when I have had a chance to test further.
Reg


Top
 Profile  
Reply with quote  
PostPosted: Fri May 20, 2022 7:41 am 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
All,
Thanks again everyone for the prompt attention.
It is indeed still working nicely this morning. I had the usual panic when plugging in because the jumpers were incorrect (who said non-obvious?). It is a good job it worked after that because my tools are limited to a soldering iron & DVM.

Have had a quick whirl on WozMon, Krusader & Basic.
Is there a sane way to get back to WozMon from the others?? (RST is fine though)

Paganini wrote:
In that case I'd suggest abandoning the manufactured software and switching to "MiniPro:" https://gitlab.com/DavidGriffith/minipro/.
The MiniPro software worked perfectly using 28C64 although it is a long time since I have seriously used CmdLine (Solaris on Sun workstations mid-late '80s???). We get spoilt usin GUIs :cool:
MiniPro programmed and reported verified OK. I re-verified OK using Xgpro but noticed a "Pin Detect" error which may have been my original error.

floobydust wrote:
Maybe it's nothing, but the 74LS04 looks a bit odd sitting in the socket.
Indeed, the 74LS04 was a bit twisted in the socket but making good contact. Not sure how I managed that.

Right, must dash and thank you all again
Cheers
Reg


Top
 Profile  
Reply with quote  
PostPosted: Fri May 20, 2022 2:19 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
8)

Glad it's working! It's a good feeling when you fire it up and see what you're expecting, right?

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Sat May 21, 2022 11:00 am 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
Paganini wrote:
Glad it's working! It's a good feeling when you fire it up and see what you're expecting, right?


It most certainly is :D

I am rather impulse driven and this project has taught me to take a bit more time. I saw the pcb on EBay and just went for it; ordering the
components from so many places, I had to create a spreadsheet to keep track. EBay is quick and easy but not ideal for the likes of this.
Fear of fake components probably got to me when trying to program the EEPROM so if there is another project will use Mouser or similar as
someone suggested.

I still have my BBC B (restored, working) which I bought in the '80s and was recently tempted to build the KIM-UNO from "oscarv" of this place
(thankfully came as a kit of components). Oscar's latest software emulates both the KIM-1 & Apple 1 and I was using that also on the "dongle" below.
It just seems logical to run WozMon etc on real hardware.

Reg


Attachments:
0add24c4-5b65-4208-86db-6aeb5a5b85fa - Copy.jpg
0add24c4-5b65-4208-86db-6aeb5a5b85fa - Copy.jpg [ 194.16 KiB | Viewed 1521 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2022 6:01 pm 
Offline

Joined: Thu May 19, 2022 2:54 pm
Posts: 19
Location: Felixstowe, UK
Paganini wrote:
Hi Reg,
If that doesn't uncover the problem, give more details... what specific CPU are you using, what clock speed, etc. I found the SBC version to be a bit fussy to get working, but I did eventually find success. (My modular backplane version is zooming along at 8Mhz with a modern WDC 65c02. :)
I have got the RC6502 working fine now; changed for an R65C02 and TaliForth2 is up and running too. I hand-built (vero - no pcb) a clock divider cct with an 8MHz oscillator in there. I initially built an SBC but have added a backplane with ROM/RAM card and clock cct.
It all runs fine at 4MHz and I am wondering what I might have to do to get it up to 8MHz?

It may well be the crazy wiring on my DIY divider board but I also have a random hotch-potch of 74.... series parts out of the parts bin.
Should I cnange them for HC. HCT???
As I said, CPU is a Rockwell R65C02 and the ROM, RAM, PIO should cope, yes??


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2022 6:42 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
The R65C02 will not run at 8MHz. They came in 2MHz and 4MHz parts. The most that you can run the 4MHz part at is about 5MHz. You will need a modern WDC W65C02 to go 8MHz (or more). Be aware that the W65C02 has a slightly different pin-out than the R65C02 and you will likely have to make some minor changes to your board to drop it in.

To run at 8MHz reliably you need your ROM and RAM to have access times of around 120ns or better. Your RAM looks to be 70ns so it should be fine. Your EEPROM looks to be 250ns. That may or may not work. The 6821 was designed to work in 1MHz or 2MHz systems. I am not sure how well it will keep up. I have had some luck with running peripheral chips at much higher speeds than rated (especially the 65C51), but it is hit and miss which devices will tolerate it and I'm not that familiar with the 6821.

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2022 7:33 pm 
Online
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
BillO wrote:
The R65C02 will not run at 8MHz. They came in 2MHz and 4MHz parts. The most that you can run the 4MHz part at is about 5MHz.

My workbench computer originally had a Rockwell R65C02 rated for 4MHz, and it started having problems at a just hair over 7MHz, so I backed it off to 5MHz for some safety margin. I suspect the memory speed was the bottleneck.

_________________
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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

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