production firmware with improved auto zero
This commit is contained in:
parent
b53927a2dd
commit
6a9141956e
@ -29,16 +29,16 @@
|
||||
<string>class com.microchip.mcc.mcu8.modules.dac.DAC</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>CMP5</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.cmp.CMP</string>
|
||||
<string>System Module</string>
|
||||
<string>class com.microchip.mcc.mcu8.systemManager.SystemManager</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>DAC5</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.dac10bit.DAC10BIT</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>System Module</string>
|
||||
<string>class com.microchip.mcc.mcu8.systemManager.SystemManager</string>
|
||||
<string>CMP5</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.cmp.CMP</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>DAC4</string>
|
||||
@ -53,21 +53,21 @@
|
||||
<string>class com.microchip.mcc.mcu8.modules.cmp.CMP</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>INTERNAL OSCILLATOR</string>
|
||||
<string>class com.microchip.mcc.mcu8.systemManager.osc.Osc</string>
|
||||
<string>DAC1</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.dac10bit.DAC10BIT</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>CMP1</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.cmp.CMP</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>DAC1</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.dac10bit.DAC10BIT</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>OPA1</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.opa.OPA</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>INTERNAL OSCILLATOR</string>
|
||||
<string>class com.microchip.mcc.mcu8.systemManager.osc.Osc</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>OPA2</string>
|
||||
<string>class com.microchip.mcc.mcu8.modules.opa.OPA</string>
|
||||
@ -533,14 +533,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="Pin Module" registerAlias="IOCCN" settingAlias="IOCCN4" alias="disabled"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="PWM9_out"/>
|
||||
<value>6</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="CMP2" name="cmpIntermodule"/>
|
||||
<value>enabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="PWM9_out"/>
|
||||
<value>6</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMNSEL" settingAlias="CNCH" alias="FVR_Buffer2"/>
|
||||
<value>5</value>
|
||||
@ -1033,14 +1033,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="System Module" registerAlias="CONFIG2" settingAlias="WRT" alias="ALL"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="CCP2_out"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA2" registerAlias="OPAPCHS" settingAlias="OPAPCH" alias="DAC3_out"/>
|
||||
<value>4</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="CCP2_out"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="IOCAF" settingAlias="IOCAF1"/>
|
||||
<value>disabled</value>
|
||||
@ -2885,14 +2885,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="COG2D"/>
|
||||
<value>31</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="COG2C"/>
|
||||
<value>30</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMCON0" settingAlias="CPOL" alias="not inverted"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="COG2C"/>
|
||||
<value>30</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="WDT" registerAlias="WDTCON0" settingAlias="WDTPS" alias="1:8192"/>
|
||||
<value>8</value>
|
||||
@ -3005,14 +3005,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="System Module" registerAlias="CONFIG1" settingAlias="FOSC" alias="ECM"/>
|
||||
<value>6</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAPCHS" settingAlias="OPAPCH" alias="FVR_Buffer1"/>
|
||||
<value>6</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMPSEL" settingAlias="CPCH" alias="DAC3"/>
|
||||
<value>7</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAPCHS" settingAlias="OPAPCH" alias="FVR_Buffer1"/>
|
||||
<value>6</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMPSEL" settingAlias="CPCH" alias="DAC2"/>
|
||||
<value>6</value>
|
||||
@ -3445,14 +3445,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="Pin Module" name="RC0"/>
|
||||
<value>disabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMCON0" settingAlias="CSP" alias="lo_speed"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ADC" name="AN10"/>
|
||||
<value>disabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMCON0" settingAlias="CSP" alias="lo_speed"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="Pin Module" name="trisUserSetRC2"/>
|
||||
<value>disabled</value>
|
||||
@ -4081,14 +4081,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ADC" registerAlias="ADCON0"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMNSEL" settingAlias="CNCH" alias="OPA2IN-"/>
|
||||
<value>10</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ADC" name="Temp"/>
|
||||
<value>channel_Temp</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMNSEL" settingAlias="CNCH" alias="OPA2IN-"/>
|
||||
<value>10</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="DAC4" registerAlias="DACCON0" settingAlias="DACPSS" alias="VREF+"/>
|
||||
<value>1</value>
|
||||
@ -4245,14 +4245,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN4"/>
|
||||
<value>4</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN3"/>
|
||||
<value>3</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="FVR" registerAlias="FVRCON" settingAlias="CDAFVR" alias="1x"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN3"/>
|
||||
<value>3</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="TRISC" settingAlias="TRISC6"/>
|
||||
<value>output</value>
|
||||
@ -4838,11 +4838,11 @@
|
||||
<value>20</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMCON0" settingAlias="CZLF" alias="unfiltered"/>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON1" settingAlias="ADNREF" alias="VSS"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON1" settingAlias="ADNREF" alias="VSS"/>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMCON0" settingAlias="CZLF" alias="unfiltered"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
@ -5373,14 +5373,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="Pin Module" registerAlias="SLRCONB" settingAlias="SLRB6" alias="maximum"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPANCHS" settingAlias="OPANCH" alias="DAC2_out"/>
|
||||
<value>3</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="FVR" registerAlias="FVRCON" settingAlias="ADFVR" alias="off"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPANCHS" settingAlias="OPANCH" alias="DAC2_out"/>
|
||||
<value>3</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAPCHS" settingAlias="OPAPCH" alias="DAC4_out"/>
|
||||
<value>5</value>
|
||||
@ -5797,14 +5797,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="Pin Module" registerAlias="ODCONA" settingAlias="ODA6" alias="disabled"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMCON0" settingAlias="CON" alias="enabled"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON1" settingAlias="ADPREF" alias="VDD"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP2" registerAlias="CMCON0" settingAlias="CON" alias="enabled"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON2" settingAlias="TRIGSEL" alias="ADCACT_PPS"/>
|
||||
<value>1</value>
|
||||
@ -5929,14 +5929,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="OPA2" registerAlias="OPAORS" settingAlias="OPAORS"/>
|
||||
<value>CCP1_out</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="CMP2" registerAlias="CMNSEL"/>
|
||||
<value>4</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ADC" name="DAC2_Output"/>
|
||||
<value>channel_DAC2_Output</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="CMP2" registerAlias="CMNSEL"/>
|
||||
<value>4</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="CMP1" registerAlias="CMNSEL"/>
|
||||
<value>4</value>
|
||||
@ -6285,14 +6285,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ADC" name="AN1"/>
|
||||
<value>disabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP5" registerAlias="CMCON0" settingAlias="COUT" alias="CPOL_VPVN"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ADC" name="AN0"/>
|
||||
<value>enabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP5" registerAlias="CMCON0" settingAlias="COUT" alias="CPOL_VPVN"/>
|
||||
<value>0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="Pin Module" registerAlias="IOCAF" settingAlias="IOCAF4" alias="disabled"/>
|
||||
<value>0</value>
|
||||
@ -6585,14 +6585,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN12"/>
|
||||
<value>12</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="CMP2" name="cvrefsettingvalue"/>
|
||||
<value>0x0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN19"/>
|
||||
<value>19</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="CMP2" name="cvrefsettingvalue"/>
|
||||
<value>0x0</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON0" settingAlias="CHS" alias="AN18"/>
|
||||
<value>18</value>
|
||||
@ -6857,6 +6857,10 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="Pin Module" registerAlias="PRG1RPPS"/>
|
||||
<value>4</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON2" settingAlias="TRIGSEL" alias="SYNCC4OUT"/>
|
||||
<value>13</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMNSEL" settingAlias="CNCH" alias="CIN3-"/>
|
||||
<value>3</value>
|
||||
@ -6865,10 +6869,6 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP1" registerAlias="CMCON0" settingAlias="CPOL" alias="inverted"/>
|
||||
<value>1</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ADC" registerAlias="ADCON2" settingAlias="TRIGSEL" alias="SYNCC4OUT"/>
|
||||
<value>13</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="INTERNAL OSCILLATOR" name="ExternalClock"/>
|
||||
<value>1000000</value>
|
||||
@ -7249,14 +7249,14 @@
|
||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="INTERNAL OSCILLATOR" name="USB_LOADED"/>
|
||||
<value>disabled</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="sync_C1OUT"/>
|
||||
<value>12</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="CMP5" registerAlias="CMNSEL" settingAlias="CNCH" alias="Vss"/>
|
||||
<value>8</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="OPA1" registerAlias="OPAORS" settingAlias="OPAORS" alias="sync_C1OUT"/>
|
||||
<value>12</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="Pin Module" registerAlias="ODCONA" settingAlias="ODA3" alias="enabled"/>
|
||||
<value>1</value>
|
||||
@ -7591,62 +7591,66 @@
|
||||
<file>mcc_generated_files/dac4.c</file>
|
||||
<hash>e599a9fd2343662ef0d0bad937aaf86e166cb9ccfeaf9eff8ac698a2395a2590</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp1.c</file>
|
||||
<hash>b18cf9c46facd6c2a8595172a31797adc658df701bcc93a2d96d891571a9127d</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/mcc.h</file>
|
||||
<hash>9f276b21f2055d909ff3065b0628e1292425cf3da22304373e6142c7f442644d</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp1.c</file>
|
||||
<hash>b18cf9c46facd6c2a8595172a31797adc658df701bcc93a2d96d891571a9127d</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/dac3.c</file>
|
||||
<hash>75bf7b26877d3086ee70b3290d55c5742ba6eabb45ffb9364d6f6e2c22a28178</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/interrupt_manager.c</file>
|
||||
<hash>cce15ffc52012295800bc1daa9862e4184f30c9f8928b8074304e311db3457c0</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/dac1.c</file>
|
||||
<hash>e84d9e06f73b346432609a89412c376786a54aac3fbf20a4537e41f714209a86</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp1.h</file>
|
||||
<hash>af7c6e59cf7750555a55df5f3e033ce9feff801201d55acebec7cefcf02c82f0</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/mcc.c</file>
|
||||
<hash>f793c8f57a4ecc4ea5991804b0c680ac8850b0cb429acff1b45dd72b156a7bb6</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/opa2.c</file>
|
||||
<hash>3f7f8881895ed366b921eaec0a866d183d35ea942237b38c520a202ca9fa1579</hash>
|
||||
<file>mcc_generated_files/interrupt_manager.c</file>
|
||||
<hash>cce15ffc52012295800bc1daa9862e4184f30c9f8928b8074304e311db3457c0</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/fvr.h</file>
|
||||
<hash>3141b994f105c4aacffbd1d6d6d4357d4b14d7e97907775e01ef4f4d8e91c94e</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp5.c</file>
|
||||
<hash>2b13d60e04e503a8b7cfce75bdb4e784a51ac31b4be6ed9a67982c2dace7d077</hash>
|
||||
<file>mcc_generated_files/mcc.c</file>
|
||||
<hash>7cc92c4b7a0380cef3bbb2e43d679840f02b9c2edd714b05b56b1356ad647e6d</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/pin_manager.c</file>
|
||||
<hash>bff13680d3f2fba56bdbcc25735679fe7a953dd3237d59d2cbba29cc5dd73b68</hash>
|
||||
<file>mcc_generated_files/cmp1.h</file>
|
||||
<hash>af7c6e59cf7750555a55df5f3e033ce9feff801201d55acebec7cefcf02c82f0</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/opa2.c</file>
|
||||
<hash>3f7f8881895ed366b921eaec0a866d183d35ea942237b38c520a202ca9fa1579</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp5.c</file>
|
||||
<hash>2b13d60e04e503a8b7cfce75bdb4e784a51ac31b4be6ed9a67982c2dace7d077</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/opa1.c</file>
|
||||
<hash>66df213a4b3da13957f4494875d291438404d05d697c9b593a9f7dcd4566d2ef</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp2.h</file>
|
||||
<hash>b6f25251d694a541f24b8960410b0a6cb0b17fabd01fd6a28381420b794617eb</hash>
|
||||
<file>mcc_generated_files/pin_manager.c</file>
|
||||
<hash>bff13680d3f2fba56bdbcc25735679fe7a953dd3237d59d2cbba29cc5dd73b68</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/fvr.c</file>
|
||||
<hash>4ff95a6794e2605d1b28576ab0d02bfe6d5a6d307f556b26a8cd9f7a9de3ac49</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp2.h</file>
|
||||
<hash>b6f25251d694a541f24b8960410b0a6cb0b17fabd01fd6a28381420b794617eb</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/dac7.h</file>
|
||||
<hash>eff4a549350aecf51fafd669a679dd2e31d80e665f1b15e68b5968d65a9e9a21</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/cmp5.h</file>
|
||||
<hash>78b882d4a890bd962fc8d20529f68953d7056be5d45a680bf1da0bf5db697e84</hash>
|
||||
@ -7655,10 +7659,6 @@
|
||||
<file>mcc_generated_files/pin_manager.h</file>
|
||||
<hash>19d3a9b3b29edae7ceb2ee22e36f2de8feb7fd8b46038fefee4fb802cc8bf7bc</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/dac7.h</file>
|
||||
<hash>eff4a549350aecf51fafd669a679dd2e31d80e665f1b15e68b5968d65a9e9a21</hash>
|
||||
</entry>
|
||||
<entry>
|
||||
<file>mcc_generated_files/dac5.h</file>
|
||||
<hash>5cf38d42f70fa9403a8c3a91b5dfc15f333389d6f5c8021f0202dadfc8b7b30e</hash>
|
||||
|
@ -19660,7 +19660,7 @@ void OSCILLATOR_Initialize(void);
|
||||
# 107 "./mcc_generated_files/mcc.h"
|
||||
void WDT_Initialize(void);
|
||||
# 44 "main.c" 2
|
||||
# 67 "main.c"
|
||||
# 70 "main.c"
|
||||
uint8_t mux_state = 0;
|
||||
uint8_t led_color_state = 0x0;
|
||||
|
||||
@ -19670,19 +19670,6 @@ void set_led(uint8_t);
|
||||
void init_sensor(void);
|
||||
void reset_sensor(void);
|
||||
|
||||
void my_CMP2_ISR(void){
|
||||
|
||||
PIR2bits.C2IF = 0;
|
||||
set_led(0x4);
|
||||
|
||||
}
|
||||
|
||||
void my_CMP1_ISR(void){
|
||||
|
||||
PIR2bits.C1IF = 0;
|
||||
set_led(0x4);
|
||||
}
|
||||
|
||||
|
||||
void SW2_ISR(void){
|
||||
|
||||
@ -19711,7 +19698,11 @@ void SW2_ISR(void){
|
||||
LATBbits.LATB4 = 0;
|
||||
break;
|
||||
}
|
||||
set_led(led_color_state);
|
||||
if(~LATCbits.LATC6 && LATCbits.LATC5 && LATCbits.LATC4){
|
||||
|
||||
} else{
|
||||
set_led(led_color_state);
|
||||
}
|
||||
mux_state = (mux_state+1)%4;
|
||||
_delay((unsigned long)((200)*(8000000/4000.0)));
|
||||
}
|
||||
@ -19724,7 +19715,7 @@ void SW1_ISR(void){
|
||||
_delay((unsigned long)((200)*(8000000/4000.0)));
|
||||
set_led(led_color_state);
|
||||
reset_sensor();
|
||||
_delay((unsigned long)((200)*(8000000/4000.0)));
|
||||
_delay((unsigned long)((400)*(8000000/4000.0)));
|
||||
if(PORTCbits.RC7 == 0){
|
||||
|
||||
init_sensor();
|
||||
@ -19740,18 +19731,34 @@ void SW1_ISR(void){
|
||||
PIR2bits.C1IF = 0;
|
||||
}
|
||||
|
||||
uint16_t average_adc_reading(adc_channel_t read_ch){
|
||||
uint32_t average_adc_reading(adc_channel_t read_ch){
|
||||
|
||||
uint16_t averaged_val = 0;
|
||||
for (int i = 0; i<8; i++){
|
||||
uint32_t averaged_val = 0;
|
||||
|
||||
averaged_val = ADC_GetConversion(read_ch);
|
||||
averaged_val = 0;
|
||||
for (int i = 0; i<(1<<8); i++){
|
||||
averaged_val = averaged_val + ADC_GetConversion(read_ch);
|
||||
}
|
||||
|
||||
averaged_val = averaged_val;
|
||||
|
||||
return averaged_val;
|
||||
}
|
||||
|
||||
uint32_t average_adc_reading_quick(adc_channel_t read_ch){
|
||||
|
||||
uint32_t averaged_val = 0;
|
||||
|
||||
averaged_val = ADC_GetConversion(read_ch);
|
||||
averaged_val = 0;
|
||||
|
||||
for (int i = 0; i<(1<<(8 -4)); i++){
|
||||
averaged_val = averaged_val + ADC_GetConversion(read_ch);
|
||||
}
|
||||
|
||||
return (averaged_val<<4);
|
||||
}
|
||||
|
||||
|
||||
void set_led(uint8_t led_color) {
|
||||
|
||||
LATCbits.LATC6 = (~led_color>>2)&1;
|
||||
@ -19759,35 +19766,42 @@ LATCbits.LATC5 = (~led_color>>1)&1;
|
||||
LATCbits.LATC4 = (~led_color)&1;
|
||||
|
||||
}
|
||||
|
||||
void zero_stage_1(void){
|
||||
uint16_t gnd_ref_val;
|
||||
uint32_t gnd_ref_val;
|
||||
uint16_t best_dac_val = 0;
|
||||
uint16_t stage_val;
|
||||
int16_t best_val = (1<<12);
|
||||
int16_t diff_value;
|
||||
uint16_t best_dac_val_l;
|
||||
uint32_t stage_val;
|
||||
int32_t best_val = 262144;
|
||||
int32_t diff_value;
|
||||
|
||||
uint16_t start_dac;
|
||||
uint16_t end_dac;
|
||||
|
||||
uint16_t old_bw = LATAbits.LATA7;
|
||||
uint8_t old_bw = LATAbits.LATA7;
|
||||
uint8_t old_gain = LATBbits.LATB4;
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
LATBbits.LATB4 = 1;
|
||||
|
||||
LATAbits.LATA7 = 0;
|
||||
|
||||
DAC1_Load10bitInputData(512);
|
||||
_delay((unsigned long)((10)*(8000000/4000.0)));
|
||||
stage_val = average_adc_reading(STAGE1_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
|
||||
if(diff_value > 100){
|
||||
start_dac = 0;
|
||||
|
||||
DAC1_Load10bitInputData(512);
|
||||
_delay((unsigned long)((20)*(8000000/4000.0)));
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
if(diff_value > ((1<<8)*50)){
|
||||
start_dac = 16;
|
||||
end_dac = 512;
|
||||
}
|
||||
else if (diff_value < -100 ){
|
||||
else if (diff_value < ((1<<8)*(-50)) ){
|
||||
start_dac = 512;
|
||||
end_dac = 1024;
|
||||
end_dac = 1007;
|
||||
}
|
||||
else{
|
||||
start_dac = 255;
|
||||
@ -19795,34 +19809,87 @@ void zero_stage_1(void){
|
||||
}
|
||||
|
||||
DAC1_Load10bitInputData(start_dac);
|
||||
_delay((unsigned long)((10)*(8000000/4000.0)));
|
||||
_delay((unsigned long)((20)*(8000000/4000.0)));
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
_delay((unsigned long)((3)*(8000000/4000.0)));
|
||||
if(i%10==0){
|
||||
gnd_ref_val = average_adc_reading_quick(GNDREF_SENSE);
|
||||
}
|
||||
stage_val = average_adc_reading_quick(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
|
||||
stage_val = average_adc_reading(STAGE1_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
if (abs(diff_value)< abs(best_val)){
|
||||
|
||||
if((diff_value > (1<<8)*5) && (i > start_dac+10) ){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DAC1_Load10bitInputData(best_dac_val);
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
best_val = 262144;
|
||||
start_dac = best_dac_val - 15;
|
||||
end_dac = best_dac_val + 15;
|
||||
DAC1_Load10bitInputData(start_dac);
|
||||
_delay((unsigned long)((100)*(8000000/4000.0)));
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
_delay((unsigned long)((2)*(8000000/4000.0)));
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
best_dac_val_l = best_dac_val;
|
||||
best_val = 262144;
|
||||
|
||||
for(uint16_t i = end_dac; i> start_dac; i--){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
_delay((unsigned long)((2)*(8000000/4000.0)));
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
best_dac_val = (best_dac_val + best_dac_val_l)>>1;
|
||||
DAC1_Load10bitInputData(best_dac_val);
|
||||
LATAbits.LATA7 = old_bw;
|
||||
LATBbits.LATB4 = old_gain;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void zero_stage_2(void){
|
||||
uint16_t gnd_ref_val;
|
||||
uint32_t gnd_ref_val;
|
||||
uint16_t best_dac_val = 0;
|
||||
uint16_t stage_val;
|
||||
uint32_t stage_val;
|
||||
uint16_t best_dac_val_l;
|
||||
|
||||
uint16_t old_gain = LATBbits.LATB4;
|
||||
uint16_t old_bw = LATAbits.LATA7;
|
||||
uint8_t old_gain = LATBbits.LATB4;
|
||||
uint8_t old_bw = LATAbits.LATA7;
|
||||
|
||||
int16_t best_val = (1<<12);
|
||||
int16_t diff_value;
|
||||
int32_t best_val = 262144;
|
||||
int32_t diff_value;
|
||||
|
||||
uint16_t start_dac;
|
||||
uint16_t end_dac;
|
||||
@ -19831,68 +19898,130 @@ void zero_stage_2(void){
|
||||
LATBbits.LATB4 = 0;
|
||||
|
||||
LATAbits.LATA7 = 0;
|
||||
_delay((unsigned long)((20)*(8000000/4000.0)));
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
|
||||
DAC5_Load10bitInputData(512);
|
||||
_delay((unsigned long)((5)*(8000000/4000.0)));
|
||||
DAC5_Load10bitInputData(512);
|
||||
_delay((unsigned long)((20)*(8000000/4000.0)));
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
if(diff_value < -100){
|
||||
start_dac = 0;
|
||||
if(diff_value < ((1<<8)*-8)){
|
||||
start_dac = 16;
|
||||
end_dac = 512;
|
||||
}
|
||||
else if (diff_value > 100 ){
|
||||
else if (diff_value > ((1<<8)*8) ){
|
||||
start_dac = 512;
|
||||
end_dac = 1024;
|
||||
end_dac = 1007;
|
||||
}
|
||||
else{
|
||||
start_dac = 255;
|
||||
end_dac = 768;
|
||||
}
|
||||
|
||||
DAC5_Load10bitInputData(start_dac);
|
||||
_delay((unsigned long)((10)*(8000000/4000.0)));
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i = i+2){
|
||||
DAC5_Load10bitInputData(start_dac);
|
||||
_delay((unsigned long)((20)*(8000000/4000.0)));
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
_delay((unsigned long)((2)*(8000000/4000.0)));
|
||||
if(i%10==0){
|
||||
gnd_ref_val = average_adc_reading_quick(GNDREF_SENSE);
|
||||
}
|
||||
|
||||
stage_val = average_adc_reading_quick(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
|
||||
|
||||
if((diff_value < (1<<8)*(-4)) && (i > start_dac+10)){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DAC5_Load10bitInputData(best_dac_val);
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
best_val = 262144;
|
||||
start_dac = best_dac_val - 15;
|
||||
end_dac = best_dac_val + 15;
|
||||
DAC5_Load10bitInputData(start_dac);
|
||||
_delay((unsigned long)((100)*(8000000/4000.0)));
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
|
||||
if (abs(diff_value)< abs(best_val)){
|
||||
_delay((unsigned long)((3)*(8000000/4000.0)));
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
best_dac_val_l = best_dac_val;
|
||||
best_val = 262144;
|
||||
|
||||
for(uint16_t i = end_dac; i> start_dac; i--){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
_delay((unsigned long)((3)*(8000000/4000.0)));
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
best_dac_val = (best_dac_val + best_dac_val_l)>>1;
|
||||
DAC5_Load10bitInputData(best_dac_val);
|
||||
LATBbits.LATB4 = old_gain;
|
||||
LATAbits.LATA7 = old_bw;
|
||||
LATBbits.LATB4 = old_gain;
|
||||
}
|
||||
|
||||
void init_sensor(void){
|
||||
uint32_t gnd_ref_val;
|
||||
uint32_t stage_val;
|
||||
int32_t diff_value;
|
||||
|
||||
_delay((unsigned long)((10)*(8000000/4000.0)));
|
||||
_delay((unsigned long)((5)*(8000000/4000.0)));
|
||||
zero_stage_1();
|
||||
_delay((unsigned long)((10)*(8000000/4000.0)));
|
||||
zero_stage_2();
|
||||
|
||||
if(LATBbits.LATB4 == 0){
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
zero_stage_2();
|
||||
}
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
diff_value = (int32_t) gnd_ref_val - (int32_t) stage_val ;
|
||||
if ( labs(diff_value) > ((1<<8)*20) ){
|
||||
set_led(0x4);
|
||||
_delay((unsigned long)((3000)*(8000000/4000.0)));
|
||||
set_led(led_color_state);
|
||||
}
|
||||
}
|
||||
|
||||
void reset_sensor(){
|
||||
do { LATAbits.LATA6 = 0; } while(0);
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
_delay((unsigned long)((40)*(8000000/4000.0)));
|
||||
do { LATAbits.LATA6 = 1; } while(0);
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
_delay((unsigned long)((40)*(8000000/4000.0)));
|
||||
do { LATAbits.LATA6 = 0; } while(0);
|
||||
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
}
|
||||
|
||||
void low_battery_loop(){
|
||||
@ -19912,8 +20041,8 @@ void main(void)
|
||||
SYSTEM_Initialize();
|
||||
|
||||
DAC7_SetOutput(16);
|
||||
DAC3_SetOutput(24);
|
||||
DAC4_SetOutput(8);
|
||||
DAC3_SetOutput(25);
|
||||
DAC4_SetOutput(7);
|
||||
|
||||
|
||||
DAC5_Load10bitInputData(512);
|
||||
@ -19929,16 +20058,16 @@ void main(void)
|
||||
do { LATAbits.LATA6 = 1; } while(0);
|
||||
_delay((unsigned long)((9)*(8000000/4000.0)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
led_color_state = 0x2;
|
||||
mux_state = 0;
|
||||
SW2_ISR();
|
||||
_delay((unsigned long)((800)*(8000000/4000.0)));
|
||||
reset_sensor();
|
||||
init_sensor();
|
||||
|
||||
_delay((unsigned long)((100)*(8000000/4000.0)));
|
||||
zero_stage_1();
|
||||
_delay((unsigned long)((50)*(8000000/4000.0)));
|
||||
zero_stage_2();
|
||||
|
||||
PIR2bits.C2IF = 0;
|
||||
PIR2bits.C1IF = 0;
|
||||
@ -19955,7 +20084,7 @@ void main(void)
|
||||
while (1)
|
||||
{
|
||||
_delay((unsigned long)((500)*(8000000/4000.0)));
|
||||
if((average_adc_reading(channel_FVRBuffer1)>>3) > 460){
|
||||
if((average_adc_reading(channel_FVRBuffer1)>>8) > 460){
|
||||
(INTCONbits.GIE = 0);
|
||||
(INTCONbits.PEIE = 0);
|
||||
low_battery_loop();
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -19669,16 +19669,16 @@ void SYSTEM_Initialize(void)
|
||||
PIN_MANAGER_Initialize();
|
||||
OSCILLATOR_Initialize();
|
||||
WDT_Initialize();
|
||||
CMP2_Initialize();
|
||||
FVR_Initialize();
|
||||
CMP2_Initialize();
|
||||
DAC3_Initialize();
|
||||
DAC5_Initialize();
|
||||
OPA2_Initialize();
|
||||
CMP1_Initialize();
|
||||
DAC4_Initialize();
|
||||
CMP5_Initialize();
|
||||
ADC_Initialize();
|
||||
DAC7_Initialize();
|
||||
ADC_Initialize();
|
||||
CMP5_Initialize();
|
||||
OPA1_Initialize();
|
||||
DAC1_Initialize();
|
||||
}
|
||||
|
@ -8,12 +8,12 @@ Version 4.0 HI-TECH Software Intermediate Code
|
||||
"107
|
||||
[; ;mcc_generated_files/mcc.h: 107: void WDT_Initialize(void);
|
||||
[v _WDT_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"92 mcc_generated_files/cmp2.h
|
||||
[; ;mcc_generated_files/cmp2.h: 92: void CMP2_Initialize(void);
|
||||
[v _CMP2_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"93 mcc_generated_files/fvr.h
|
||||
[; ;mcc_generated_files/fvr.h: 93: void FVR_Initialize(void);
|
||||
[v _FVR_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"92 mcc_generated_files/cmp2.h
|
||||
[; ;mcc_generated_files/cmp2.h: 92: void CMP2_Initialize(void);
|
||||
[v _CMP2_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"93 mcc_generated_files/dac3.h
|
||||
[; ;mcc_generated_files/dac3.h: 93: void DAC3_Initialize(void);
|
||||
[v _DAC3_Initialize `(v ~T0 @X0 0 ef ]
|
||||
@ -29,15 +29,15 @@ Version 4.0 HI-TECH Software Intermediate Code
|
||||
"93 mcc_generated_files/dac4.h
|
||||
[; ;mcc_generated_files/dac4.h: 93: void DAC4_Initialize(void);
|
||||
[v _DAC4_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"92 mcc_generated_files/cmp5.h
|
||||
[; ;mcc_generated_files/cmp5.h: 92: void CMP5_Initialize(void);
|
||||
[v _CMP5_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"147 mcc_generated_files/adc.h
|
||||
[; ;mcc_generated_files/adc.h: 147: void ADC_Initialize(void);
|
||||
[v _ADC_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"93 mcc_generated_files/dac7.h
|
||||
[; ;mcc_generated_files/dac7.h: 93: void DAC7_Initialize(void);
|
||||
[v _DAC7_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"147 mcc_generated_files/adc.h
|
||||
[; ;mcc_generated_files/adc.h: 147: void ADC_Initialize(void);
|
||||
[v _ADC_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"92 mcc_generated_files/cmp5.h
|
||||
[; ;mcc_generated_files/cmp5.h: 92: void CMP5_Initialize(void);
|
||||
[v _CMP5_Initialize `(v ~T0 @X0 0 ef ]
|
||||
"93 mcc_generated_files/opa1.h
|
||||
[; ;mcc_generated_files/opa1.h: 93: void OPA1_Initialize(void);
|
||||
[v _OPA1_Initialize `(v ~T0 @X0 0 ef ]
|
||||
@ -1763,11 +1763,11 @@ Version 4.0 HI-TECH Software Intermediate Code
|
||||
[; ;mcc_generated_files/mcc.c: 55: WDT_Initialize();
|
||||
[e ( _WDT_Initialize .. ]
|
||||
"56
|
||||
[; ;mcc_generated_files/mcc.c: 56: CMP2_Initialize();
|
||||
[e ( _CMP2_Initialize .. ]
|
||||
"57
|
||||
[; ;mcc_generated_files/mcc.c: 57: FVR_Initialize();
|
||||
[; ;mcc_generated_files/mcc.c: 56: FVR_Initialize();
|
||||
[e ( _FVR_Initialize .. ]
|
||||
"57
|
||||
[; ;mcc_generated_files/mcc.c: 57: CMP2_Initialize();
|
||||
[e ( _CMP2_Initialize .. ]
|
||||
"58
|
||||
[; ;mcc_generated_files/mcc.c: 58: DAC3_Initialize();
|
||||
[e ( _DAC3_Initialize .. ]
|
||||
@ -1784,14 +1784,14 @@ Version 4.0 HI-TECH Software Intermediate Code
|
||||
[; ;mcc_generated_files/mcc.c: 62: DAC4_Initialize();
|
||||
[e ( _DAC4_Initialize .. ]
|
||||
"63
|
||||
[; ;mcc_generated_files/mcc.c: 63: CMP5_Initialize();
|
||||
[e ( _CMP5_Initialize .. ]
|
||||
[; ;mcc_generated_files/mcc.c: 63: DAC7_Initialize();
|
||||
[e ( _DAC7_Initialize .. ]
|
||||
"64
|
||||
[; ;mcc_generated_files/mcc.c: 64: ADC_Initialize();
|
||||
[e ( _ADC_Initialize .. ]
|
||||
"65
|
||||
[; ;mcc_generated_files/mcc.c: 65: DAC7_Initialize();
|
||||
[e ( _DAC7_Initialize .. ]
|
||||
[; ;mcc_generated_files/mcc.c: 65: CMP5_Initialize();
|
||||
[e ( _CMP5_Initialize .. ]
|
||||
"66
|
||||
[; ;mcc_generated_files/mcc.c: 66: OPA1_Initialize();
|
||||
[e ( _OPA1_Initialize .. ]
|
||||
|
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/DevInfo
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/DevInfo
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/PowerInfo
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/PowerInfo
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/Programmer
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/Programmer
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/ToolInfo
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/ToolInfo
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIR = "0:/B1-firmware_ptg/"
|
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/connect
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/connect
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/family
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/family
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/misc
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/misc
Normal file
Binary file not shown.
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/program
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/program
Normal file
Binary file not shown.
212
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/ptgdata
Normal file
212
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/ptgdata
Normal file
@ -0,0 +1,212 @@
|
||||
######################## Scripts ########################
|
||||
EnterDebugMode= b'\xb1\x94\x64\x00\xb2\x00\x41\xb0\x94\x64\x00\xb2\x03\xb1\x94\x64\x00\x42\xa0\x10\x27\xb0\x94\x64\x00\xb6\xa0\x98\x3a\x30'
|
||||
EnterTMOD_HV= b'\xb1\x94\x02\x00\xb2\x00\x41\xb0\x94\x05\x00'
|
||||
EnterTMOD_LV= b'\x42\xb0\x94\x01\x00\xa0\xfa\x00\xb2\x00\xb1\x94\x02\x00\xa0\xfa\x00\xb4\x50\x48\x43\x4d\xba\xbb'
|
||||
EnterTMOD_VPPFirst= b'\xb6\xdf\xb1\x94\x05\x00\xb2\x00\x41\xb0\x94\x0a\x00\xde\xa0\xfa\x00'
|
||||
EraseChip= b'\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xb5\x06\x09\x00\x00\x00\xa0\x70\x17'
|
||||
EraseProgmemRange= b'\x91\x00\x91\x01\xf5\x01\x40\x00\x62\x00\x16\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xad\x01\xb5\x06\x11\x00\x00\x00\xa0\xc4\x09\xac\x20\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xae'
|
||||
EraseTestmem= b'\x90\x04\x20\x00\x00\x00\x90\x05\x00\x01\x00\x00\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\x62\x04\x2c\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xb5\x06\x09\x00\x00\x00\xa0\x70\x17\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xad\x05\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae\xb5\x06\x0e\x00\x00\x00\xa0\x05\x00\xb5\x10\xaa\x63\x00\x00\xa0\x05\x00\xb5\x06\x09\x00\x00\x00\xa0\x70\x17'
|
||||
EraseTestmemRange= b'\x91\x00\x91\x01\x60\x02\x01\xf5\x02\x40\x00\x90\x03\x00\x80\x00\x00\x60\x04\x00\x6a\x04\x03\x60\x05\x00\x90\x06\x00\x81\x00\x00\xf9\x00\x03\x8c\x00\x90\x0f\x00\x00\x00\x00\xf8\x01\x0f\x8c\x00\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\x62\x04\x56\x00\x92\x05\x01\x00\x00\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xad\x02\xf9\x05\x06\x6f\x00\xb5\x06\x0e\x00\x00\x00\xa0\x05\x00\xb5\x10\xaa\x63\x00\x00\xa0\x05\x00\xb5\x06\x11\x00\x00\x00\xa0\xc4\x09\xac\x20\x00\x92\x05\x20\x00\x00\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xae'
|
||||
ExitTMOD= b'\xb2\x03\xb1\x94\x01\x00\xa0\x01\x00'
|
||||
GetDeviceID= b'\x95\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xac\x06\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x04\x00\x00\x00\xa0\x05\x00\x80\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xac\x05\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x04\x00\x00\x00\xa0\x05\x00\x80\xb1\x94\x01\x00\xa0\x01\x00'
|
||||
ReadConfigmem= b'\x91\x00\x91\x01\x93\x01\x02\x00\x92\x00\x00\x80\xff\xff\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\x62\x00\x2e\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\x95\xad\x01\xb5\x06\x04\x00\x00\x00\xa0\x05\x00\x80\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae'
|
||||
ReadProgmem= b'\x91\x00\x91\x01\x93\x01\x02\x00\x62\x00\x16\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\x95\xad\x01\xb5\x06\x04\x00\x00\x00\xa0\x05\x00\x80\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae'
|
||||
SetSpeedFromDevice= b'\xec\xfa\x00\x00\x00'
|
||||
WriteConfigmem= b'\x91\x00\x91\x01\x90\x02\x00\x80\x00\x00\x6a\x00\x02\x93\x01\x02\x00\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\x62\x00\x31\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xad\x01\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x08\x00\x00\x00\xa0\x88\x13\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae'
|
||||
WriteConfigmemDE= b'\x91\x00\x91\x01\x90\x02\x00\x80\x00\x00\x6a\x00\x02\x93\x01\x02\x00\xf5\x01\x20\x00\x90\x03\xe0\x00\x00\x00\x93\x03\x20\x00\x60\x05\x01\x60\x04\x03\x6a\x05\x04\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\x62\x00\x48\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xad\x03\xac\x1f\x00\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x08\x00\x00\x00\xa0\xc4\x09\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae\xad\x05\xb5\x06\x0e\x00\x00\x00\xa0\x05\x00\xb5\x10\xaa\x63\x00\x00\xa0\x05\x00\xac\x1f\x00\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x08\x00\x00\x00\xa0\xc4\x09\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae'
|
||||
WriteDebugVector= b'\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xac\x04\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\xb5\x10\x40\x50\x00\x00\xb5\x06\x08\x00\x00\x00\xa0\x88\x13\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xac\x0d\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\xb5\x10\x40\x50\x00\x00\xb5\x06\x08\x00\x00\x00\xa0\x88\x13\xb5\x06\x06\x00\x00\x00\xa0\x05\x00'
|
||||
WriteIDmem= b'\x91\x00\x91\x01\xb5\x06\x00\x00\x00\x00\xa0\x05\x00\xb5\x10\xfe\x7f\x00\x00\xa0\x05\x00\xac\x04\x00\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x08\x00\x00\x00\xa0\x88\x13\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4'
|
||||
WriteProgmem= b'\x91\x00\x91\x01\x93\x01\x02\x00\x60\x04\x01\x93\x04\x20\x00\x62\x00\x1c\x00\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\x63\xad\x04\xac\x1f\x00\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xa4\xb5\x06\x02\x00\x00\x00\xa0\x05\x00\x81\xb5\x06\x08\x00\x00\x00\xa0\xc4\x09\xb5\x06\x06\x00\x00\x00\xa0\x05\x00\xae'
|
||||
GetVersionDE= b'\x95\x31\x01\x00\x00\x04\x00'
|
||||
GetPC= b'\x95\x31\x04\x00\x00\x02\x00'
|
||||
Run= b'\x31\x05\x00\x00\x00\x00\x94\x64\x00'
|
||||
SingleStep= b'\x31\x06\x00\x00\x00\x00'
|
||||
ReadRAM= b'\x91\x00\x91\x01\x90\x02\x04\x00\x00\x00\x64\x00\x02\x64\x01\x02\x95\x33\x02\x02\x01'
|
||||
WriteRAM= b'\x91\x00\x91\x01\x90\x02\x00\x00\x00\x00\x64\x00\x02\x64\x01\x02\x92\x01\x04\x00\x00\x00\x33\x03\x01\x02'
|
||||
Halt= b'\x30\xb6\x94\x64\x00'
|
||||
GetHaltStatus= b'\x32'
|
||||
SetSpeedFromDevice= b'\xec\xfa\x00\x00\x00'
|
||||
SetPC= b'\x91\x00\x64\x00\x03\x31\x11\x02\x00\x00\x00'
|
||||
ReadProgmemDE= b'\x91\x00\x91\x01\x60\x02\x01\x64\x00\x02\x64\x02\x02\x9b\x03\x04\x68\x01\x01\x95\x33\x09\x03\x01'
|
||||
WriteProgmemDE= b'\x91\x00\x91\x01\xf5\x01\x40\x00\xad\x01\x64\x00\x02\x65\x40\x00\x00\x00\x02\x31\x0a\x44\x00\x00\x00\xa0\x70\x17\x92\x00\x20\x00\x00\x00\xae'
|
||||
EraseProgmemDE= b'\x91\x00\x64\x00\x02\x31\x0b\x02\x00\x00\x00\xa0\x70\x17'
|
||||
ReadTestmemDE= b'\x91\x00\x91\x01\x60\x02\x01\x64\x00\x02\x64\x02\x02\x9b\x03\x04\x68\x01\x01\x95\x33\x0f\x03\x01'
|
||||
|
||||
######################## Device Info ########################
|
||||
dev = DeviceInfo()
|
||||
dev.deviceName = "PIC16F1776"
|
||||
dev.programmerType = "PIC16ENH"
|
||||
dev.family = "Mid-Range 8-bit MCUs (PIC10/12/16/MCP)"
|
||||
dev.subFamily = "MidrangeEnh"
|
||||
dev.useRowEraseIfVoltageIsLow = True
|
||||
dev.voltageBelowWhichUseRowErase = 2700
|
||||
dev.Vpp = 9000
|
||||
dev.deviceIDMask = 0x3fff
|
||||
dev.deviceID = 0x308b
|
||||
memTypeInfo = []
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Pgm"
|
||||
memInf.exists = True
|
||||
memInf.startAddr = 0x0
|
||||
memInf.endAddr = 0x1fff
|
||||
memInf.rowSize = 0x40
|
||||
memInf.rowEraseSize = 0x40
|
||||
memInf.addrInc = 0x1
|
||||
memInf.widthProgram = 0x2
|
||||
memInf.mask = 0x3fff
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Cfg"
|
||||
memInf.exists = True
|
||||
memInf.startAddr = 0x8007
|
||||
memInf.endAddr = 0x8008
|
||||
memInf.rowSize = 0x2
|
||||
memInf.rowEraseSize = 0x0
|
||||
memInf.addrInc = 0x1
|
||||
memInf.widthProgram = 0x2
|
||||
memInf.mask = 0x3fff
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "BootFlash"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "EEData"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "UserID"
|
||||
memInf.exists = True
|
||||
memInf.startAddr = 0x8000
|
||||
memInf.endAddr = 0x8003
|
||||
memInf.rowSize = 0x2
|
||||
memInf.rowEraseSize = 0x0
|
||||
memInf.addrInc = 0x1
|
||||
memInf.widthProgram = 0x2
|
||||
memInf.mask = 0x3fff
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Test"
|
||||
memInf.exists = True
|
||||
memInf.startAddr = 0x8000
|
||||
memInf.endAddr = 0x81ff
|
||||
memInf.rowSize = 0x40
|
||||
memInf.rowEraseSize = 0x40
|
||||
memInf.addrInc = 0x1
|
||||
memInf.widthProgram = 0x2
|
||||
memInf.mask = 0x3fff
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "FileRegs"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Periph"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "DataFlash"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "FlashData"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Emulation"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "NMMR"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "InstructionRam"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "UserOTP"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "FBoot"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "EDS"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "DevID"
|
||||
memInf.exists = True
|
||||
memInf.startAddr = 0x8006
|
||||
memInf.endAddr = 0x8006
|
||||
memInf.rowSize = 0x1
|
||||
memInf.rowEraseSize = 0x0
|
||||
memInf.addrInc = 0x1
|
||||
memInf.widthProgram = 0x1
|
||||
memInf.mask = 0x7fffffff
|
||||
memTypeInfo.append(memInf)
|
||||
memInf = MemInfo()
|
||||
memInf.type = "Calibration"
|
||||
memInf.exists = False
|
||||
memTypeInfo.append(memInf)
|
||||
dev.setMemInfo(memTypeInfo)
|
||||
|
||||
######################## Power Info ########################
|
||||
power = PowerInfo()
|
||||
power.shutDownSystem = False
|
||||
power.isToolPower = False
|
||||
power.useVPPfirst = False
|
||||
power.useLowVoltageProgramming = False
|
||||
power.useMaintainActivePower = False
|
||||
power.voltage = 5000
|
||||
|
||||
######################## Tool Info ########################
|
||||
tool = ToolInfo()
|
||||
tool.speedLevel = 1
|
||||
tool.PGCResistance = 4700
|
||||
tool.PGDResistance = 4700
|
||||
tool.PGCPullDir = 2
|
||||
tool.PGDPullDir = 2
|
||||
tool.ICSPSelected = 0
|
||||
|
||||
######################## Operation Info ########################
|
||||
o = Opinfo("read",0x0)
|
||||
t = Tinfo()
|
||||
o.addTI(t)
|
||||
oi.append(o)
|
||||
|
||||
######################## Operation Info ########################
|
||||
o = Opinfo("erase",0x0)
|
||||
oi.append(o)
|
||||
|
||||
######################## Operation Info ########################
|
||||
o = Opinfo("write",0x0)
|
||||
t = Tinfo()
|
||||
t.start = 0x0
|
||||
t.end = 0xfff
|
||||
t.data = "write_Pgm_st_0x0_op2_0.dat"
|
||||
t.type = "Pgm"
|
||||
t.mask = 0x0
|
||||
o.addTI(t)
|
||||
t = Tinfo()
|
||||
t.start = 0x1520
|
||||
t.end = 0x17ff
|
||||
t.data = "write_Pgm_st_0x1520_op2_1.dat"
|
||||
t.type = "Pgm"
|
||||
t.mask = 0x0
|
||||
o.addTI(t)
|
||||
t = Tinfo()
|
||||
t.start = 0x8007
|
||||
t.end = 0x8008
|
||||
t.data = "write_Cfg_st_0x8007_op2_2.dat"
|
||||
t.type = "Cfg"
|
||||
t.mask = 0x0
|
||||
o.addTI(t)
|
||||
oi.append(o)
|
||||
|
||||
######################## Operation Info ########################
|
||||
o = Opinfo("releasefromreset",0x0)
|
||||
oi.append(o)
|
||||
|
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/run
Normal file
BIN
firmware/B1-firmware.X/debug/default/B1-firmware_ptg/run
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
01.02.00
|
@ -0,0 +1 @@
|
||||
<EFBFBD>?<3F>>
|
@ -0,0 +1 @@
|
||||
<EFBFBD>><3E>?
|
Binary file not shown.
Binary file not shown.
1
firmware/B1-firmware.X/debug/default/conf.ptg
Normal file
1
firmware/B1-firmware.X/debug/default/conf.ptg
Normal file
@ -0,0 +1 @@
|
||||
DIR = "0:/B1-firmware_ptg/"
|
@ -60,10 +60,13 @@
|
||||
|
||||
#define LED_WHITE (LED_GREEN | LED_BLUE | LED_RED)
|
||||
|
||||
#define LOW_BATTERY_VOLTAGE 173 //depreciated
|
||||
#define HIGH_FVR_VOLTAGE 460
|
||||
//if 4.096V FVR reads too high supply is too low 2^10*2.048/5.012/0.91
|
||||
|
||||
#define ADC_SUPERSAMPLE 8
|
||||
|
||||
#define ADC_MAX_VAL 262144
|
||||
|
||||
uint8_t mux_state = 0;
|
||||
uint8_t led_color_state = LED_OFF;
|
||||
|
||||
@ -73,19 +76,6 @@ void set_led(uint8_t);
|
||||
void init_sensor(void);
|
||||
void reset_sensor(void);
|
||||
|
||||
void my_CMP2_ISR(void){
|
||||
// clear the CMP2 interrupt flag
|
||||
PIR2bits.C2IF = 0;
|
||||
set_led(LED_RED);
|
||||
|
||||
}
|
||||
|
||||
void my_CMP1_ISR(void){
|
||||
// clear the CMP1 interrupt flag
|
||||
PIR2bits.C1IF = 0;
|
||||
set_led(LED_RED);
|
||||
}
|
||||
|
||||
//change state
|
||||
void SW2_ISR(void){
|
||||
|
||||
@ -114,7 +104,11 @@ void SW2_ISR(void){
|
||||
MUX_SEL2_LAT = 0; //gain select
|
||||
break;
|
||||
}
|
||||
set_led(led_color_state);
|
||||
if(~LED_B_LAT && LED_G_LAT && LED_R_LAT){
|
||||
//led is red due to OC, do not clear
|
||||
} else{
|
||||
set_led(led_color_state);
|
||||
}
|
||||
mux_state = (mux_state+1)%4;
|
||||
__delay_ms(200); //delay for debounce
|
||||
}
|
||||
@ -127,7 +121,7 @@ void SW1_ISR(void){
|
||||
__delay_ms(200);
|
||||
set_led(led_color_state);
|
||||
reset_sensor();
|
||||
__delay_ms(200);
|
||||
__delay_ms(400);
|
||||
if(SW1_GetValue() == 0){
|
||||
//if switch is still depressed do a full zero
|
||||
init_sensor();
|
||||
@ -143,54 +137,77 @@ void SW1_ISR(void){
|
||||
PIR2bits.C1IF = 0;
|
||||
}
|
||||
|
||||
uint16_t average_adc_reading(adc_channel_t read_ch){
|
||||
uint32_t average_adc_reading(adc_channel_t read_ch){
|
||||
|
||||
uint16_t averaged_val = 0;
|
||||
for (int i = 0; i<8; i++){
|
||||
uint32_t averaged_val = 0;
|
||||
//throw away first value
|
||||
averaged_val = ADC_GetConversion(read_ch);
|
||||
averaged_val = 0;
|
||||
for (int i = 0; i<(1<<ADC_SUPERSAMPLE); i++){
|
||||
averaged_val = averaged_val + ADC_GetConversion(read_ch);
|
||||
}
|
||||
|
||||
averaged_val = averaged_val;
|
||||
|
||||
return averaged_val;
|
||||
}
|
||||
|
||||
void set_led(uint8_t led_color) {
|
||||
uint32_t average_adc_reading_quick(adc_channel_t read_ch){
|
||||
|
||||
uint32_t averaged_val = 0;
|
||||
//throw away first value
|
||||
averaged_val = ADC_GetConversion(read_ch);
|
||||
averaged_val = 0;
|
||||
|
||||
for (int i = 0; i<(1<<(ADC_SUPERSAMPLE-4)); i++){
|
||||
averaged_val = averaged_val + ADC_GetConversion(read_ch);
|
||||
}
|
||||
|
||||
return (averaged_val<<4);
|
||||
}
|
||||
|
||||
|
||||
void set_led(uint8_t led_color) {
|
||||
//red and blue LED pin mapping flipped
|
||||
LED_B_LAT = (~led_color>>2)&1;
|
||||
LED_G_LAT = (~led_color>>1)&1;
|
||||
LED_R_LAT = (~led_color)&1;
|
||||
|
||||
}
|
||||
|
||||
void zero_stage_1(void){
|
||||
uint16_t gnd_ref_val;
|
||||
uint32_t gnd_ref_val;
|
||||
uint16_t best_dac_val = 0;
|
||||
uint16_t stage_val;
|
||||
int16_t best_val = (1<<12);
|
||||
int16_t diff_value;
|
||||
uint16_t best_dac_val_l;
|
||||
uint32_t stage_val;
|
||||
int32_t best_val = ADC_MAX_VAL;
|
||||
int32_t diff_value;
|
||||
|
||||
uint16_t start_dac;
|
||||
uint16_t end_dac;
|
||||
|
||||
uint16_t old_bw = MUX_SEL1_LAT;
|
||||
uint8_t old_bw = MUX_SEL1_LAT;
|
||||
uint8_t old_gain = MUX_SEL2_LAT;
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
//switch bw to low
|
||||
//switch gain to low gain
|
||||
MUX_SEL2_LAT = 1;
|
||||
//switch bw to low
|
||||
MUX_SEL1_LAT = 0;
|
||||
//initial ranging
|
||||
DAC1_Load10bitInputData(512);
|
||||
__delay_ms(10);
|
||||
stage_val = average_adc_reading(STAGE1_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
|
||||
if(diff_value > 100){
|
||||
start_dac = 0;
|
||||
|
||||
//initial ranging
|
||||
DAC1_Load10bitInputData(512);
|
||||
__delay_ms(20);
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
if(diff_value > ((1<<ADC_SUPERSAMPLE)*50)){ //250mV
|
||||
start_dac = 16;
|
||||
end_dac = 512;
|
||||
}
|
||||
else if (diff_value < -100 ){
|
||||
else if (diff_value < ((1<<ADC_SUPERSAMPLE)*(-50)) ){ //-250mv
|
||||
start_dac = 512;
|
||||
end_dac = 1024;
|
||||
end_dac = 1007;
|
||||
}
|
||||
else{
|
||||
start_dac = 255;
|
||||
@ -198,34 +215,87 @@ void zero_stage_1(void){
|
||||
}
|
||||
|
||||
DAC1_Load10bitInputData(start_dac);
|
||||
__delay_ms(10);
|
||||
__delay_ms(20);
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
__delay_ms(3);
|
||||
//__delay_us(100);
|
||||
stage_val = average_adc_reading(STAGE1_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
if (abs(diff_value)< abs(best_val)){
|
||||
if(i%10==0){
|
||||
gnd_ref_val = average_adc_reading_quick(GNDREF_SENSE);
|
||||
}
|
||||
stage_val = average_adc_reading_quick(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
|
||||
//break if diff value is greater than 25mv
|
||||
if((diff_value > (1<<ADC_SUPERSAMPLE)*5) && (i > start_dac+10) ){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DAC1_Load10bitInputData(best_dac_val);
|
||||
__delay_ms(50);
|
||||
//ramp up
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
best_val = ADC_MAX_VAL;
|
||||
start_dac = best_dac_val - 15;
|
||||
end_dac = best_dac_val + 15;
|
||||
DAC1_Load10bitInputData(start_dac);
|
||||
__delay_ms(100);
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
__delay_ms(2);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
//ramp down
|
||||
best_dac_val_l = best_dac_val;
|
||||
best_val = ADC_MAX_VAL;
|
||||
|
||||
for(uint16_t i = end_dac; i> start_dac; i--){
|
||||
|
||||
DAC1_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
__delay_ms(2);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
//set new DAC value and restore old settings
|
||||
best_dac_val = (best_dac_val + best_dac_val_l)>>1;
|
||||
DAC1_Load10bitInputData(best_dac_val);
|
||||
MUX_SEL1_LAT = old_bw;
|
||||
MUX_SEL2_LAT = old_gain;
|
||||
}
|
||||
|
||||
void zero_stage_2(void){
|
||||
uint16_t gnd_ref_val;
|
||||
uint16_t best_dac_val = 0;
|
||||
uint16_t stage_val;
|
||||
|
||||
uint16_t old_gain = MUX_SEL2_LAT;
|
||||
uint16_t old_bw = MUX_SEL1_LAT;
|
||||
|
||||
void zero_stage_2(void){
|
||||
uint32_t gnd_ref_val;
|
||||
uint16_t best_dac_val = 0;
|
||||
uint32_t stage_val;
|
||||
uint16_t best_dac_val_l;
|
||||
|
||||
uint8_t old_gain = MUX_SEL2_LAT;
|
||||
uint8_t old_bw = MUX_SEL1_LAT;
|
||||
|
||||
int16_t best_val = (1<<12);
|
||||
int16_t diff_value;
|
||||
int32_t best_val = ADC_MAX_VAL;
|
||||
int32_t diff_value;
|
||||
|
||||
uint16_t start_dac;
|
||||
uint16_t end_dac;
|
||||
@ -234,68 +304,130 @@ void zero_stage_2(void){
|
||||
MUX_SEL2_LAT = 0;
|
||||
//switch bw to low
|
||||
MUX_SEL1_LAT = 0;
|
||||
__delay_ms(20);
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
//initial ranging
|
||||
DAC5_Load10bitInputData(512);
|
||||
__delay_ms(5);
|
||||
//initial ranging
|
||||
DAC5_Load10bitInputData(512);
|
||||
__delay_ms(20);
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
if(diff_value < -100){
|
||||
start_dac = 0;
|
||||
if(diff_value < ((1<<ADC_SUPERSAMPLE)*-8)){ //40mV
|
||||
start_dac = 16;
|
||||
end_dac = 512;
|
||||
}
|
||||
else if (diff_value > 100 ){
|
||||
else if (diff_value > ((1<<ADC_SUPERSAMPLE)*8) ){ //-40mv
|
||||
start_dac = 512;
|
||||
end_dac = 1024;
|
||||
end_dac = 1007;
|
||||
}
|
||||
else{
|
||||
start_dac = 255;
|
||||
end_dac = 768;
|
||||
}
|
||||
|
||||
//rough ramp
|
||||
DAC5_Load10bitInputData(start_dac);
|
||||
__delay_ms(10);
|
||||
__delay_ms(20);
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i = i+2){
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
if(i%10==0){
|
||||
gnd_ref_val = average_adc_reading_quick(GNDREF_SENSE);
|
||||
}
|
||||
|
||||
stage_val = average_adc_reading_quick(STAGE2_MON);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
|
||||
//break if diff value is greater than 20mv
|
||||
if((diff_value < (1<<ADC_SUPERSAMPLE)*(-4)) && (i > start_dac+10)){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//ramp up
|
||||
DAC5_Load10bitInputData(best_dac_val);
|
||||
__delay_ms(50);
|
||||
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
best_val = ADC_MAX_VAL;
|
||||
start_dac = best_dac_val - 15;
|
||||
end_dac = best_dac_val + 15;
|
||||
DAC5_Load10bitInputData(start_dac);
|
||||
__delay_ms(100);
|
||||
for(uint16_t i = start_dac; i<end_dac; i++){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
__delay_ms(2);
|
||||
//__delay_us(100);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
|
||||
diff_value = (int16_t) stage_val - (int16_t) gnd_ref_val;
|
||||
|
||||
if (abs(diff_value)< abs(best_val)){
|
||||
__delay_ms(3);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
//dac ramp down
|
||||
best_dac_val_l = best_dac_val;
|
||||
best_val = ADC_MAX_VAL;
|
||||
|
||||
for(uint16_t i = end_dac; i> start_dac; i--){
|
||||
|
||||
DAC5_Load10bitInputData(i);
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
__delay_ms(3);
|
||||
diff_value = (int32_t) stage_val - (int32_t) gnd_ref_val;
|
||||
if (labs(diff_value)<= labs(best_val)){
|
||||
best_val = diff_value;
|
||||
best_dac_val = i;
|
||||
}
|
||||
}
|
||||
|
||||
//set new DAC value and restore all settings
|
||||
best_dac_val = (best_dac_val + best_dac_val_l)>>1;
|
||||
DAC5_Load10bitInputData(best_dac_val);
|
||||
MUX_SEL2_LAT = old_gain;
|
||||
MUX_SEL1_LAT = old_bw;
|
||||
MUX_SEL2_LAT = old_gain;
|
||||
}
|
||||
|
||||
void init_sensor(void){
|
||||
uint32_t gnd_ref_val;
|
||||
uint32_t stage_val;
|
||||
int32_t diff_value;
|
||||
|
||||
__delay_ms(10);
|
||||
__delay_ms(5);
|
||||
zero_stage_1();
|
||||
__delay_ms(10);
|
||||
zero_stage_2();
|
||||
//only zero second stage if in use
|
||||
if(MUX_SEL2_LAT == 0){
|
||||
__delay_ms(50);
|
||||
zero_stage_2();
|
||||
}
|
||||
|
||||
stage_val = average_adc_reading(STAGE2_MON);
|
||||
gnd_ref_val = average_adc_reading(GNDREF_SENSE);
|
||||
diff_value = (int32_t) gnd_ref_val - (int32_t) stage_val ;
|
||||
if ( labs(diff_value) > ((1<<ADC_SUPERSAMPLE)*20) ){ //100mV offset
|
||||
set_led(LED_RED);
|
||||
__delay_ms(3000);
|
||||
set_led(led_color_state);
|
||||
}
|
||||
}
|
||||
|
||||
void reset_sensor(){
|
||||
SR_SetLow();
|
||||
__delay_ms(50);
|
||||
__delay_ms(40);
|
||||
SR_SetHigh();
|
||||
__delay_ms(50);
|
||||
__delay_ms(40);
|
||||
SR_SetLow();
|
||||
|
||||
__delay_ms(50);
|
||||
}
|
||||
|
||||
void low_battery_loop(){
|
||||
@ -315,8 +447,8 @@ void main(void)
|
||||
SYSTEM_Initialize();
|
||||
|
||||
DAC7_SetOutput(16); //set virtual ground to ~2.5V
|
||||
DAC3_SetOutput(24); //set overload high comparator
|
||||
DAC4_SetOutput(8); //set overload low comparator
|
||||
DAC3_SetOutput(25); //set overload high comparator
|
||||
DAC4_SetOutput(7); //set overload low comparator
|
||||
|
||||
//init offset dac
|
||||
DAC5_Load10bitInputData(512);
|
||||
@ -332,16 +464,16 @@ void main(void)
|
||||
SR_SetHigh();
|
||||
__delay_ms(9);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
led_color_state = LED_GREEN;
|
||||
mux_state = 0;
|
||||
SW2_ISR();//initialize LED and mux
|
||||
__delay_ms(800); //system warmup
|
||||
reset_sensor();
|
||||
init_sensor();
|
||||
//init_sensor();
|
||||
__delay_ms(100);
|
||||
zero_stage_1();
|
||||
__delay_ms(50);
|
||||
zero_stage_2();
|
||||
//zeroing system may trip over range comparators
|
||||
PIR2bits.C2IF = 0;
|
||||
PIR2bits.C1IF = 0;
|
||||
@ -358,7 +490,7 @@ void main(void)
|
||||
while (1)
|
||||
{
|
||||
__delay_ms(500);
|
||||
if((average_adc_reading(channel_FVRBuffer1)>>3) > HIGH_FVR_VOLTAGE){
|
||||
if((average_adc_reading(channel_FVRBuffer1)>>ADC_SUPERSAMPLE) > HIGH_FVR_VOLTAGE){
|
||||
INTERRUPT_GlobalInterruptDisable();
|
||||
INTERRUPT_PeripheralInterruptDisable();
|
||||
low_battery_loop();
|
||||
|
@ -53,16 +53,16 @@ void SYSTEM_Initialize(void)
|
||||
PIN_MANAGER_Initialize();
|
||||
OSCILLATOR_Initialize();
|
||||
WDT_Initialize();
|
||||
CMP2_Initialize();
|
||||
FVR_Initialize();
|
||||
CMP2_Initialize();
|
||||
DAC3_Initialize();
|
||||
DAC5_Initialize();
|
||||
OPA2_Initialize();
|
||||
CMP1_Initialize();
|
||||
DAC4_Initialize();
|
||||
CMP5_Initialize();
|
||||
ADC_Initialize();
|
||||
DAC7_Initialize();
|
||||
ADC_Initialize();
|
||||
CMP5_Initialize();
|
||||
OPA1_Initialize();
|
||||
DAC1_Initialize();
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
#
|
||||
#Sat Apr 10 13:34:23 PDT 2021
|
||||
#Mon Jun 14 00:45:36 PDT 2021
|
||||
default.languagetoolchain.version=2.31
|
||||
default.Pack.dfplocation=/opt/microchip/mplabx/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63
|
||||
conf.ids=default
|
||||
default.languagetoolchain.dir=/opt/microchip/xc8/v2.31/bin
|
||||
host.id=2p1a-byni-8f
|
||||
configurations-xml=1ffa9967bc20918976800abc3126d2f1
|
||||
configurations-xml=efe74a7dbe7c5d219e84e5bee52872c0
|
||||
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=4e1c703e057ce3824a620f2a747a6f88
|
||||
default.com-microchip-mplab-nbide-toolchainXC8-XC8LanguageToolchain.md5=d9404904a11cd8baf0bd6c1f62dd8c23
|
||||
proj.dir=/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X
|
||||
|
@ -200,11 +200,68 @@
|
||||
<property key="stack-size-main" value="auto"/>
|
||||
<property key="stack-type" value="compiled"/>
|
||||
<property key="user-pack-device-support" value=""/>
|
||||
<property key="wpo-lto" value="false"/>
|
||||
</XC8-config-global>
|
||||
<pk4hybrid>
|
||||
<property key="AutoSelectMemRanges" value="auto"/>
|
||||
<property key="Freeze Peripherals" value="true"/>
|
||||
<property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
|
||||
<property key="ToolFirmwareFilePath"
|
||||
value="Press to browse for a specific firmware version"/>
|
||||
<property key="ToolFirmwareOption.UpdateOptions"
|
||||
value="ToolFirmwareOption.UseLatest"/>
|
||||
<property key="ToolFirmwareToolPack"
|
||||
value="Press to select which tool pack to use"/>
|
||||
<property key="communication.activationmode" value="nohv"/>
|
||||
<property key="communication.interface"
|
||||
value="${communication.interface.default}"/>
|
||||
<property key="communication.interface.jtag" value="2wire"/>
|
||||
<property key="communication.speed" value="${communication.speed.default}"/>
|
||||
<property key="debugoptions.useswbreakpoints" value="false"/>
|
||||
<property key="freeze.timers" value="false"/>
|
||||
<property key="memories.aux" value="false"/>
|
||||
<property key="memories.bootflash" value="true"/>
|
||||
<property key="memories.configurationmemory" value="true"/>
|
||||
<property key="memories.configurationmemory2" value="true"/>
|
||||
<property key="memories.dataflash" value="true"/>
|
||||
<property key="memories.eeprom" value="true"/>
|
||||
<property key="memories.exclude.configurationmemory" value="true"/>
|
||||
<property key="memories.flashdata" value="true"/>
|
||||
<property key="memories.id" value="true"/>
|
||||
<property key="memories.instruction.ram.ranges"
|
||||
value="${memories.instruction.ram.ranges}"/>
|
||||
<property key="memories.programmemory" value="true"/>
|
||||
<property key="memories.programmemory.ranges" value="0-1fff"/>
|
||||
<property key="programmerToGoFilePath"
|
||||
value="/home/wbraun/Projects/little-bee/firmware/beewarev3.X/debug/default/beewarev3_ptg"/>
|
||||
<property key="memories.rww" value="true"/>
|
||||
<property key="poweroptions.powerenable" value="false"/>
|
||||
<property key="programmerToGoImageName" value="B1-firmware_ptg"/>
|
||||
<property key="programoptions.donoteraseauxmem" value="false"/>
|
||||
<property key="programoptions.eraseb4program" value="true"/>
|
||||
<property key="programoptions.ledbrightness" value="5"/>
|
||||
<property key="programoptions.pgcconfig" value="pull down"/>
|
||||
<property key="programoptions.pgcresistor.value" value="4.7"/>
|
||||
<property key="programoptions.pgdconfig" value="pull down"/>
|
||||
<property key="programoptions.pgdresistor.value" value="4.7"/>
|
||||
<property key="programoptions.pgmentry.voltage" value="high"/>
|
||||
<property key="programoptions.pgmspeed" value="Med"/>
|
||||
<property key="programoptions.preservedataflash" value="false"/>
|
||||
<property key="programoptions.preservedataflash.ranges"
|
||||
value="${memories.dataflash.default}"/>
|
||||
<property key="programoptions.preserveeeprom" value="false"/>
|
||||
<property key="programoptions.preserveeeprom.ranges" value=""/>
|
||||
<property key="programoptions.preserveprogram.ranges" value=""/>
|
||||
<property key="programoptions.preserveprogramrange" value="false"/>
|
||||
<property key="programoptions.preserveuserid" value="false"/>
|
||||
<property key="programoptions.programcalmem" value="false"/>
|
||||
<property key="programoptions.programuserotp" value="false"/>
|
||||
<property key="programoptions.testmodeentrymethod" value="VDDFirst"/>
|
||||
<property key="ptgProgramImage" value="false"/>
|
||||
<property key="ptgSendImage" value="true"/>
|
||||
<property key="toolpack.updateoptions"
|
||||
value="toolpack.updateoptions.uselatestoolpack"/>
|
||||
<property key="toolpack.updateoptions.packversion"
|
||||
value="Press to select which tool pack to use"/>
|
||||
<property key="voltagevalue" value="5.0"/>
|
||||
</pk4hybrid>
|
||||
</conf>
|
||||
</confs>
|
||||
|
@ -4,8 +4,14 @@
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/adc.h</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/mcc.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/pin_manager.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/device_config.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/dac1.h</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/main.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/device_config.h</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/interrupt_manager.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/dac1.c</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/mcc.h</file>
|
||||
<file>file:/home/wbraun/projects/little-bee-B1/firmware/B1-firmware.X/mcc_generated_files/pin_manager.h</file>
|
||||
</group>
|
||||
|
Loading…
Reference in New Issue
Block a user