Nowadays Atomic Force Microscopy is one of the most extended techniques performed in biological measurements. Due to the higher flexibility in respect to conventional equipments, a novel approach in this field is the use of a microrobot equipped with an AFM tool. In this paper it is presented an integrated controller for an AFM tool assembled in a 1 cm<sup>3</sup> wireless microrobot. The AFM tool is mounted on the tip of a rotational piezoelectric actuator arm. It consists on a XYZ positioning scanner, based in 4 piezoelectric stacked actuators, and an AFM piezoresistance probe. Two types of AFM working modes are implemented in the controller, i.e., nanoidentation and AFM scanning. Correction of the mismatch of the piezoactuators composing the arm is possible. A programmable PID control is included in the controller in order to get more flexibility in terms of scanning speed and resolution. An IrDA protocol is used to program the parameters of the AFM tool controller and the positioning of the robot in the working area. Then the values of the nanoindentation or of the scanning can be read through the IrDA interface without any other external action.
Due to the strong power and area restrictions, the controller has been implemented in specific logic in a 0.35um technology. The design has been done using functional specifications with high level tools and RTL synthesis. The AFM scanner can be positioned with a resolution of 10 nm and scan areas up to 1 μm<sup>2</sup> with an expected vertical resolution of 1nm.