You can install a 32-bit OS on a 64-bit machine. You will need an XP license, and there may not be XP drivers for that machine. What version of 7 do you have - home, pro, iridium-plated server? Some versions support a free XP virtual machine, which would be your best bet.
A warning - XP and 7 are past end of support, and are significant security risks.