Jumper Business Card – Firmware Walkthrough

Back to Main Menu

This is where the real fun begins. In order to bring up an MCU we have to go through hundreds of pages of datasheets, we have to understand how the internals work and only then we can start touching code. While most MCUs will boot on stock settings, peripherals are usually physically turned off for power savings.

In this project we will use the following peripherals:

  • ADC – Analog to digital converter
  • GPIO – General purpose output input
  • KBI – Keyboard interrupt
  • PIT – Periodic interrupt timer
  • Systick (part of core)

That is a mouthful for a “simple” project. ADC will serve as a way to generate a “random” seed (more on this later). GPIO will be used to drive our LEDs. KBI will be used to detect button presses. PIT has 2 timers that we can use, we will use these for animating the Enemies and the Jumper. Finally, Systick will be used for “general purpose”, or all else animation and timing.

You can think of this setup as multi threaded. While we do not have multiple cores, we definitely have out of order execution as 3 different loops will be firing at different times. This is going to create a fun environment to work with, but it will also create a very unpredictable game experience.

For now, check out the git repository. More coming soon.

Leave a Reply

Your email address will not be published. Required fields are marked *