Merge pull request #5 from mck1117/pt2001-ch1uc1

Pt2001 ch1uc1
This commit is contained in:
rusefillc 2023-05-16 17:31:53 -04:00 committed by GitHub
commit 3f6997c5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 475 additions and 45 deletions

View File

@ -0,0 +1,23 @@
<Actuator name="Inj2" type="BoostParallelSolenoid2">
<Resistance>1000</Resistance>
<Inductance>500</Inductance>
<RSense>10</RSense>
<CurrentFeedback>CurFbk1</CurrentFeedback>
<FeedBackSource>Form</FeedBackSource>
<OutputUsed number="3">
<Output>Hs1Command</Output>
<Output>Ls2Command</Output>
<Output>Hs2Command</Output>
</OutputUsed>
<VoltageLoad>
<Voltage>-66</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>65</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>13</Voltage>
<Voltage>65</Voltage>
</VoltageLoad>
<BoostFeedback>None</BoostFeedback>
</Actuator>

View File

@ -0,0 +1,23 @@
<Actuator name="Inj3" type="BoostParallelSolenoid2">
<Resistance>1000</Resistance>
<Inductance>500</Inductance>
<RSense>10</RSense>
<CurrentFeedback>CurFbk2</CurrentFeedback>
<FeedBackSource>Form</FeedBackSource>
<OutputUsed number="3">
<Output>Hs3Command</Output>
<Output>Ls3Command</Output>
<Output>Hs4Command</Output>
</OutputUsed>
<VoltageLoad>
<Voltage>-66</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>65</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>13</Voltage>
<Voltage>65</Voltage>
</VoltageLoad>
<BoostFeedback>None</BoostFeedback>
</Actuator>

View File

@ -0,0 +1,23 @@
<Actuator name="Inj4" type="BoostParallelSolenoid2">
<Resistance>1000</Resistance>
<Inductance>500</Inductance>
<RSense>10</RSense>
<CurrentFeedback>CurFbk2</CurrentFeedback>
<FeedBackSource>Form</FeedBackSource>
<OutputUsed number="3">
<Output>Hs3Command</Output>
<Output>Ls4Command</Output>
<Output>Hs4Command</Output>
</OutputUsed>
<VoltageLoad>
<Voltage>-66</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>65</Voltage>
<Voltage>-1</Voltage>
<Voltage>-1</Voltage>
<Voltage>13</Voltage>
<Voltage>65</Voltage>
</VoltageLoad>
<BoostFeedback>None</BoostFeedback>
</Actuator>

View File

@ -71,6 +71,78 @@
<Delay>500 ns</Delay>
</BelowLow>
</Transition>
<Transition threshold="False" type="2">
<Input>FeedbackHs3Vds</Input>
<Output>Hs3Command</Output>
<SourceShared level="True">Hs4Command</SourceShared>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="True" type="2">
<Input>FeedbackHs3Vsrc</Input>
<Output>Hs3Command</Output>
<SourceShared level="True">Hs4Command</SourceShared>
<ActuatorNumber>-2</ActuatorNumber>
<Current>0</Current>
<AboveHigh>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveLow>
<BelowHigh>
<Value>True</Value>
<Delay>500 ns</Delay>
</BelowHigh>
<BelowLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</BelowLow>
</Transition>
<Transition threshold="False" type="2">
<Input>FeedbackHs4Vds</Input>
<Output>Hs4Command</Output>
<SourceShared level="False">Hs3Command</SourceShared>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="True" type="2">
<Input>FeedbackHs4Vsrc</Input>
<Output>Hs4Command</Output>
<SourceShared level="False">Hs3Command</SourceShared>
<ActuatorNumber>-2</ActuatorNumber>
<Current>0</Current>
<AboveHigh>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveLow>
<BelowHigh>
<Value>True</Value>
<Delay>500 ns</Delay>
</BelowHigh>
<BelowLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</BelowLow>
</Transition>
<Transition threshold="False" type="1">
<Input>FeedbackLs1Vds</Input>
<Output>Ls1Command</Output>
@ -83,6 +155,42 @@
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="False" type="1">
<Input>FeedbackLs2Vds</Input>
<Output>Ls2Command</Output>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="False" type="1">
<Input>FeedbackLs3Vds</Input>
<Output>Ls3Command</Output>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="False" type="1">
<Input>FeedbackLs4Vds</Input>
<Output>Ls4Command</Output>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="False" type="2">
<Input>FeedbackHs2VdsVbat</Input>
<Output>Hs2Command</Output>
@ -96,4 +204,17 @@
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
<Transition threshold="False" type="2">
<Input>FeedbackHs4VdsVbat</Input>
<Output>Hs4Command</Output>
<SourceShared level="False">Hs3Command</SourceShared>
<AboveHigh>
<Value>False</Value>
<Delay>500 ns</Delay>
</AboveHigh>
<AboveLow>
<Value>True</Value>
<Delay>500 ns</Delay>
</AboveLow>
</Transition>
</VoltageFeedbacks>

View File

