我還寫過 IO port 模你 RS232 (UART) .. 先使用 edge trig 判斷 start 再使用 timer int + polling 判斷 bit 或是 bonce_noise .. 再一個個讀 ..因為那時 學校 project 是 兩個 rs232 port .