We consider a microstructure model for a financial asset, allowing for price discreteness and for a diffusive behavior at large sampling scale. This model, introduced by Delattre and Jacod, consists in the observation at the high frequency n, with round-off error αn, of a diffusion on a finite interval. We give from this sample estimators for different forms of the integrated volatility of the asset. Our method is based on variational properties of the process associated with wavelet techniques. We prove that the accuracy of our estimation procedures is αn∨n−1/2. Using compensated estimators, limit theorems are obtained.