main() { set_tris_x(0x00); // neu mun tất cả các chân của port này là chân xuất (set_tris_x(0xFF); // hoặc nhập) PORTx = 0 ; xuất mức 0 while(1); }