Author Topic: Looking to build my first SBC, advice welcome!  (Read 17351 times)

0 Members and 1 Guest are viewing this topic.

BulletMagnet83

  • Guest
Looking to build my first SBC, advice welcome!
« on: September 11, 2013, 05:55:25 pm »
I thought something like this would make a good starting point:

http://searle.hostei.com/grant/6809/Simple6809.html

I'm not too fussy on exactly which version I use, but the 6809 and its variants seem to be quite widely used in older electronic musical instruments, which is one of my main areas of interest at the moment.

If I go through with it and find that I'm capable of assembling a working one, I'd like to alter the design to make it expandable so when I get to writing my own programs for it I could plug in different peripheral components to experiment with, for example DAC, ADC, simple display controllers (LEDs etc, not CRTs), that would be mapped into free address space.

Would I be able to do this just by buffering all the A/D lines from the CPU and run them out to some 40-pin IDC sockets or something? What about the other control lines from the CPU? They're shown connected directly to Vcc but I may one day need to use them for something. Could these be connected to Vcc via weak pull-ups instead and broken out like the A/D lines in case another device needs them? If this approach is correct, what value resistors would be appropriate? If not, what do you veterans suggest?
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #1 on: September 11, 2013, 06:02:59 pm »
from the Simple6809 schematic it appears to me there is something wrong with the ACIA around TXclock and RXclock. I think the schematic is not correct, 6850 should have external baud rate generator ... mmm
 

BulletMagnet83

  • Guest
Re: Looking to build my first SBC, advice welcome!
« Reply #2 on: September 11, 2013, 06:05:49 pm »
from the Simple6809 schematic it appears to me there is something wrong with the ACIA around TXclock and RXclock. I think the schematic is not correct, 6850 should have external baud rate generator ... mmm

I thought it looked odd actually... but then, it looks like it's fed from the E output of the 6809. Might it be divided down internally somehow, set by some register or another? The page owner seems pretty confident it works. But I'm sure I've seen other designs that needed their very own crystal for that.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #3 on: September 11, 2013, 06:09:31 pm »
I suggest you 8051

i realized this board



8051 has internal uart, like 8085, it only needs 11Mhz clock (precise value in order to have the correct baud rate in the uart section), ram, rom (rom is fetched by PSEN, ram by glue logic), latch (data/address are multiplexed), a pretty glue logic for address-decoding (in order to access the right ram chip or device, e.g. a memory mapped AD, DA) and the proper reset circuit!

it's easy circuit, and you can find "basic" interpreter for intel, or you could put a "monitor" (e.g. paulmon if i remember correctly) inside the eprom and start programming with sdcc, uploading your code and executing it.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #4 on: September 11, 2013, 06:11:01 pm »
I thought it looked odd actually... but then, it looks like it's fed from the E output of the 6809. Might it be divided down internally somehow, set by some register or another? The page owner seems pretty confident it works. But I'm sure I've seen other designs that needed their very own crystal for that.

yes it may be, it should be investigated ... or you could easily build a fix baud rate generator, i have a scheme around in case.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #5 on: September 11, 2013, 07:33:11 pm »
from the Simple6809 schematic it appears to me there is something wrong with the ACIA around TXclock and RXclock. I think the schematic is not correct, 6850 should have external baud rate generator ... mmm

There is nothing wrong with it, it just gives a fixed baud rate of 115.2Kb (or 28.8Kb).

(Actually I think it's out of spec for a 6850, you might want to use a 68B50.)
 

BulletMagnet83

  • Guest
Re: Looking to build my first SBC, advice welcome!
« Reply #6 on: September 11, 2013, 07:40:07 pm »
Thanks for the input so far guys :D Any thoughts on the expansion idea?
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #7 on: September 11, 2013, 07:56:26 pm »
Thanks for the input so far guys :D Any thoughts on the expansion idea?

Sure, you can do it.  You wouldn't want to run long ribbon cables though.

Of the control lines, you would probably only care about the interrupts.  4.7K or 10K pullups would be good.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #8 on: September 12, 2013, 12:39:44 am »
There is nothing wrong with it, it just gives a fixed baud rate of 115.2Kb (or 28.8Kb).

could you explain more details please ? 6809.E should be related to 6809.CLK
the crystal frequency is 7.3728Mhz, and the bus frequency should be 1/4 of the crystal frequency
so the bus frequency propagated through 6809.E should be 7.3728Mhz / 4 = 1.8432Mhz

am i right ?

we are supposing ACIA clocked at 115200Hz

ACIA is able to divide {RX,TX}clock by {1,16,64} through counter divider select bits registers {CR0, CR1}

1.8432Mhz / 1 = 1.8432Mhz
1.8432Mhz / 16 =  115200Hz
1.8432Mhz / 64 = 28800Hz

6809 datasheet
6850 datasheet
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #9 on: September 12, 2013, 12:50:26 am »


It think this tiny 6809 project looks better, it uses modern FT245 USB-uart


 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Looking to build my first SBC, advice welcome!
« Reply #10 on: September 12, 2013, 01:00:45 am »
With most of today's mcu, you don't need the rom nor the rs232 chips. With a bigger chip (like stm32f4), you don't even need the ram -> making it a single chip computer.
================================
https://dannyelectronics.wordpress.com/
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #11 on: September 12, 2013, 01:43:48 am »
I'd love to have some "modern" SBC layouts for 8051, 6809, 6502, etc.  You know - narrow or SOIC *big* RAM chips, ISP-capable cpus (if applicable)  EEPROM/Flash instead of EPROM.  FTDI chip or connector instead of max232.  Serial-bootloadable.

Except I'm not quite sure what that means.  SMT or TH?  Let people populate it with those "junk" parts they've collected, or require new (but cheap!) purchases?  Tiny board or big board?  protoboard friendly, Shield-friendly, or just "whatever" ?  GALs were all the rage for decoding "last time around", but these days no one has programmers and chips are hard to get.  Do you aim for low power (there goes the GAL), or do you not care?    And why struggle with all that when you can go out an get an Arduino for $20?
 

Offline Crazy Ape

  • Regular Contributor
  • *
  • Posts: 181
Re: Looking to build my first SBC, advice welcome!
« Reply #12 on: September 12, 2013, 02:00:00 am »
I'd love to have some "modern" SBC layouts for 8051, 6809, 6502, etc.  You know - narrow or SOIC *big* RAM chips, ISP-capable cpus (if applicable)  EEPROM/Flash instead of EPROM.  FTDI chip or connector instead of max232.  Serial-bootloadable.

Except I'm not quite sure what that means.  SMT or TH?  Let people populate it with those "junk" parts they've collected, or require new (but cheap!) purchases?  Tiny board or big board?  protoboard friendly, Shield-friendly, or just "whatever" ?  GALs were all the rage for decoding "last time around", but these days no one has programmers and chips are hard to get.  Do you aim for low power (there goes the GAL), or do you not care?    And why struggle with all that when you can go out an get an Arduino for $20?

SMT or TH?

Surface Mount Technology or Through Hole.

But I think you know that, so I'm puzzled by
Except I'm not quite sure what that means.  SMT or TH?
« Last Edit: September 12, 2013, 02:03:09 am by Crazy Ape »
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #13 on: September 12, 2013, 02:25:37 am »
I'd love to have some "modern" SBC layouts for 8051, 6809, 6502, etc.  You know - narrow or SOIC *big* RAM chips, ISP-capable cpus (if applicable)  EEPROM/Flash instead of EPROM.  FTDI chip or connector instead of max232.  Serial-bootloadable.

Except I'm not quite sure what that means.  SMT or TH?

means to be practical ! You should prefer DIP packages because they don't require to be soldered, they needs sockets which need TH, but the PCB looks easier in TH way. Unfortunately modern PC are missing the RS232 port, so you can have still fun using USB-2-UART, and this is the reason of the FT245 chip! Is it provided in smd package ? You have to choose if to solder the chip to a smd-dip adapter or to solder the chip directly on the PCB.


about Arduino ... you can choose how to have fun, or to blink a led just writing a sketch in C++ on a system on chip, so called Avr8, ram, rom, uart all inside the chip, or to build an SBC in where you have to provide ram, rom, uart, and glue logic to handle them, and toy with assembly and C in order to put a monitor, then a firmware on the board. Which is the most amazing ? it depends on you !
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #14 on: September 12, 2013, 02:34:46 am »
personally i like boards like this one



it is a 32bit with nvram, i have realized in my spare time, all in DIP packages
 

Offline marshallh

  • Supporter
  • ****
  • Posts: 1462
  • Country: us
    • retroactive
Re: Looking to build my first SBC, advice welcome!
« Reply #15 on: September 12, 2013, 03:18:35 am »
6800-based smart VFD display



Verilog tips
BGA soldering intro

11:37 <@ktemkin> c4757p: marshall has transcended communications media
11:37 <@ktemkin> He speaks protocols directly.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #16 on: September 12, 2013, 04:04:25 am »
6800-based smart VFD display



Hey, that's a 6803!  Much fancier than a 6800.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #17 on: September 12, 2013, 05:21:59 am »
I meant: what would people WANT on a "modern" x51 SBC?
I have a (paper, untested, unbuilt) 50x50mm (cheap to have fabbed) smt PCB.
I have a similar single-sided TH design (80x100mm) (theoretically homebrewable.)
Each has generic 40pin x51, 32k (or more) RAM, latch, GAL, and Serial EEPROM for holding a serial-downloaded program for copying to RAM.

I don't know whether either one is worthwhile, or whether I should just pony up $100 for a board from silabs...
 

Offline GK

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: Looking to build my first SBC, advice welcome!
« Reply #18 on: September 12, 2013, 05:31:49 am »
Meh. Upgrade the front shocks and shoehorn in a BBC.
Bzzzzt. No longer care, over this forum shit.........ZZzzzzzzzzzzzzzzz
 

BulletMagnet83

  • Guest
Re: Looking to build my first SBC, advice welcome!
« Reply #19 on: September 12, 2013, 12:31:51 pm »
Legacy, that 68k board looks niiice :D I'd love to work my way up to something like that one day...  but the thought of soooo many A/D lines to wire up makes me die a little bit inside, and saps my enthusiasm! Maybe one day. I have some old books on that CPU after all.

Why struggle when I could get an Arduino for $20? Well... I have some of those already! And while there's still plenty to be learned on the software side of things using that platform, I find the hardware a bit boring. A project that requires good assembly, test and debugging skills on the hardware side will give me training that's more applicable to my current job. Recreating, adapting and expanding upon those simple designs will, in my opinion, eventually make me a better engineer :)
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #20 on: September 12, 2013, 01:45:39 pm »
Legacy, that 68k board looks niiice :D I'd love to work my way up to something like that one day

