For an MCU: find a development board with schematics available, and use that as a reference/starting point.