@ -71,6 +71,15 @@
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>CurrentFeedback1</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>0</Ordinal>
<Direction>Internal</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Cnt1</Name>
<Path>
@ -245,4 +254,232 @@
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Start3</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>8</Ordinal>
<Direction>Input</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Dac2</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>44</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Dac3</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>45</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Hs3Command</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>6</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Hs4Command</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>7</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Ls3Command</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>11</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>CurrentFeedback2</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>1</Ordinal>
<Direction>Internal</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Oaout2FlagOut</Name>
<Path>
<PathElement>PT2001</PathElement>
</Path>
<Ordinal>17</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Cnt1</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>0</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Cnt2</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>1</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Cnt3</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>2</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Cnt4</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>3</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Eoc1</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>4</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Eoc2</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>5</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Eoc3</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>6</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>Eoc4</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>7</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>TerminalCount1</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>8</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>TerminalCount2</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>9</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>TerminalCount3</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>10</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
<Wave>
<Name>TerminalCount4</Name>
<Path>
<PathElement>PT2001</PathElement>
<PathElement>Injection Channel 1</PathElement>
<PathElement>ChSequencers</PathElement>
<PathElement>MicroMachineSeq1</PathElement>
<PathElement>Counters</PathElement>
</Path>
<Ordinal>11</Ordinal>
<Direction>Output</Direction>
<Radix>Decimal</Radix>
</Wave>
</Waves>

View File

@ -9,7 +9,7 @@
0110101101011001
1100100010100101
0000000000000000
0000000000101100
0000000000110110
0000000000000000
0000000000000000
0000000000000000

View File

@ -1,4 +1,10 @@
<Stimuli>
<Stimulus target="Start1" time="1 ms" period="" value="high" />
<Stimulus target="Start1" time="3 ms" period="" value="low" />
<Stimulus target="Start3" time="5 ms" period="" value="high" />
<Stimulus target="Start3" time="7 ms" period="" value="low" />
<Stimulus target="Start4" time="11 ms" period="" value="high" />
<Stimulus target="Start4" time="13 ms" period="" value="low" />
<Stimulus target="Start2" time="15 ms" period="" value="high" />
<Stimulus target="Start2" time="17 ms" period="" value="low" />
</Stimuli>

View File

@ -1,29 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<AddressLabels>
<Channel1>
<uc0>
<Entrypoint>init0</Entrypoint>
<DiagRoutineAddress>init0</DiagRoutineAddress>
<DriverDisabledAddress>init0</DriverDisabledAddress>
<SwInterruptAddress>init0</SwInterruptAddress>
</uc0>
<uc1>
<DiagRoutineAddress>init0</DiagRoutineAddress>
<DriverDisabledAddress>init0</DriverDisabledAddress>
<SwInterruptAddress>init0</SwInterruptAddress>
</uc1>
</Channel1>
<Channel2>
<uc0>
<Entrypoint>init0</Entrypoint>
<DiagRoutineAddress>init0</DiagRoutineAddress>
<DriverDisabledAddress>init0</DriverDisabledAddress>
<SwInterruptAddress>init0</SwInterruptAddress>
</uc0>
<uc1>
<Entrypoint>init1</Entrypoint>
<DiagRoutineAddress>init0</DiagRoutineAddress>
<DriverDisabledAddress>init0</DriverDisabledAddress>
<SwInterruptAddress>init0</SwInterruptAddress>
</uc1>
</Channel2>
<Channel1>
<uc0_Entrypoint>init0</uc0_Entrypoint>
<uc0_SwInterruptAddress />
<uc0_DriverDisabledAddress />
<uc0_DiagRoutineAddress />
<uc1_Entrypoint>init1</uc1_Entrypoint>
<uc1_SwInterruptAddress />
<uc1_DriverDisabledAddress />
<uc1_DiagRoutineAddress />
</Channel1>
<Channel2>
<uc0_Entrypoint>init0</uc0_Entrypoint>
<uc0_SwInterruptAddress />
<uc0_DriverDisabledAddress />
<uc0_DiagRoutineAddress />
<uc1_Entrypoint>init1</uc1_Entrypoint>
<uc1_SwInterruptAddress />
<uc1_DriverDisabledAddress />
<uc1_DiagRoutineAddress />
</Channel2>
</AddressLabels>

View File

