1. 你要會用8051的timer interrupt 2. 在isr (interrupt service routine)裡這樣寫 e = xd- x; e_sum += e; PI = ...
tw.knowledge.yahoo.com