I am configuring a project so that it can operate on both MK60DN512VMD10, and as an alternative MK60DN512ZVMD10.
According to the 'About' in CodeWarrior I am using:
Processor Expert for MCU
Version 5.3.0
Build: b1221-0685
When I use the MK60DN512VMD10 cpu and configure an Init_ADC component type I am able to specify the Offset value, which when code generation is done produces the appropriate register setting:
Offset is present (and set to 4)
Generated code:
// from the comment block at the start of the file:
** Compare function : Result < CV1
** Offset : 4
** Voltage reference : Default pin pair
// then later in the Init function
/* ADC1_OFS: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,OFS=4 */
ADC1_OFS = (uint32_t)0x04UL;
However, when I switch to the MK60DN512ZVMD10 cpu the offset value is missing from the "Settings group":
'Z' cpu missing Offset
Unsurprisingly the generated code is then also missing the corresponding line from the comment block, and the actual write to the registers.
I have checked the reference manual for both CPUs and the register is present for both as far as I can tell.
Q1. Why is it missing - is this an error in the CPU definition that processor expert is using?
Q2. Are the CPU definitions in a form that can be updated? - I know some tools use xml files to control the editor fields; is there some way I can 'tell' Processor Expert that this register does exist for the 'Z' cpu?
Thanks!