add setCH,clearCH ,wait function