partial pressure of a gas = total pressure x mole fraction
mole fraction of gas A = number of moles of gas A/total number of moles of gas
When a reaction is exothermic, if temperature increases Kp will decrease since the equilibrium shifts to the left (in endothermic direction) to oppose the change in temperature.