A digital swappable endoscope includes a pipe end and a host end. The pipe end includes a lens module, an image sensor, and a sensor processor. The lens module is configured to capture a light source. The sensor processor is connected to the image sensor and transforms the light source into a digital sign. The host end includes a programmable logic device and a CPU. The programmable logic device is connected to the pipe end and configured to receive the digital signal. The CPU is connected to the programmable logic device. The programmable logic device is configured to determine the signal format of the digital signal. The programmable logic device carries out the following step after determining:A. if the signal format is conformed to specification, the digital signal is transmitted to the CPU andB. if the signal format is not conformed to specification, a simulation signal is transmitted to the CPU.一種數位可抽換內視鏡,包括一管端及一主機端。管端包括一攝像鏡頭模組、一影像感測器及一感測器處理器。攝像鏡頭模組適於擷取一光源。影像感測器與攝像鏡頭模組連接並感應光源。感測器處理器與影像感測器連接,並該光源轉換成一數位訊號。主機端包括一可程式邏輯裝置及一中央處理器。可程式邏輯裝置與管端連接,並接收數位訊號。中央處理器與可程式邏輯裝置連接。可程式邏輯裝置可判斷數位訊號之訊號格式,判斷後進行以下步驟:A. 訊號格式符合規格,將數位訊號傳送到中央處理器;及B. 訊號規格不符合規格,傳送一模擬訊號到中央處理器。10‧‧‧光源200‧‧‧數位可抽換內視鏡210‧‧‧管端211‧‧‧鏡頭模組212‧‧‧影像感測器213‧‧‧感測器處理器214‧‧‧導線215、221‧‧‧連接器220‧‧‧主機端222‧‧‧可程式邏輯裝置223‧‧‧影像處理器224‧‧‧中央處理器225‧‧‧顯示裝置226‧‧‧儲存裝置