generating 23KHz square wave 50% duty cycle

is it possible ? how can i get it ?

thanks

I think tone(pin, 23000) might work.

http://arduino.cc/en/Reference/Tone