add initial power module project files

This commit is contained in:
James Devine 2021-07-13 17:47:32 +01:00
Родитель af040f742c
Коммит 0375be6e86
2 изменённых файлов: 66 добавлений и 0 удалений

39
jm-power-50-0.1/main.asm Normal file
Просмотреть файл

@ -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

27
jm-power-50-0.1/power.prj Normal file
Просмотреть файл

@ -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