We report measurements of microwave (RF) generation in the centimeter band accomplished by irradiating a nonlinear KTiOPO4 (KTP) crystal with a home-made, infrared laser at 1064nm as a result of optical rectification (OR). The laser delivers pulse trains of duration up to 1μs. Each train consists of several high-intensity pulses at an adjustable repetition rate of approximately 4.6GHz. The duration of the generated RF pulses is determined by that of the pulse trains. We have investigated both microwave- and second harmonic (SHG) generation as a function of the laser intensity and of the orientation of the laser polarization with respect to the crystallographic axes of KTP.