Pre-Processor
specified.
Use only one of the next three options:
file="filename.txt" - The file x is used to read the initial serial number from,
and this file is updated by the ICD programmer. It is assumed this is a one
line file with the serial number. The programmer will increment the serial
number.
listfile="filename.txt" - The file x is used to read the initial serial number
from, and this file is updated by the ICD programmer. It is assumed this is a
file one serial number per line. The programmer will read the first line then
delete that line from the file.
next="x" - The serial number X is used for the first load, then the hex file is
updated to increment x by one.
Other optional parameters:
prompt="text" - If specified the user will be prompted for a serial number on
each load. If used with one of the above three options then the default value
the user may use is picked according to the above rules.
log=xxx - A file may optionally be specified to keep a log of the date, time,
hex file name and serial number each time the part is programmed. If no
id=xxx is specified then this may be used as a simple log of all loads of the
hex file.
Purpose:
Examples:
Assists in making serial numbers easier to implement when working with CCS
ICD units. Comments are inserted into the hex file that the ICD software
interprets.
//Prompt user for serial number to be placed
//at address of serialNumA
//Default serial number = 200int8int8 const serialNumA=100;
#serialize(id=serialNumA,next="200",prompt="Enter the serial
number")
//Adds serial number log in seriallog.txt
#serialize(id=serialNumA,next="200",prompt="Enter the serial
number", log="seriallog.txt")
//Retrieves serial number from serials.txt
#serialize(id=serialNumA,listfile="serials.txt")
//Place serial number at EEPROM address 0, reserving 1 byte
#serialize(dataee=0,binary=1,next="45",prompt="Put in Serial
number")
//Place string serial number at EEPROM address 0, reserving 2
bytes
#serialize(dataee=0, string=2,next="AB",prompt="Put in Serial
number")
117
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY