element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Documents Logic Gate Board Game 03: Adventures in MPLab -- Episode 292
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: randogless
  • Date Created: 1 Jun 2017 8:36 PM Date Created
  • Last Updated Last Updated: 26 May 2017 7:24 AM
  • Views 1234 views
  • Likes 3 likes
  • Comments 2 comments
Related
Recommended

Logic Gate Board Game 03: Adventures in MPLab -- Episode 292

image

element14's The Ben Heck Show

Join the Ben Heck team every week for amazing hacks! Watch them build and mod community-inspired projects using electronics!

Back to The Ben Heck Show homepage image

Logic Gate Board Game
Featured Bonus Content
See All Episodes

 

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

After deciding to use an LCD screen for the Logic Gate Board Game, Ben gets to work on programming the Pic32mz series microcontroller in MPLab X IDE. Using the programming software and Direct Memory Access (DMA) transfers, Ben learns how to display everything from TrueType Font (ttf) text to images and photo’s on the screen. After some soldering, Ben gets stuck in and has to make a trade-off due to the amount of available RAM on the microcontroller with processes called ‘double buffering’ to make sure that as little RAM is used as possible. As Ben says, programming is 10% coding, 90% copy/paste! Do you have any experience driving LCD screens? Or want to chime in on the Logic Gate Board game build?

 

Disclaimer

  • mplab x ide
  • hack
  • mplab
  • lcd screen
  • logic gate board game
  • microcontroller
  • lcd screen control
  • pic32
  • heck
  • ben
  • stem projects
  • tbhs_ep
  • episode 292: logic gate board game 03: adventures in mp
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Great episode. It reminds me a lot of the programming I did in the 1980's where we put symbology and text on a 800 by 800 bit FLIR screen for a helicopter application. We had to define all of the symbols…
  • bill@microchip
    bill@microchip over 8 years ago

    Just a heads up, this version of Harmony does support PNGs. There is a Graphics Composer Asset Manager tab that allows you to convert source images of any format (GIF, TIFF, TGA, BMP, etc) to JPEG, PNG or RAW (basic bitmap). You have mentioned using bitmap would be ideal for speed, that is true. The Graphics Composer Asset Manager does support RLE compression for RAW format. You should get decent flash space savings using that also. The runtime PNG decoder is a big memory hog. It works best for smaller images, unless you have setup a large heap size.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Great episode.

     

    It reminds me a lot of the programming I did in the 1980's where we put symbology and text on a 800 by 800 bit FLIR screen for a helicopter application.

     

    We had to define all of the symbols as bit maps and build our own text library using 16 by 16 bit maps.

    Your DMA approach is similar to how we mapped memory into the display pixels.

    We used a simple video mixer to include the FLIR image behind our text and symbols to provide the pilot with a full zero visibility capability with radar provided attitude information.

     

    Lots of fun memories from that very successful project.  Oh by the way, I did everything with a pair of 8085 Intel processors running about 4 MHz.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • 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