You setup the A/D, run the conversion, get the numbers out of ADRESH & L, scale them with a multiply instruction, offset them them with an add or subtract, then load them into the PWM registers.
Usually. If a linear relationship won't do it, you may have to write a big lookup table. If the whole thing needs to be a PID loop, that's even more fun. Start with the basic linear function, though.