This site has a pdf with a neat method to generate timings for a linear ramp. It is quick enough to do in real time in a timer-comparator ISR on a PIC.
formatting link
Dave Austin
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.