Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
+ Collaboration diagram for Device Pin Configuration:

Functions

volatile uint16_t sysGpio_Initialize (void)
 Resets the device input/output pins to digital inputs. More...
 

Detailed Description

When the device comes out of RESET, all general purpose inputs/outputs (GPIO) are configured as high-impedance inputs. Sample and hold (S&H) circuits of ADC inputs are active and digital functions are blocked. Depending on the application, this may or may not be desired. Hence, this routine is used to set a different default state at startup where GPIOs are high impedance inputs but all analog functions are disabled.

Function Documentation

◆ sysGpio_Initialize()

uint16_t sysGpio_Initialize ( void  )

Resets the device input/output pins to digital inputs.

Returns
unsigned integer (0=failure, 1=success)

When the device is coming out of RESET, all device pins are configured as inputs and all analog functions will be enabled. Enabled analog functions are a potential source for conflicts and are therefore turned off by default during device startup to allow all peripheral configuration drivers to start from a defined default state.

Definition at line 27 of file init_gpio.c.

+ Here is the caller graph for this function: