Motorola MC6802

Discussion in 'Programmer's Corner' started by Danno., Apr 6, 2015.

  1. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1
    Hi,
    Is there a PC based simulator/trainer for this chip? I want to learn early assembly language. Google search doesn't bring up much.

    Thanks
     
  2. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,565
    2,379
  3. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,692
    2,756
    That chip is from 1977. Granted, it's a fine example of 'early' assembly programming.

    But why? Assembly concepts have not really changed greatly since the early 4 and 8 bit cpus. And tools just are not all that available any more.

    Around the same time frame was the 8080 and z80. These are still used today (at least variations thereof) and tools and kits are available.

    Look at the eZ80 stuff from Zilog....I believe they are code compatable with Z80. And there is lots of devel support, I believe.
     
  4. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1
    I have a couple of MPU's here with that chip on, the MPU is for a fruit machine, the ROM's are written in assembly, as a project I want to write some ROM's to control the game.
     
  5. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,692
    2,756
    For us in the USA, I believe he is referring to a 'one-armed bandit'.
     
  6. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1
    Sorry, yes one arm bandit or slot machine.
     
  7. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Aha! Back at post #2 I was going to inquire what is a fruit machine. Now I know.

    I will get back to you later on MC6802.
     
  8. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,796
    Last edited: Apr 6, 2015
  9. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
  10. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Before we get too deep into this you seriously want to examine your motives and goals.

    Do you want

    1) to learn how to program any microcontroller in general,
    2) to learn specifically how to program an MC6802 just for the fun of it,
    3) to reprogram the ROMs on a MC6802 board to suit your own whims and wishes?

    Now, realize that

    1) MC6802 is obsolete,
    2) having to program ROMs is passé and may not be worth the effort,
    3) there are modern chips and programming methods available today that vastly accelerates the programming and development cycle.

    The MC6802 which is really a derivative of the MC6800 has evolved into other families, 6805, 6809, 68HC11, 68HC12, 9S08.
    Other manufacturers such as Atmel, Microchip, ST, TI, have MCUs with similar capabilities. The programming tools available today are much more capable than what was available 10 or 20 years ago.

    As a retrofit project for your slot machine, it would be easier to build a PCB that plugs into the MC6802 socket but powered with a modern MCU.
     
  11. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1
  12. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1

    The main goal is learn micro-controller programming in general, I can then apply this to new projects to build from scratch with modern controllers.

    I also want to learn MC6802 programming just for fun really, I am interested how things were done back in the 70's and as I have machines running on this tech it would be fun to tinker about with them and get into the workings of them, this goes hand in hand with the ROMS. As I have a micro-controller already built with a 6802 and all the necessary inputs and outputs on board I would like to learn to make it do something, I understand it is old obsolete tech but this is just for fun and curiosity.

    Thanks for your help on this.
     
  13. Danno.

    Thread Starter Member

    Apr 6, 2015
    39
    1
    I would be very interested in doing this bearing in mind how things would interact with the other chips in the system, attached is a pic of the MPU board, this board has 16 inputs, there is another board full of transistors, triacs and SCR's all driven by 4099 latches all driven from this MPU board.

    Any more info or pointers on this would be appreciated.

    Thanks
     
    • MPU.jpg
      MPU.jpg
      File size:
      2.2 MB
      Views:
      23
  14. alfacliff

    Well-Known Member

    Dec 13, 2013
    2,449
    428
    it might be more helpful to try to learn on an 8080 family based micro, the 6800 series used almost all registers external to the chip, makng them different from the 8080 series which use internal registers. also, the 8041 series is the basis for a lot of current industrial and special purpose systems. if you can find one, the motorola HEP EDUCATOR 1 was a 6800 based trainer with leds and switches .
     
  15. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,796
  16. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,692
    2,756
    Well, here's a Z80 disassembler I wrote and posted a while back. If you find it interesting, perhaps you could modify it for 6802.

    View attachment 58928
     
Loading...