Hello Kevin,
Firstly, you appear to be attempting to enter Stop2 mode, rather than Stop3 mode. This would require different wakeup handling, with the wakeup source limited to IRQ/Reset pin and the RTI module. The KBI module is disabled. However, this may not be the cause of your symptoms.
CustomSarge wrote:
Problem: power never <8.5-9.1mA in Stop. Tried 2 QD2s 1 QD4: same situ. Using default internal FEI clock, other clocking methods yield looping resets. Weird part: attached USB Multilink has power@ 8.5-9.1, target as standalone draws 14-16mA! This is by pulling USB off live, It won't run standalone from power cycle.
The FBI modes are likely of little use for your application, giving a bus frequency in the region of 16kHz. An attempt ot use one of these modes could result in COP resets, if using the 1kHz source for the COP. For the 'QD4, this leaves the FEI mode only.
You will need to elaborate on what you mean. It is probable that you are not remaining in stop mode, perhaps due to an uncleared interrupt flag. Maybe you could provide code showing how you enter stop mode (relative to the rest of the program), and also the stop mode exit process you are using. Have you programmed the Reset and KBI vectors?
For stop3 mode only, the MCU will continue execution with the instruction immediately following the STOP instruction, after it has finished processing the KBI interrupt.
If your project requires an accurate bus frequency, you will need a calibrated trim value for each MCU. With a POR trim setting of $80, the bus frequency will have unit-to-unit variation of about +/-25 percent. Your fixed trim value would be subject to the same variation. A non-volatile trim setting is programmed to a flash register, as part of the device programming procedure. This value then needs to be loaded to ICSTRM register during MCU initialisation to achieve +/-2 percent calibration over voltage and temperature.
Regards,
Mac