Skip to content

Latest commit

 

History

History

firmware

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

firmware (pdk-temp-pwm-fan)

Toolchain:

  • The open-source Small Device C Compiler (SDCC)
    • Requires version 3.9.0 or newer - version 4.0.0+ preferred
  • The open-source Easy PDK Programmer
    • Requires version 1.3 or newer
  • The open-source pdk-includes repository
    • Integrated via local copy into the pdk/ directory
  • The open-source easy-pdk-includes repository
    • Integrated via local copy into the easy-pdk/ directory
  • Also requires 'make' and other common build tools

Build Commands:

make clean
make build
make size (also calls build)
make program (also calls size which calls build)
make run

Note: These commands can be chained as well. i.e. make clean program run

Customization:

Edit the variables at the top of the Makefile to:

  • DEVICE: Use a different Padauk MCU (defaults to PFS154)
  • TARGET_VDD_MV: Use a different voltage while calibrating the internal oscillator (IHRC or ILRC) (defaults to 4000mV)

Note: All of these variables can be changed on the commandline as well. i.e. make DEVICE=PFS173 clean program run

Compatibility

This project is currently intended to be run on the PMS150C Padauk microcontrollers, but it should be able to be run on pretty much any other Padauk microcontrollers that have a Comparator (most) and that are supported by SDCC and the Easy PDK Programmer.

Build Stats

  • Code Size: ~126 words
  • RAM usage: 1 bytes + stack