-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first PT2000 commit, includes the dev studio project, and a loading c…
…ode which was a slightly modified pt2001/mc33816 with some nuances. microcode changed to signal dc-dc with flag1 instead of flag0, which we use a different status signal. SetTimings is commented out because I haven't used TS to upload the values, and thus persistence is NOT tested.
- Loading branch information
Showing
53 changed files
with
5,701 additions
and
593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
/******************************************************************************* | ||
* Example Code | ||
* | ||
* Copyright(C) 2025 NXP Semiconductors | ||
* NXP Semiconductors Confidential and Proprietary | ||
* | ||
* Software that is described herein is for illustrative purposes only | ||
* which provides customers with programming information regarding the | ||
* NXP products. This software is supplied "AS IS" without any warranties | ||
* of any kind, and NXP Semiconductors and its licensor disclaim any and | ||
* all warranties, express or implied, including all implied warranties of | ||
* merchantability, fitness for a particular purpose and non-infringement of | ||
* intellectual property rights. NXP Semiconductors assumes no responsibility | ||
* or liability for the use of the software, conveys no license or rights | ||
* under any patent, copyright, mask work right, or any other intellectual | ||
* property rights in or to any products. NXP Semiconductors reserves the | ||
* right to make changes in the software without notification. NXP | ||
* Semiconductors also makes no representation or warranty that such | ||
* application will be suitable for the specified use without further testing | ||
* or modification. | ||
* | ||
* IN NO EVENT WILL NXP SEMICONDUCTORS BE LIABLE, WHETHER IN CONTRACT, | ||
* TORT, OR OTHERWISE, FOR ANY INCIDENTAL, SPECIAL, INDIRECT, CONSEQUENTIAL | ||
* OR PUNITIVE DAMAGES, INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR ANY | ||
* LOSS OF USE, LOSS OF TIME, INCONVENIENCE, COMMERCIAL LOSS, OR LOST | ||
* PROFITS, SAVINGS, OR REVENUES, TO THE FULL EXTENT SUCH MAY BE DISCLAIMED | ||
* BY LAW. NXP SEMICONDUCTOR’S TOTAL LIABILITY FOR ALL COSTS, DAMAGES, | ||
* CLAIMS, OR LOSSES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE IS LIMITED TO THE AGGREGATE AMOUNT PAID BY YOU TO NXP SEMICONDUCTORS | ||
* IN CONNECTION WITH THE SOFTWARE TO WHICH LOSSES OR DAMAGES ARE CLAIMED. | ||
* | ||
* Permission to use, copy, modify, and distribute this software and its | ||
* documentation is hereby granted, under NXP Semiconductors' and its | ||
* licensor's relevant copyrights in the software, without fee, provided | ||
* that it is used in conjunction with NXP Semiconductors devices. This | ||
* copyright, permission, and disclaimer notice must appear in all copies | ||
* of this code. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// This file contains data arrays that are used to load the code RAM, data RAM | ||
// and registers on the PT2000. | ||
//============================================================================== | ||
|
||
// ECU: IDE Project | ||
// Project: rusefi | ||
|
||
#include "PT2000_LoadData.h" | ||
|
||
// Data to be loaded into the Code RAM 1 memory space | ||
unsigned short PT2000_code_RAM1[116] = | ||
{ | ||
0x3645, 0xB475, 0x5135, 0x3159, 0x200A, 0x860B, 0x10C4, 0x2F0A, 0x2958, 0x1E87, | ||
0xC964, 0xD52D, 0xB5C3, 0xDCB5, 0x39F9, 0x76F7, 0x2304, 0x84A7, 0x4729, 0xF6DC, | ||
0x9E2E, 0x4F10, 0x8BE3, 0x9157, 0x9B94, 0xC8BD, 0x8C8C, 0x5B8E, 0x9338, 0x8214, | ||
0x9D8B, 0x8D95, 0x71D3, 0xF684, 0x2A29, 0xF503, 0xD61A, 0xC3EB, 0x66FF, 0x84DA, | ||
0x4D1D, 0x4B20, 0x5A7B, 0x5CB6, 0x3828, 0x75A0, 0x36EC, 0x8097, 0xFED6, 0x8AD2, | ||
0x96F2, 0xACBE, 0x1F95, 0xA0DC, 0x27BD, 0x9F2C, 0x18BC, 0x7ED1, 0x1877, 0xF4AE, | ||
0x8B74, 0x0648, 0xF114, 0x6554, 0xCE5F, 0xAE7D, 0x3D7A, 0x9067, 0x3987, 0x8D21, | ||
0x81BE, 0x4FAC, 0x54EE, 0xFBD0, 0xB38C, 0x16EB, 0x4E72, 0x747E, 0xCC43, 0x191C, | ||
0xA60F, 0x0B69, 0x75B2, 0xD393, 0x1205, 0x44A4, 0xFF55, 0xC8C4, 0x9C8F, 0x4CBC, | ||
0xA329, 0x0877, 0x3657, 0x3AEB, 0xEFA1, 0xFA4C, 0x213C, 0xD0D1, 0xCDC9, 0x1405, | ||
0x18FB, 0xCF49, 0x401A, 0xD5BC, 0x605C, 0x6A2F, 0xAB01, 0x1676, 0x2C83, 0x442D, | ||
0x3915, 0x08EF, 0x4705, 0x883C, 0xAF0B, 0x8FCD | ||
}; | ||
|
||
// Data to be loaded into the Code RAM 2 memory space | ||
unsigned short PT2000_code_RAM2[62] = | ||
{ | ||
0x3643, 0xB476, 0x5135, 0x3159, 0x200A, 0x840B, 0x12C4, 0x2F0A, 0x3868, 0x1E87, | ||
0xD874, 0xD52D, 0xB5DB, 0xDCB5, 0x39F9, 0x76F7, 0x2304, 0x84A7, 0x4729, 0xF6DC, | ||
0x9E2E, 0x4F10, 0x8BE3, 0x9157, 0x9B94, 0xC8BD, 0x8C8C, 0x5B8E, 0x9338, 0x820C, | ||
0x9D8B, 0x8D95, 0x71D3, 0xF684, 0x2A29, 0xF503, 0xD61A, 0xC3EB, 0x66FF, 0x84DA, | ||
0x4D1D, 0x4B20, 0x5A7B, 0x5CB6, 0x3828, 0x75A0, 0x36F4, 0x8097, 0xFED6, 0x8AD2, | ||
0x96F2, 0xACBE, 0x1F95, 0xA0DC, 0x27BD, 0x9F2C, 0x18BC, 0x7ED1, 0x1465, 0xF8D0, | ||
0x33FB, 0xB9A9 | ||
}; | ||
|
||
// Data to be loaded into the Code RAM 3 memory space | ||
unsigned short PT2000_code_RAM3[43] = | ||
{ | ||
0x3647, 0xB47F, 0x51B1, 0x3159, 0x200A, 0x852A, 0x3D25, 0x8D10, 0x8606, 0xB456, | ||
0x8F79, 0xCE44, 0x00C2, 0x58C3, 0x6595, 0xE89E, 0x2B45, 0x1211, 0xB860, 0xF7F6, | ||
0xFC33, 0x4F0C, 0x8A62, 0x9CAF, 0x9A45, 0x4333, 0x8D09, 0xEC00, 0x41DE, 0x3652, | ||
0x99EA, 0x8345, 0x759D, 0x4297, 0xD69B, 0xF515, 0x639E, 0xC3AC, 0x237F, 0x8500, | ||
0x4C9E, 0x3B9B, 0x4139 | ||
}; | ||
|
||
// Data to be loaded into the Data RAM memory space | ||
unsigned short PT2000_data_RAM[192] = | ||
{ | ||
0x008D, 0x006D, 0x003A, 0x003C, 0x1068, 0x003C, 0x0168, 0xEA60, 0x0960, 0x0258, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x008D, 0x006D, 0x003A, 0x003C, 0x1068, 0x003C, | ||
0x0168, 0xEA60, 0x0960, 0x0258, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00C1, 0x00BF, | ||
0x0040, 0x001D, 0x0000, 0x0046, 0x0037, 0x003C, 0xEA60, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000 | ||
}; | ||
|
||
// Data to be loaded into the Main register memory space | ||
unsigned short PT2000_main_config[32] = | ||
{ | ||
0x0003, 0x0000, 0x0008, 0xE81F, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000, 0x001D, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0xBF3F, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000 | ||
}; | ||
|
||
// Data to be loaded into the CH1 register memory space | ||
unsigned short PT2000_ch1_config[20] = | ||
{ | ||
0x0000, 0x0025, 0x0014, 0x0C03, 0x0000, 0x0001, 0x0001, 0x0074, 0x3B52, 0xA28B, | ||
0x0000, 0x003A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 | ||
|
||
}; | ||
|
||
// Data to be loaded into the CH2 register memory space | ||
unsigned short PT2000_ch2_config[20] = | ||
{ | ||
0x0000, 0x000C, 0x0070, 0x0030, 0x0000, 0x0002, 0x0002, 0x003E, 0x9F7E, 0x4EEC, | ||
0x0000, 0x003A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0010, 0x0000 | ||
|
||
}; | ||
|
||
// Data to be loaded into the CH3 register memory space | ||
unsigned short PT2000_ch3_config[20] = | ||
{ | ||
0x0000, 0x0003, 0x000C, 0x0080, 0x0000, 0x0000, 0x0000, 0x002B, 0x6F0D, 0x3DFF, | ||
0x0000, 0x0018, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0004, 0x0000 | ||
|
||
}; | ||
|
||
// Data to be loaded into the IO register memory space | ||
unsigned short PT2000_io_config[73] = | ||
{ | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0303, 0x0C0C, 0x3030, 0x0000, 0x8040, 0x4000, 0x0201, 0x0040, | ||
0x3004, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0555, | ||
0x0555, 0x0050, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0707, 0x0707, | ||
0x0707, 0x0707, 0x0707, 0x00CD, 0x0020, 0x0000, 0x0000, 0x0017, 0x0016, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0003, | ||
0x0003, 0x000C, 0x000C, 0x0030, 0x0030, 0x0080, 0x0000, 0x0028, 0x0028, 0x0028, | ||
0x8110, 0x23C7, 0x0100 | ||
}; | ||
|
||
// Data to be loaded into the Diag register memory space | ||
unsigned short PT2000_diag_config[64] = | ||
{ | ||
0x0000, 0x0000, 0x003E, 0x0000, 0x0000, 0x003E, 0x0000, 0x0000, 0x003E, 0x0000, | ||
0x0000, 0x003E, 0x0000, 0x0000, 0x003E, 0x0000, 0x0000, 0x003E, 0x0000, 0x0000, | ||
0x003E, 0x0000, 0x0000, 0x003E, 0x0000, 0x0000, 0x00FE, 0x0000, 0x0000, 0x00FE, | ||
0x0000, 0x0000, 0x00FE, 0x0000, 0x0000, 0x00FE, 0x0000, 0x0000, 0x00FE, 0x0000, | ||
0x0000, 0x00FE, 0x0000, 0x0000, 0x00FE, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | ||
0x0000, 0x0000, 0x0000, 0x0000 | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/******************************************************************************* | ||
* Example Code | ||
* | ||
* Copyright(C) 2025 NXP Semiconductors | ||
* NXP Semiconductors Confidential and Proprietary | ||
* | ||
* Software that is described herein is for illustrative purposes only | ||
* which provides customers with programming information regarding the | ||
* NXP products. This software is supplied "AS IS" without any warranties | ||
* of any kind, and NXP Semiconductors and its licensor disclaim any and | ||
* all warranties, express or implied, including all implied warranties of | ||
* merchantability, fitness for a particular purpose and non-infringement of | ||
* intellectual property rights. NXP Semiconductors assumes no responsibility | ||
* or liability for the use of the software, conveys no license or rights | ||
* under any patent, copyright, mask work right, or any other intellectual | ||
* property rights in or to any products. NXP Semiconductors reserves the | ||
* right to make changes in the software without notification. NXP | ||
* Semiconductors also makes no representation or warranty that such | ||
* application will be suitable for the specified use without further testing | ||
* or modification. | ||
* | ||
* IN NO EVENT WILL NXP SEMICONDUCTORS BE LIABLE, WHETHER IN CONTRACT, | ||
* TORT, OR OTHERWISE, FOR ANY INCIDENTAL, SPECIAL, INDIRECT, CONSEQUENTIAL | ||
* OR PUNITIVE DAMAGES, INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR ANY | ||
* LOSS OF USE, LOSS OF TIME, INCONVENIENCE, COMMERCIAL LOSS, OR LOST | ||
* PROFITS, SAVINGS, OR REVENUES, TO THE FULL EXTENT SUCH MAY BE DISCLAIMED | ||
* BY LAW. NXP SEMICONDUCTOR’S TOTAL LIABILITY FOR ALL COSTS, DAMAGES, | ||
* CLAIMS, OR LOSSES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE IS LIMITED TO THE AGGREGATE AMOUNT PAID BY YOU TO NXP SEMICONDUCTORS | ||
* IN CONNECTION WITH THE SOFTWARE TO WHICH LOSSES OR DAMAGES ARE CLAIMED. | ||
* | ||
* Permission to use, copy, modify, and distribute this software and its | ||
* documentation is hereby granted, under NXP Semiconductors' and its | ||
* licensor's relevant copyrights in the software, without fee, provided | ||
* that it is used in conjunction with NXP Semiconductors devices. This | ||
* copyright, permission, and disclaimer notice must appear in all copies | ||
* of this code. | ||
*******************************************************************************/ | ||
|
||
//============================================================================== | ||
// This file contains data array declarations for the code RAM, data RAM and | ||
// register arrays for the PT2000. | ||
//============================================================================== | ||
|
||
// ECU: IDE Project | ||
// Project: rusefi | ||
|
||
#ifndef PT2000_DATA_H_ | ||
#define PT2000_DATA_H_ | ||
|
||
extern unsigned short PT2000_code_RAM1[116]; // CODE RAM CH 1 | ||
extern unsigned short PT2000_code_RAM2[62]; // CODE RAM CH 2 | ||
extern unsigned short PT2000_code_RAM3[43]; // CODE RAM CH 3 | ||
extern unsigned short PT2000_data_RAM[192]; // DATA RAM | ||
extern unsigned short PT2000_main_config[32]; // main configurations | ||
extern unsigned short PT2000_ch1_config[20]; // CH 1 configurations | ||
extern unsigned short PT2000_ch2_config[20]; // CH 2 configurations | ||
extern unsigned short PT2000_ch3_config[20]; // CH 3 configurations | ||
extern unsigned short PT2000_io_config[73]; // IO configurations | ||
extern unsigned short PT2000_diag_config[64]; // diag configurations | ||
|
||
#endif /* PT2000_DATA_H_ */ |
Oops, something went wrong.