@patrickgeens #nhs3152
I am working on ironing out a charge routine for supplementary capacitance. I have a couple of questions:
(1) You state: "You need to pre-charge these caps via the internal pad pull-up before switching to output mode, otherwise the discharged cap acts like a short on the internal supply and the chip will reset." Indeed, I have noticed this effective short. Why is this the case?
(2) Using the suggested charge routine gives an odd result:

Here, the controller is powered via VDDBAT (really a power supply). What's odd is that the pin / capacitor charge to a junction drop initially, rather than to the supplied voltage (2V). Any idea why that might be? As you can see, this is somewhat moot in the sense that it does jump to 2V when switched to output + high.

Unfortunately, this does not occur when powered with the RF field of a Sony RC-S380.
Here is the function call handling this:
void charge_cap(void){
Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_PIO0_3 , IOCON_FUNC_0 | IOCON_RMODE_PULLUP);
Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_PIO0_7 , IOCON_FUNC_0 | IOCON_RMODE_PULLUP);
Chip_GPIO_SetPinDIRInput(NSS_GPIO, 0, IOCON_PIO0_3);
Chip_GPIO_SetPinDIRInput(NSS_GPIO, 0, IOCON_PIO0_7);
Chip_Clock_System_BusyWait_ms(500); // charge 10 uF capacitor
Chip_GPIO_SetPinDIROutput(NSS_GPIO, 0, IOCON_PIO0_3);
Chip_GPIO_SetPinDIROutput(NSS_GPIO, 0, IOCON_PIO0_7);
Chip_GPIO_SetPinOutHigh(NSS_GPIO, 0, IOCON_PIO0_3);
Chip_GPIO_SetPinOutHigh(NSS_GPIO, 0, IOCON_PIO0_7);
}
A couple of other notes:
- Both PIO0_3 and PIO0_7 are connected to one external capacitance.
- The capacitor is intended to power a small number of other components.
Do you have a suggestion for how to adjust the charge routine to work with RF power?
Thanks!