Author Topic: 6809 Single Board Computer project  (Read 63207 times)

0 Members and 2 Guests are viewing this topic.

Online coppice

  • Super Contributor
  • ***
  • Posts: 9237
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #25 on: August 23, 2016, 01:47:47 am »
Nice, I like the 6809.

Another rare, or invisible, chip was the 6840 floppy controller. Did anyone ever get one?

The floppy controller was the MC6843.  It was not very popular, but it was definitely produced (I have at least one).  The MC6840 was a triple timer.

I also used the MC6843. I implemented my own driver so that it emulated the discrete floppy controller card in the original MC6800 development systems, and allowed the Motorola development tools to be run on a wider range of hardware.
 

Offline ron.owensTopic starter

  • Regular Contributor
  • *
  • Posts: 57
  • Country: us
Re: 6809 Single Board Computer project
« Reply #26 on: August 23, 2016, 01:58:33 am »
Nice, I like the 6809.

Another rare, or invisible, chip was the 6840 floppy controller. Did anyone ever get one?

The floppy controller was the MC6843.  It was not very popular, but it was definitely produced (I have at least one).  The MC6840 was a triple timer.

I also used the MC6843. I implemented my own driver so that it emulated the discrete floppy controller card in the original MC6800 development systems, and allowed the Motorola development tools to be run on a wider range of hardware.

I didn't even know the 6843 existed until I saw it posted here. And I actually worked at Motorola back in the day! By the way... they are going for $40US on eBay.
 

Offline basinstreetdesign

  • Frequent Contributor
  • **
  • Posts: 458
  • Country: ca
Re: 6809 Single Board Computer project
« Reply #27 on: August 23, 2016, 02:23:46 am »
Wow.  Good on ya for resurrecting the venerable 6809.  I used one in a couple similar projects in 1981-84 to develop a specialized computer for a film processing lab.  With two stack pointers and a very symmetric and concise instruction set, around where I worked it was acknowledged as the most elegant 8-bit machine there was.  Imagine having not just one but TWO branch never instructions, a short branch never (2 machine cycles) and a long branch never (3 instructions) as well as the usual bunch of other branch instructions.  But with the ability for position-independent or re-entrant code (think Towers of Hanoi), anything was possible.

Too bad it was so slow or else it could have done some real damage in the early PC market.
« Last Edit: August 23, 2016, 02:25:31 am by basinstreetdesign »
STAND BACK!  I'm going to try SCIENCE!
 

Offline NEALC

  • Newbie
  • Posts: 4
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #28 on: August 23, 2016, 06:25:50 pm »
...However, the  mmu capability of the gime *is* well documented and my github repository has a functional equivalent coded in vhdl.

Neal
 
The following users thanked this post: ron.owens, cjs

Offline ron.owensTopic starter

  • Regular Contributor
  • *
  • Posts: 57
  • Country: us
Re: 6809 Single Board Computer project
« Reply #29 on: August 23, 2016, 08:48:08 pm »
...However, the  mmu capability of the gime *is* well documented and my github repository has a functional equivalent coded in vhdl.

Neal

That is very cool. Do you have a link? I really wish I could get a FPGA in through-hole, but I would settle for a surface mount part to get a great MMU.
 

Offline NEALC

  • Newbie
  • Posts: 4
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #30 on: August 24, 2016, 07:22:11 pm »
https://github.com/nealcrook/multicomp6809/blob/master/multicomp/Components/MMAPPER2/mem_mapper2.vhd

Note that this code is not register compatible with the gime mmu, but is (afaik) functionally compatible.

Neal
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: dk
Re: 6809 Single Board Computer project
« Reply #31 on: August 24, 2016, 07:41:14 pm »
https://github.com/nealcrook/multicomp6809/blob/master/multicomp/Components/MMAPPER2/mem_mapper2.vhd

Note that this code is not register compatible with the gime mmu, but is (afaik) functionally compatible.

Neal

Just tried if it would fit one of the cheap EPM240 boards , and it's a tight fit but does  8)

http://www.ebay.com/itm/1PCS-NEW-EPM240-Altera-MAX-II-CPLD-Development-Board-/272086159418

Code: [Select]
Fitter Status Successful - Wed Aug 24 21:32:55 2016
Quartus II 64-Bit Version 13.0.1 Build 232 06/12/2013 SP 1 SJ Web Edition
Revision Name mem_mapper2
Top-level Entity Name mem_mapper2
Family MAX II
Device EPM240T100C4
Timing Models Final
Total logic elements 235 / 240 ( 98 % )
Total pins 43 / 80 ( 54 % )
Total virtual pins 0
UFM blocks 0 / 1 ( 0 % )


/Bingo

Edit: Note a MaxII EPM240 is NOT 5v tolerant
« Last Edit: August 24, 2016, 07:47:29 pm by bingo600 »
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 415
Re: 6809 Single Board Computer project
« Reply #32 on: August 30, 2016, 05:03:19 am »
Cool project !!!, I'd have used a couple CPLDs instead of GALs, just because I have no GAL programmer.

A while ago, I got a MC6847 and a 74LS783 to recreate a CoCo1 :), I also picked up a MC68B09E, still on the drawing board...
 

Offline obiwanjacobi

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: dk
Re: 6809 Single Board Computer project
« Reply #34 on: September 04, 2016, 04:36:15 pm »
Yesss - My retro 6809 is alive.

Thanx Neil , for selling me a PCB.
And answer my kazillion questions on startup.

Code: [Select]
6809 CamelForth v1.1  20 Mar 16

OK HEX
OK 1000 1FFF PASS
OK HEX
OK 1000 1FFF 10 PASSES ................
OK HEX
OK 0800 CFFF 10 PASSES ................
OK


I got the PCB assembled , but uses serial as console instead of VGA/KBD.
Got the 512K Ram going , and thats what is tested in above listing.


Now to connect the SD adapter & make a SD card  :-+ :-+ :-+

/Bingo
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: dk
Re: 6809 Single Board Computer project
« Reply #35 on: September 04, 2016, 09:05:48 pm »
And it's booting FLEX  :-+ :-+

Quote
6809 CamelForth v1.1  20 Mar 16

OK
FLEX FLEX......................
FLEX 9.0

DATE (MM,DD,YY)? 09,04,16

+++
+++dir

DIRECTORY OF DRIVE NUMBER 0
DISK: FLEX09BT  #0    CREATED: 27-JUN-97

FILE#   NAME   TYPE  R  BEGIN   END   SIZE    DATE     PRT


    1  FLEX    .COR     25-41  26-0E    22  27-JUN-97
    2  SD      .BIN     29-17  29-17     1  17-JUL-97
    3  CONS    .BIN     29-18  29-18     1  17-JUL-97
    4  WINDRV  .CMD     01-1F  01-20     2  27-JUN-97
    5  ASN     .CMD     01-21  01-21     1  27-JUN-97
    6  TIMERON .CMD     01-22  01-22     1  27-JUN-97
    7  TTYSET  .CMD     01-23  01-24     2  27-JUN-97
    8  DATE    .CMD     01-25  01-26     2  27-JUN-97
    9  ERRORS  .SYS  R  01-27  01-47    33  27-JUN-97
    ..
    ..
    ..

I feel like 20 again  :scared:

/Bingo
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 415
Re: 6809 Single Board Computer project
« Reply #36 on: September 07, 2016, 02:58:40 pm »
Quote
The 6809 is largely an improved 6502, adopting the 6502 improvements and adding more on top.

Can you elaborate ? In which regard is the'09 an improved 6502 instead of an improved 6800 ?
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16978
  • Country: 00
Re: 6809 Single Board Computer project
« Reply #37 on: September 07, 2016, 05:16:25 pm »
Quote
The 6809 is largely an improved 6502, adopting the 6502 improvements and adding more on top.

Can you elaborate ? In which regard is the'09 an improved 6502 instead of an improved 6800 ?

Nah, they're totally different beasts.

The only real similarity is they both start with a '6' and have four digits in their name. Apart from that? Nada.  :-//

(...and they both come in 40-pin DIP packages)

 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: dk
Re: 6809 Single Board Computer project
« Reply #38 on: September 07, 2016, 05:59:24 pm »
The 6502 was designed by former Motorola designers , and some of the 6502 instructions could be considered an improvememt over the 6800.

If you can program a 6800 in assembler you won't have many problems , switching to a 6502.

A bit like the 8080 vs Z80 , although the 6502 isn't opcode compatible with the 6800..

The 6809 ... Well simply the "best" 8 bit instruction set ever invented , but as a CISC some of the opcodes takes a lot of cycles.
The 6309 even added more features to the MCU , while maintaining backwards compatibility.

/Bingo
« Last Edit: September 07, 2016, 06:01:26 pm by bingo600 »
 

Offline woodchips

  • Frequent Contributor
  • **
  • Posts: 599
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #39 on: September 07, 2016, 07:33:58 pm »
Ah, yes, you are correct, the floppy controller was the 6843, how silly.

The 6502/6800? Different instructions, but better? An overflow flag is a wonderous thing, but a PUSHX and PULX instruction really would have been useful.

 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16978
  • Country: 00
Re: 6809 Single Board Computer project
« Reply #40 on: September 08, 2016, 06:02:38 am »
If you can program a 6800 in assembler you won't have many problems , switching to a 6502.

All the addressing modes, etc., are completely different.

Two accumulators, 16-bit addressing registers (LEA instructions), two stacks...

A 6502 would feel really restricted after using a 6809.

You could switch over, sure, but I don't think knowing 6809 would give you any special advantages over knowing any other assembly language of the era.

« Last Edit: September 08, 2016, 06:11:00 am by Fungus »
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: 6809 Single Board Computer project
« Reply #41 on: October 22, 2016, 05:53:05 pm »
interesting topic
any news?  :popcorn:
 

Offline vladk

  • Newbie
  • Posts: 3
  • Country: ru
Re: 6809 Single Board Computer project
« Reply #42 on: October 27, 2016, 03:05:02 am »
I used a SN74LS610 MMU from Texas Instruments. ... I was thinking, since the 74LS610 and the MC6809 chips are very available on eBay, at least my design could be built by a few people.

Could you please share here the contents of GALs used in the MC6809 project?
For example, how exactly do you form the "Write STROBE" signal for the 74LS610 MMU ?

Regards,
Vladislav
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: dk
Re: 6809 Single Board Computer project
« Reply #43 on: October 27, 2016, 02:21:46 pm »
If you can program a 6800 in assembler you won't have many problems , switching to a 6502.

All the addressing modes, etc., are completely different.

Two accumulators, 16-bit addressing registers (LEA instructions), two stacks...

A 6502 would feel really restricted after using a 6809.

You could switch over, sure, but I don't think knowing 6809 would give you any special advantages over knowing any other assembly language of the era.

I never compared the 09' to a 6502 , i wrote 6800

/Bingo
 

Offline NEALC

  • Newbie
  • Posts: 4
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #44 on: November 17, 2016, 08:32:25 pm »
I have done some work with an fpga-based 6809 system and ported a bunch of pre-existing software, some of which might  be of interest to you:
"buggy" a debug monitor with line assembler/disassembler
"FLEX" the swtp OS
"NitrOS9" a open source OS9 rewrite
"FUZIX" an open-source unix for small systems

Huh? that's what I wrote in Reply #9 on: August 21, 2016. Are you a spambot?
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17030
  • Country: us
  • DavidH
Re: 6809 Single Board Computer project
« Reply #45 on: November 18, 2016, 07:23:38 am »
I think it was mainly because of Motorola's lack of focus. They were more diversified company (radios thru all sorts of semiconductors) while MOS Technologies, Zilog and Intel were mostly microprocessor companies.

This was my experience at the time when evaluating the 68HC11 via the 68HC811 and 64HC24 port replacement unit.  Availability was so poor that we abandoned and anything from Motorola which was not second sourced.  As someone mentioned, the 68008 should have been available with the 68000 but Motorola just did not seem interested in having IBM as a customer.

The 6809 stood out the rest by its neat and extensive instruction set that was a pleasure to use. There was even a kind of instruction that acted as kind of a pointer to a pointer. Very handy for lookup tables.

Double indirect addressing proved to be a real millstone around the neck of the 68000 microarchetecture when superscalar operation and pipelining were implemented.  Linus even uses it as an example of not thinking ahead.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 9237
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #46 on: November 18, 2016, 08:03:33 am »
I think it was mainly because of Motorola's lack of focus. They were more diversified company (radios thru all sorts of semiconductors) while MOS Technologies, Zilog and Intel were mostly microprocessor companies.

This was my experience at the time when evaluating the 68HC11 via the 68HC811 and 64HC24 port replacement unit.  Availability was so poor that we abandoned and anything from Motorola which was not second sourced.  As someone mentioned, the 68008 should have been available with the 68000 but Motorola just did not seem interested in having IBM as a customer.
Was that around 1994, when Motorola was cracking up from its own success? They did so well with design ins for HC11 and HC05 devices in the previous couple of years that they lacked the production capacity to service those customers when it came to mass production. The repercussions of that made many designers stay away from Motorola parts for a long time.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17030
  • Country: us
  • DavidH
Re: 6809 Single Board Computer project
« Reply #47 on: November 18, 2016, 06:59:16 pm »
I think it was mainly because of Motorola's lack of focus. They were more diversified company (radios thru all sorts of semiconductors) while MOS Technologies, Zilog and Intel were mostly microprocessor companies.

This was my experience at the time when evaluating the 68HC11 via the 68HC811 and 64HC24 port replacement unit.  Availability was so poor that we abandoned and anything from Motorola which was not second sourced.  As someone mentioned, the 68008 should have been available with the 68000 but Motorola just did not seem interested in having IBM as a customer.

Was that around 1994, when Motorola was cracking up from its own success? They did so well with design ins for HC11 and HC05 devices in the previous couple of years that they lacked the production capacity to service those customers when it came to mass production. The repercussions of that made many designers stay away from Motorola parts for a long time.

It was around 1994 but it was a continuing problem for years before and after and I did get the idea that they had some major customers on allocation.  The result was dropping 68HC11 for PIC which while not completely satisfactory was at least available.

I finally received the 64HC24s that I needed months later and I still have them somewhere.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 9237
  • Country: gb
Re: 6809 Single Board Computer project
« Reply #48 on: May 31, 2017, 01:20:03 pm »
Nice, I like the 6809.

Another rare, or invisible, chip was the 6840 floppy controller. Did anyone ever get one?

The floppy controller was the MC6843.  It was not very popular, but it was definitely produced (I have at least one).  The MC6840 was a triple timer.

I also used the MC6843. I implemented my own driver so that it emulated the discrete floppy controller card in the original MC6800 development systems, and allowed the Motorola development tools to be run on a wider range of hardware.
While sorting through some old papers today I came across the schematic I produced for that MC6843 based floppy disc controller in about 1978 or 79. A very nostalgic moment.  :)  The circuit has an NE564 PLL, and some counters and flip-flops to recover the clock from the disc data. It also uses a whole 8 bit port of an MC6821 parallel port interface for drive select, side select, door lock, and so on. Later floppy disc controller chips were more complete than that.
 

Offline jbeeksma

  • Newbie
  • Posts: 2
  • Country: nl
Re: 6809 Single Board Computer project
« Reply #49 on: August 20, 2017, 11:31:20 am »
Hi Ron,

In 1976 me and some frined started building our own Motorola 6800-based computer. Some later, we built a Mark II based on the 6809. It is the best microprocessor for assembly programming EVER!

We built the 'OS' ourselves, and reverse engineered an assembler and editor and a BASIC interpreter from hex dumps. Those were the days.

I've been looking for a single-board 6809 based microcomputer to relive the old days, and would love to work with you on the software, if you're still looking for help in that department.

Just drop me a line if you're interested.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf