From 0375be6e867e03ca590e8c3455a050bb7d3e414a Mon Sep 17 00:00:00 2001 From: James Devine Date: Tue, 13 Jul 2021 17:47:32 +0100 Subject: [PATCH] add initial power module project files --- jm-power-50-0.1/main.asm | 39 +++++++++++++++++++++++++++++++++++++++ jm-power-50-0.1/power.prj | 27 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 jm-power-50-0.1/main.asm create mode 100644 jm-power-50-0.1/power.prj diff --git a/jm-power-50-0.1/main.asm b/jm-power-50-0.1/main.asm new file mode 100644 index 0000000..a9ccebc --- /dev/null +++ b/jm-power-50-0.1/main.asm @@ -0,0 +1,39 @@ +.CHIP PMS150C +// Give package map to writer pcount VDD PA0 PA3 PA4 PA5 PA6 PA7 GND SHORTC_MSK1 SHORTC_MASK1 SHIFT +.writer package 8, 1, 7, 5, 6, 4, 3, 2, 8, 0x000D, 0x000D, 4 +//{{PADAUK_CODE_OPTION + .Code_Option Security Disable + .Code_Option Bootup_Time Fast + .Code_Option Drive Normal + .Code_Option LVR 3.0V +//}}PADAUK_CODE_OPTION + +#define RELEASE 1 + +// all pins on PA +#define PIN_LED 5 +#define PIN_JACDAC 6 +//#define PIN_LOG 7 + +#define LED_SINK 1 + +// Cost given in comment: words of flash/bytes of RAM +// #define CFG_T16_32BIT 1 // 1/1 +#define CFG_BROADCAST 1 // 20/0 +#define CFG_RESET_IN 1 // 24/1 +#define CFG_FW_ID 0x3592dcb4 // 24/0 + +#define PWR_SERVICE 1 + +#define PIN_SWITCH 4 + +.include ../jd/jdheader.asm + +#define PIN_LIMITER 3 +.include ../services/power.asm + +main: + .ADJUST_IC SYSCLK=IHRC/2, IHRC=16MHz, VDD=3.3V + PADIER = (1 << PIN_JACDAC) | (1 << PIN_LIMITER) + +.include ../jd/jdmain.asm diff --git a/jm-power-50-0.1/power.prj b/jm-power-50-0.1/power.prj new file mode 100644 index 0000000..486925a --- /dev/null +++ b/jm-power-50-0.1/power.prj @@ -0,0 +1,27 @@ +[INI] +PROJECT=SINGLE +[LINKS] +~main.asm +[Ram_Break] +Break1=No 0000 +Break2=No 0000 +Break3=No 0000 +Break4=No 0000 +[Stack_Break] +Break1=No 0000 00FF +Break2=No 0000 00FF +Break3=No 0000 00FF +Break4=No 0000 00FF +Break5=No 0000 00FF +Break6=No 0000 00FF +Break7=No 0000 00FF +Break8=No 0000 00FF +[Ctrl_Break] +Mark=51 1 +ICE=0 6 2 CE4 +[HEAD] +[DEPEND] +~..\jd\jdheader.asm +~..\jd\jdmain.asm +~..\services\power.asm +~$:INC_PDK\PMS150C.INC