Do a web search for Bresenham's algorithm. (I have only got one in C) Bresenham was responsible for integer line algorithims for plotters. His techniques were then used to produce integer algorithims for circles. Theses algorithms are designed for x-y plotters and use no floating point calculations. Ravi Pailoor wrote: > > Hi PICkers, > > I have a PIC controlling 2 stepper motors connected to a light source. > > I need to move the light source in a circle and a spiral. > > Does anyone have PIC / 8031 based algorithm to draw circles ? > > Thanks > > Pailoor > > ================================================ > For Embedded Controls Solutions and Custom Designs > ------------------------------------------------------------------------ > > CHIP TECHNOLOGIES - Member, Microchip Consultant Program > Bangalore > INDIA > Email : chiptech@vsnl.com > Webpage : http://business.vsnl.com/chiptech ( updated 16th Feb 1999 ) > ================================================ -- Peter Williamson | Phone: +61 15 898934 Waybeat Pty Ltd | Email: peterw@waybeat.com.au