An electronic circuit device, includes: internal terminals; a board on which wirings to the internal terminals are formed; an electronic component that is mounted on the board and is connected with the internal terminals; and an encapsulation resin with which the electronic component and the internal terminals are encapsulated. The coarsefine programming methodology is enhanced by using an efficient verification scheme that allows some non-volatile memory cells to be verified for the coarse programming process while other non-volatile memory cells are verified for the fine programming process. Subsequently, a purging recipe 1 specifying a purging process compatible to the film forming process is selected automatically, and the reaction vessel 2 is processed by the purging process specified by the purging recipe 1. The medical device detects aortic valve closure by processing a signal.