Other Parts Discussed in Thread: CC2538
Hi All,
I have a simple design using a CC2538 running ZStack Energy 1.1.0. Im using a coin-battery, so power optimizing is highest priority.
It uses port C with 8 normally-high inputs with switches to ground.
On start up, I have set each pin of port C using these 3 commands in this order:
IOCPadConfigSet( GPIO_C_BASE, GPIO_PIN_x, IOC_OVERRIDE_DIS);
GPIODirModeSet( ... ),
GPIOPinTypeGPIOInput(...).
Is this the best way to configure the IO, in terms of order, and lowest current usage?
Also, how should I configure all other unused GPIO? The CC2538 power management document suggests 2 options: general purpose inputs with pullups on, or just general purpose output. Which one is best?
And, what should I do with the JTag pins? Is it ok to leave them floating? Will this affect the overall current usage in any way?
Thanks for any suggestions!