element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Pic Microcontrollers Forum PIC18F87J50 with external RAM reference design
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 193 subscribers
  • Views 1261 views
  • Users 0 members are here
  • pic18
  • sram
  • dev_tools
Related

PIC18F87J50 with external RAM reference design

Former Member
Former Member over 10 years ago

I need a (relativly) cheap "old school" CPU with external memory for executing programs loaded of a SD card, with a little OS running at boot for the basic IO.

 

The PIC18F8 family can run in "Microprocessor mode", which turns the chip into a soaped up Z80 that have a 2 MB address space. App note for reference: http://ww1.microchip.com/downloads/en/AppNotes/00869b.pdf

 

I've read the datasheet and tried to search for a reference desgin that hooks up the PIC to external parallel SRAM, but I cant find any.

 

If any PIC wizards are out here, can you confirm that my interpretation of the Microprocessor mode indeed gives me a more general purpose CPU with a 2 MB address space ?

 

Bonus question, any advice on a parallel SRAM for the in the heading mentioned PIC ?

  • Sign in to reply
  • Cancel
Parents
  • michaelkellett
    0 michaelkellett over 10 years ago

    Why not use an ARM Cortex, ST have parts with 200k bytes of RAM and an SD card interface - so you could run your code in on chip RAM (unless it's huge.) Another trick you could try is to copy the code into on chip flash - this would work with quite  a few different processors and certainly can be done on the ST  Cortex parts (STM32F4xx might be the best parts to start with.)

    The external memory interface on the PIC seems very clunky (there are PIC32 bit parts with much better memory interfaces I think)

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelkellett

    I'm planing to build a small retro computer with a small dos like OS with the ability execute user programs loaded from SD card, I've looked at parts like the Z80180 and the 16 bit version of the 6510 but they all fall short in the tooling area, I need around 2 MB flat address space and a resonable fast (but not to fast) cpu that can be connected to my (FPGA based) graphics subsystem. Its complicated yes, and mostly controlled by not-so-rational arguments, but if I just wanted something fast, I probably by a Pie and be done with it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MicrochipRTCfr
    0 MicrochipRTCfr over 10 years ago in reply to Former Member

    Hi,

    If you want to simplify the electronic schematic, use a PIC32MZ2048ECM100 which has 2MB flash and 512KB RAM. No external component needed ;=)

    In this architecture you can execute code from internal flash or internal ram. You can also run it at a lower frequency than its nominal frequency (200MHz) to reduce power consumption. You can debug it with a Pickit3 but maybe you don't need i if you use a PIC32MZ embedded connectivity starter kit which has on-chip debug.

    there is even an Arduino based on this PIC32MZ 200MHz called Chipkit Wi-Fire

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • MicrochipRTCfr
    0 MicrochipRTCfr over 10 years ago in reply to Former Member

    Hi,

    If you want to simplify the electronic schematic, use a PIC32MZ2048ECM100 which has 2MB flash and 512KB RAM. No external component needed ;=)

    In this architecture you can execute code from internal flash or internal ram. You can also run it at a lower frequency than its nominal frequency (200MHz) to reduce power consumption. You can debug it with a Pickit3 but maybe you don't need i if you use a PIC32MZ embedded connectivity starter kit which has on-chip debug.

    there is even an Arduino based on this PIC32MZ 200MHz called Chipkit Wi-Fire

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 10 years ago in reply to MicrochipRTCfr

    It has a pretty screwed up memory map if you look from a general purpose CPU view, closest thing that I can find is the F8 series in microprocessor mode, nice flat 2 MB address space.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    Crumbs but you're hard to please !

    Looking at the diagram on page 59 of the data sheet it has 512k of RAM in one block and the Flash seem to be in one big block - what's the problem ?

     

    (although I would still use an ARM !)

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube