6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Sep 20, 2024 10:53 am

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Dec 18, 2015 12:49 pm 
Offline

Joined: Thu Apr 30, 2015 6:10 am
Posts: 16
Location: Sweden
The PIC32MZ at 200MHz has 330MIPS so it's rather fast. For an MMU it just need to monitor the address bus and do as little as possible. It something interessting happens. A page fault or whatever, when it can halt the processor and do whatever it needs before continue on.

I have created a graphic card for a 6502 processor (mostly tested it on a c64) that uses a PIC32MZ to read instructions from the 6502 and generate the output image, so it's a very capabel microncontroller that doesn't cost much.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 1:04 pm 
Offline

Joined: Wed Sep 23, 2015 8:14 pm
Posts: 171
Location: Philadelphia, PA
GARTHWILSON wrote:
jmp(FFFA), BDD's comment about microcontroller speed was with reference to using it as glue logic and more-sophisticated logic (an MMU in this case) to support a 6502/816. In a recent topic, I figured a 25MIPS PIC (100MHz in that case) was marginally fast enough to substitute for glue logic for a 1.79MHz '02 ...

There are three major architectures in the PIC family. The 8-bit architecture (with several variants), the 16-bit architecture (again, with several variants), and the 32-bit architecture (MIPS-based, with two variants at the moment). Each offers drastically different levels of performance per clock cycle. A 100 MHz PIC32MZ will typically run at 165 MIPS, not 25 MIPS as might be expected from an 8-bit PIC if you could run one at 100 MHz (max official clock rate is 64 MHz/16 MIPS at present).

Given that the 32-bit PICs and recent ARM MCUs are a lot faster than the PCs from yesteryear that were originally used to emulate 6502-based computers, I think the PIC32MZ (or similar ARM) would be a good platform to build a 6502 (or 65816) emulator on.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 2:47 pm 
Offline

Joined: Thu Apr 30, 2015 6:10 am
Posts: 16
Location: Sweden
The goal of my project is to run a real 6502 so I won't emulate it, but it's a nice idea to do on a PIC32 if you want to create a small system. It has a lot of power and 512k RAM and 2Mb FLASH. You can probably emulate an c64 on it without any problem for example.


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 4:05 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
jmp(FFFA) wrote:
I think the PIC32MZ (or similar ARM) would be a good platform to build a 6502 (or 65816) emulator on.

That's one of the projects I'm hoping to progress over Christmas. I have a 200MHz Diligent ChipKit WiFire board that I started writing an emulator in C++ for using the Arduino like MPIDE environment. I haven't got far enough to do any instruction speed timing.

I was going to use Microchip tools but that forces you to use their horrid 'Harmony' framework on the PIC32MZs so I'm trying the alternative ChipKit tools out.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 5:10 pm 
Offline

Joined: Thu Apr 30, 2015 6:10 am
Posts: 16
Location: Sweden
Quote:
I was going to use Microchip tools but that forces you to use their horrid 'Harmony' framework on the PIC32MZs


I didn't wanted to use that either when I switched from the MX to MZ serie, but it's not to bad. I just use it to setup the pins and in the Harmony main loop I just jump to my own routine and don't care about Harmony anymore, so it works.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

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