@ -13,16 +13,19 @@
<RegisterFile areaName="Channel 2 Configuration Registers (C2PR)">Registers\ch2_config_reg.hex</RegisterFile>
<RegisterFile areaName="Diagnosis Configuration Registers (DCR)">Registers\diag_config_reg.hex</RegisterFile>
<RegisterFile areaName="Crossbar Configuration Registers (XCR)">Registers\io_config_reg.hex</RegisterFile>
<MicroCodeFile channel="1" type="source" date="133028365609622710">MicrocodeCh1\ch1.psc</MicroCodeFile>
<MicroCodeFile channel="2" type="source" date="133028364882509871">MicrocodeCh2\ch2.psc</MicroCodeFile>
<MicroCodeFile channel="1" type="binary" date="133028335142178693">bin\ch1.bin</MicroCodeFile>
<MicroCodeFile channel="1" type="source" date="133287442290484143">MicrocodeCh1\ch1.psc</MicroCodeFile>
<MicroCodeFile channel="2" type="source" date="133287442303036622">MicrocodeCh2\ch2.psc</MicroCodeFile>
<MicroCodeFile channel="1" type="binary" date="133287424468344753">bin\ch1.bin</MicroCodeFile>
<MicroCodeFile channel="2" type="binary" date="133028335144648651">bin\ch2.bin</MicroCodeFile>
<MicroCodeFile channel="1" type="hex" date="133028335142698602">bin\ch1.hex</MicroCodeFile>
<MicroCodeFile channel="1" type="hex" date="133287424469330378">bin\ch1.hex</MicroCodeFile>
<MicroCodeFile channel="2" type="hex" date="133028335145068598">bin\ch2.hex</MicroCodeFile>
<DPramFile channel="1">Registers\dram1.hex</DPramFile>
<DPramFile channel="2">Registers\dram2.hex</DPramFile>
<LabelFile>labels.xml</LabelFile>
<ActuatorFile>Actuator\inj1.xml</ActuatorFile>
<ActuatorFile>Actuator\inj2.xml</ActuatorFile>
<ActuatorFile>Actuator\inj3.xml</ActuatorFile>
<ActuatorFile>Actuator\inj4.xml</ActuatorFile>
<ActuatorFile>Actuator\dcdc_current.xml</ActuatorFile>
<ActuatorFile>Actuator\dcdc_voltage.xml</ActuatorFile>
<VoltageFile>Feedbacks\dcdc_voltage.xml</VoltageFile>
@ -34,9 +37,9 @@
<Clock>1 MHz</Clock>
</General>
<Windows>
<Structure x="292" y="767" xSize="392" ySize="482" state="Normal" visible="True" />
<Signals x="698" y="177" xSize="250" ySize="1083" state="Normal" visible="True" />
<Micro x="0" y="0" xSize="936" ySize="715" state="Normal" visible="True">
<Structure x="2516" y="1041" xSize="392" ySize="482" state="Normal" visible="True" />
<Signals x="715" y="467" xSize="250" ySize="1083" state="Normal" visible="True" />
<Micro x="12" y="12" xSize="1971" ySize="715" state="Normal" visible="True">
<Hex8ForLine>True</Hex8ForLine>
<SeparateCompiledFolder>True</SeparateCompiledFolder>
<DPram channel="1" addressFormat="Hex">
@ -361,11 +364,11 @@
<Reg>Hex</Reg>
</RegisterArea>
</Micro>
<Log x="156" y="156" xSize="931" ySize="663" state="Normal" visible="True" />
<Wave x="957" y="5" xSize="1567" ySize="805" state="Normal" visible="True" />
<Current x="1096" y="828" xSize="1436" ySize="464" state="Normal" visible="True" />
<Stimulus x="214" y="183" xSize="540" ySize="368" state="Normal" visible="False" />
<Voltage x="0" y="0" xSize="580" ySize="357" state="Normal" visible="False" />
<Actuator x="15" y="733" xSize="601" ySize="444" state="Normal" visible="True" />
<Log x="208" y="208" xSize="931" ySize="663" state="Normal" visible="True" />
<Wave x="1458" y="57" xSize="1567" ySize="1095" state="Normal" visible="True" />
<Current x="1034" y="1056" xSize="1436" ySize="464" state="Normal" visible="True" />
<Stimulus x="80" y="1202" xSize="540" ySize="368" state="Normal" visible="False" />
<Voltage x="684" y="1109" xSize="580" ySize="357" state="Normal" visible="False" />
<Actuator x="48" y="778" xSize="601" ySize="444" state="Normal" visible="True" />
</Windows>
</Project>

View File

@ -1,7 +1,7 @@
/*******************************************************************************
* Example Code
*
* Copyright(C) 2022 NXP Semiconductors
* Copyright(C) 2023 NXP Semiconductors
* NXP Semiconductors Confidential and Proprietary
*
* Software that is described herein is for illustrative purposes only
@ -103,7 +103,7 @@ unsigned short PT2001_main_config[29] =
unsigned short PT2001_ch1_config[19] =
{
0x0008, 0x0000, 0x0000, 0x0000, 0x0B13, 0x0000, 0x0000, 0x006C, 0x6B59, 0xC8A5,
0x0000, 0x002C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
0x0000, 0x0036, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};
// Data to be loaded into the CH2 register memory space

View File

@ -1,7 +1,7 @@
/*******************************************************************************
* Example Code
*
* Copyright(C) 2022 NXP Semiconductors
* Copyright(C) 2023 NXP Semiconductors
* NXP Semiconductors Confidential and Proprietary
*
* Software that is described herein is for illustrative purposes only

View File

@ -1,7 +1,7 @@
/*******************************************************************************
* Example Code
*
* Copyright(C) 2022 NXP Semiconductors
* Copyright(C) 2023 NXP Semiconductors
* NXP Semiconductors Confidential and Proprietary
*
* Software that is described herein is for illustrative purposes only