In my project's SAM7S.s file, if I use the uVision IDE editor's Configuration Wizard to set the values for the PLL's MUL & DIV parameters, I get the results I expected. The value I get for MCK using these settings allows me to set timers correctly, baud rate generators correctly, etc., and the generated value for the PMC_PLLR_Val equate appears to be correct for the values set via the Configuration Wizard. There are also equates for PMC_DIV and PMC_MUL in the SAM7S.s file. I expected to see these values change as I edited the MUL & DIV settings via the Configuration Wizard, but they don't appear to. Similarly, I thought that if I edited these values via the text editor, I would see those changes when I viewed them using the Configuration Wizard, but there doesn't seem to be any relationship between these values in the text editor and the Configuration Wizard. Can anyone tell me what the equates for PMC_MUL and PMC_DIV are for in the SAM7S.s file, and what the relationship is between them in the text file and the Configuration Wizard? As best as I can tell, the PMC_MUL and PMC_DIV equates in the SAM7S.s file serve no real or useful purpose. Thanks!
the PMC_MUL & PMC_DIV are bit mask definitions for the Power Management Controller which may or may not be used. They have nothing to do with the Configuration Wizard. PMC_MUL is used later in the assembly code (PMC_DIV not). In general not all the SFRs and their bit mask are used but are still declared for completeness or later usage. These definitions are not visible to the Config Wizard since there are chip constants and not configurable settings.