thank you, i am trying to build a plastic case in order to let her to looks more prettier. Also the bad side of the story is firmware ... well i have written an easy bootloader able to upload srec file. The solution is easy: you upload an exec, you put it into non-volatile-ram. You can also see the pretty toy-language called "little" i have developed in C++ and opened this this thread. The idea is to provide something to be run in this kind of SBC, but you may prefer Basic, forth, or whatever you want. "little" is written in C++ and the binary may be too heavy for a tiny SBC, but you could port "little" to C, reducing and optimizing (guess if it is really possible, but it may be), or you could rewrite it from the beginning! 6809 SBC has a basic rom, it is pretty from what i can see from the emulator. Check it out!
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #21 on: September 14, 2013, 05:29:23 am »
I guess that part of my personal problem is that I like SBCs to be "minimal" (like, right now, I'm thinking "if I put a 256k NVRAM chip on there connected to the 8051, for both program and data memory, then using a GAL or even the traditional 7400+74138 logic for memory interfaces is probably overkill.")  But if you're going to build a minimal system, you might as well skip the more complex SBC and just use a more modern single-chip solution.  Sigh.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Looking to build my first SBC, advice welcome!
« Reply #22 on: September 14, 2013, 10:42:22 am »
I think the real fun comes combining an old CPU with CPLD or FPGA, in case i am using spartan_II, which are 5V tolerant and PLCC packaged!
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Looking to build my first SBC, advice welcome!
« Reply #23 on: September 16, 2013, 07:19:48 am »
You know, working on a DIP-based SBC-type system, with those big parallel address and data buses going for inches or (remembering things like S100 and MultiBus) feet, diving between and around pins, makes me feel like the time I've spent carefully minimizing and isolating traces on arduino-sized boards (mm instead of cm) has been pretty silly.

Of course, perhaps that old technology really is Just That Slow.
 

BulletMagnet83

  • Guest
Re: Looking to build my first SBC, advice welcome!
« Reply #24 on: September 16, 2013, 08:20:29 pm »
Thanks for the input Wilfred! 6809 dev tools do seem to be a bit thin on the ground compared to the others so I am starting to question the wisdom of my choice there :) Trying to do as much research as possible before wasting money on parts I can't use, without also using that as an excuse to avoid building anything! Seems like the Z80 or 6502 versions have more potential as there's no shortage of software :) I suppose for my intended purpose either would do equally well. Hopefully doing some bits-buying after payday... but we'll see how that works out.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf