A device for treating liquid medium has an ultrasound emitter located relative to a compartment of a container holding a liquid medium and a microbubble emitter located relative to the compartment. On this buffer layer there is grown a main semiconductor region having nitride semiconductor layers for providing a high-electron-mobility transistor or the like. To facilitate writing, the cell is adapted carry at least a portion of a write pulse.