This is more about mathematics and electronics, but I'd like to use Mathematica to generate the graphs I need. It's probably something that others might also find useful.

Given: a voltage source Vo with an output of 0V - 5V at a frequency Fclk. One end of a resistor R is connected to Vo, the other end to a capacitor C, the second terminal of C being connected to 0V.

Required: an equation of the form v = f(t) that gives the voltage across the capacitor at time t.

Working: I've only ever solved for a steady voltage using some variant of the standard equation dv/dt = i/C. The standard text-book integration is over the interval (inf - t] and does not address varying voltages. My maths isn't good enough to know where to start with a solution, and I'd be most grateful for any pointers to info or suggestions for a solution.