There was (is) a well written program by Ken Hewitt (21/3/96) for PIC16C71 gas turbine controller, sorry I don't have a link, suggest you search on his name.