6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 4:37 am

All times are UTC




Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 10  Next
Author Message
PostPosted: Mon Nov 01, 2021 3:22 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
plasmo wrote:
The inspiration for RXF# to RDY comes from this link that kernelthread provided earlier.
kernelthread has recently become one of my favorite contributors.
Quote:
I do want to add some jumper options so RDY can be pulled up and RXF# goes to IRQ and memory map of FT245R, RAM, EPROM are swapped around so once the EPROM is programmed, it can be the boot device with RAM at lower 32K and FT245R as the console I/O device. This way it can also be an usable 6502 computer.
That's what I was waiting to see ... a multi-purpose design. Now I'm more interested.

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 02, 2021 9:21 am 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
I thought that was always part of the concept, tbh.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 02, 2021 10:56 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
plasmo wrote:
when a newbie comes to 6502.org to learn about what 6502 can do, an Arduino or Pi solution seems not satisfy the newcomer's interest.

Yes; in fact I would put that more strongly. The extra learning curve that comes with an Arduno or Pi may be not only unsatisfying but actually daunting. Yes there are some useful skills to be acquired, as Michael says, but making those skills an actual requirement is worrisome, IMO. We need to be cautious about how many prerequisites get placed in the beginner's path.

A segue: one skill many novices will need to refine is soldering. And it's alright if the proposed programmer kit requires soldering, because the 65xx project itself will very likely require soldering, too. But the bar will be set uncomfortably high if the novice is required to solder an FT245R with its 0.65mm lead pitch! :( (Or is it the plan to use one of the FT245R modules that're available? No tricky soldering, but it's a lot more expensive than the chip itself.)

I may be guilty of some favoritism :roll: :P but my discrete asynch approach (100% through-hole) is easy to solder... and, FWIW, it could also include some of the extra functionality that's been mentioned, such as supplying a clock, or taking control of RDY.

Segue again: I have mixed feelings about the extra functionality, regardless of whether it involves FT245R or an enhancement to my Dumb Asynch. Naturally the added features seem attractive to me, but I have enough experience to comfortably take them in stride and put them to use.

But where a novice is concerned there may be something to be said for a KISS approach. IOW, let the EPROM programmer simply be an EPROM programmer. Then blasting the chip becomes one goal, and when that's achieved we have no further need to interact with the programmer. Instead, we take the programmed chip and interact exclusively with the project.

Quote:
First, the binary opcode stream builds a small bootstrap program in RAM and then jumps into the bootstrap program to load bigger & better program over FT245R.
Don't get me wrong, I love tricks like this that use cleverness to achieve disproportionate goals! 8) But I'm not sure we should be putting them on the menu for a newb.

-- 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: Tue Nov 02, 2021 11:21 pm 
Offline
User avatar

Joined: Mon May 25, 2015 2:25 pm
Posts: 690
Location: Gillies, Ontario, Canada
Makes me wonder...

Is there such a thing as a 6502 newb that isn't already WELL versed in the arts?
For sure in 1980 there would have been such a newb as the 6502 was a viable and affordable place to start the journey.
But today the 6502 is a trip down memory lane, most likely for those like myself that are just tired of today's bloated and disposable tech.

I wonder if there is a single person here thinking of connecting a 6502 that doesn't already have a few duino/pi boards sitting around or at least a few decent breadboard projects that include some kind of micro?

Brad

Dr Jefyll wrote:
Yes; in fact I would put that more strongly. The extra learning curve that comes with an Arduno or Pi may be not only unsatisfying but actually daunting. Yes there are some useful skills to be acquired, as Michael says, but making those skills an actual requirement is worrisome, IMO. We need to be cautious about how many prerequisites get placed in the beginner's path.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 02, 2021 11:36 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Oneironaut wrote:
Makes me wonder...

Is there such a thing as a 6502 newb that isn't already WELL versed in the arts?

Okay, I hope it doesn't seem like I'm arguing, because you raise a valid question. But I would rephrase the question and ask, what proportion of 6502 enthusiasts haven't yet acquired these Arduino and Pi skills? I'm sure there are some, and perhaps quite a few. (In fact I'm in that camp myself! Just never got around to it, and so far have been quite content without.)

-- 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: Wed Nov 03, 2021 2:12 am 
Online
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
Oneironaut wrote:
I wonder if there is a single person here thinking of connecting a 6502 that doesn't already have a few duino/pi boards sitting around or at least a few decent breadboard projects that include some kind of micro?

I've never paid any attention to Arduino or the Pi. There are too many of this kind of thing out there to get familiar with very many of them. I've brought a dozen products to market with PIC16's, but I still consider it much easier to develop an application with the 6502; it's just that it's not feasible for a commercial product that has to meet a size and cost limit. We have had a couple of newbies recently who have struggled with even binary and hex number expressions, endian-ness, etc..

_________________
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: Wed Nov 03, 2021 2:43 am 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1117
Location: Albuquerque NM USA
Interestingly I have not worked with Arduino nor Pi. In late 1990's I designed and programmed with AVR AT90S2313 for few small applications and last 5 years of my career I designed with synthesizable ARM7TDMI in verilog source, but these are detailed hardware designs and bare metal programming, nothing like the high-level abstraction in Arduino and Pi. Frankly I find manipulating high level objects and library routines unsatisfying. My feeling is 6502 newcomers also want to see behind the curtain how things really work.
Bill


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 3:02 am 
Offline

Joined: Mon Feb 15, 2021 2:11 am
Posts: 100
GARTHWILSON wrote:
Oneironaut wrote:
I wonder if there is a single person here thinking of connecting a 6502 that doesn't already have a few duino/pi boards sitting around or at least a few decent breadboard projects that include some kind of micro?

I've never paid any attention to Arduino or the Pi. There are too many of this kind of thing out there to get familiar with very many of them. I've brought a dozen products to market with PIC16's, but I still consider it much easier to develop an application with the 6502; it's just that it's not feasible for a commercial product that has to meet a size and cost limit. We have had a couple of newbies recently who have struggled with even binary and hex number expressions, endian-ness, etc..


I've not made a project with a Pi either, but I have used a Pi 4 as a cheap small form factor Linux system. It is currently connected to my living room TV, with a USB wireless mouse and keyboard. Aside from casual web browsing and video watching, I use it whenever I need Linux - or when my wife needs to use my desktop, usually to do some printing.

If I disconnected it and took it out of its case so I had access to the GPIO pins I suppose I could do a project of some sort with one.


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 5:00 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
Dr Jefyll wrote:
Oneironaut wrote:
Makes me wonder...

Is there such a thing as a 6502 newb that isn't already WELL versed in the arts?

Okay, I hope it doesn't seem like I'm arguing, because you raise a valid question. But I would rephrase the question and ask, what proportion of 6502 enthusiasts haven't yet acquired these Arduino and Pi skills? I'm sure there are some, and perhaps quite a few. (In fact I'm in that camp myself! Just never got around to it, and so far have been quite content without.)

Count me as one of those 6502 enthusiasts who hasn't looked at an Arduino or Pi. As with you (Jeff), I've not developed a desire for either. I view an Arduino or Pi in the same light I view a toilet seat. Both serve a purpose. Beyond that, they are as interesting as last year's weather forecast.

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


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 5:03 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
GARTHWILSON wrote:
I've never paid any attention to Arduino or the Pi. There are too many of this kind of thing out there to get familiar with very many of them. I've brought a dozen products to market with PIC16's, but I still consider it much easier to develop an application with the 6502; it's just that it's not feasible for a commercial product that has to meet a size and cost limit.

To me, microcontrollers are the light bulbs of digital electronics. Everybody, it seems, produces them and they are all more-or-less interchangeable.

Quote:
We have had a couple of newbies recently who have struggled with even binary and hex number expressions, endian-ness, etc.

Hard to envision someone like that building a microcontroller-powered EPROM burner.

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


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 5:19 am 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 589
Location: Michigan, USA
plasmo wrote:
I mentioned on Chad’s (sburrow) newbie thread that we more experienced designers should help newbies with a 6502-based EPROM programmer that is cheap, easy to build, and contain no programmable components (not even boot strap EPROM). It is a good way to provide newbie with an EPROM programmer and teach about 6502 hardware/software and components can be reused for other projects. Please provide a link if that already been done and is public domain design. If not, let this be a challenge!
Bill

Getting back to the original post... I had assumed you were talking about programming single voltage EEPROMs, like the 28C256, rather than actual multi-voltage EPROMS. Is that a correct assumption?


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 1:56 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1117
Location: Albuquerque NM USA
Michael wrote:
Getting back to the original post... I had assumed you were talking about programming single voltage EEPROMs, like the 28C256, rather than actual multi-voltage EPROMS. Is that a correct assumption?

This is not meant to be a general purpose programmer, so it will target one common, cheap, available EPROM like SST39SF010, about $1.50 from Mouser. It is a single voltage programmable device.

Dr Jefyll wrote:
A segue: one skill many novices will need to refine is soldering. And it's alright if the proposed programmer kit requires soldering, because the 65xx project itself will very likely require soldering, too. But the bar will be set uncomfortably high if the novice is required to solder an FT245R with its 0.65mm lead pitch! :( (Or is it the plan to use one of the FT245R modules that're available? No tricky soldering, but it's a lot more expensive than the chip itself.)

I may be guilty of some favoritism :roll: :P but my discrete asynch approach (100% through-hole) is easy to solder... and, FWIW, it could also include some of the extra functionality that's been mentioned, such as supplying a clock, or taking control of RDY.

Jeff,
When I said "FT245", I do mean an assembled module like this. It is $11.5, shipping included. I found mine that I bought 2-3 years ago, it looks exactly the same. Don't get me wrong, soldering is a critical skill that opens the door for experimenting with wide range of electronic components, but it needs practices and for visually impaired like myself, expensive capital investment in stereo inspection microscope.

I also like your serial bootstrap concept a lot. I've used serial port in CPLD to bootstrap either with a small bootstrap ROM or driving a DMA engine to fill RAM, but I've never fed opcode directly to a CPU. I want to emulate it in CPLD first before realize it with pc board.

It looks close enough to finalize the design into rev0 pc board. There are only EPROM/RAM/6502/oscillator and 2 TTL logic so it will certainly fit 100mmX100mm. Heck, it will fit 50mmX100mm so two pc boards per 100mmX100mm panel and weight lesser than 1oz to cut down the shipping cost. Rev0 will be 100mmX100mm to have prototype area for experimentation (like the serial bootstrap engine). I have couple other designs I want to send out to JLCPCB this weekend so timing is good.
Bill


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 03, 2021 11:54 pm 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
kernelthread wrote:
I don't know about the FT245, but the FT240 has an option to output a 6MHz clock (or 12MHz or 24MHz) on the CBUS5 and/or CBUS6 pins. This could be used to clock the processor so you wouldn't need a separate clock oscillator. It should also help avoid issues with the processor RDY input changing at inopportune moments relative to the processor clock.
The RDY input should be held low if you try to read from the FT24x with RXF high or write to the FT24x with TXE high. When accessing RAM or I/O RDY needs to be high.
It would be good if there were some way to reset the 6502 remotely from the other end of the USB connection, but I'm not sure there is.



On the FT245, there are two pins (labelled CBUS5 and CBUS6) which have a variety of functions. The clock you mentioned earlier is one of them. They can also be set to 0, 1 or Tristate. Their function is controlled by the FT245's internal EEPROM, which can be reprogrammed using the FT_PROG utility, or by using the D2XX API. The latter in particular would mean that you could write a program on the host PC which accesses the FT245 directly using the D2XX driver, and can thus toggle those CBUS outputs.

As an example, CBUS5 could be normally Tristate, but pulled low when we want to hold the 6502 in reset. CBUS6 could control the memory map of the 6502 SBC. Since both of these settings are held in EEPROM, once we've finished programming our SBC we can leave the CBUS outputs in the correct states for "normal" usage.

The downside is that we can no longer treat the FT245 as if it were a simple serial port: we would need to write a specialist application to program the SBC. That being said, I've reviewed the documentation, and it doesn't look that bad, and a dedicated programming application could make it even simpler for a newbie to get started, as the application itself could walk them through the process / automate as much as possible.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 05, 2021 4:17 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
Dr Jefyll wrote:
Oneironaut wrote:
Makes me wonder...

Is there such a thing as a 6502 newb that isn't already WELL versed in the arts?

Okay, I hope it doesn't seem like I'm arguing, because you raise a valid question. But I would rephrase the question and ask, what proportion of 6502 enthusiasts haven't yet acquired these Arduino and Pi skills? I'm sure there are some, and perhaps quite a few. (In fact I'm in that camp myself! Just never got around to it, and so far have been quite content without.)

-- Jeff


Okay, I see the objection to using the Arduino is coming mostly from folks that have never used an Arduino. There are no skills to acquire that anyone with a computer has not already acquired. If you can run a simple software install and know how to point and click you can program an Arduino with a pre-existing 'sketch' (the word Arduinoids use for program). It is literally that easy.

You don't have to learn C, you don't have to learn Atmel architecture, you don't have to learn any specifics about the MCU used in the Arduino. Here is the process:

1 - install Arduino IDE
2 - connect Arduino to computer via USB cable
3 - start the IDE
4 - open the 'sketch'
5 - click on upload
6 - in a few seconds you're all done.

There is a reason the Arduino is so popular. At the risk on being vulgar, near idiots can use it without issue as long as they don't have to develop anything. Heck, even I can use it!

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 05, 2021 6:22 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
All true, re the Arduino... easy to get up and running with minimal to no fuss. I had a few of them some years ago, but really didn't find them that interesting. I didn't really like their tool set and schematic drawing, etc., so I eventually gave them away... still, they have their following and one can do a fair amount of things with them.

I still think there is some merit on the initial intent of this thread... to create a programmer using the 6502. I would likely envision an all-in-one board, where you can download code on a cold start, program the EEPROM/Flash, then actually run the code on the same system. Not sure if that is truly possible without some interesting design and possibly a CPLD, but I think this could be a neat project for newbies and folks who have already built a 6502 system.

Just my $0.02....

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


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

All times are UTC


Who is online

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