How to genarate 25khz square wave at 70% duty cycle using arduino ?

Please give me the coding of the same.....and one more thing.....can i use totempole config of transistors at pwm output to use it as mosfet gate driver

http://playground.arduino.cc/Code/PwmFrequency

the arduino playground code says you cant use delay n other functions...well im doing a project on mppt based solar charge controller using boost converter and that requires delay function to check deviation in voltage of pv panel.....what can i do now??

You can modify this example to your needs.

#include <TimerOne.h>
//UNO only

void setup()
{
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);

Timer1.initialize(100);  // Frequency, 100us = 10khz
Timer1.pwm(9,512);       // 50% DC on pin 9

//Timer1.pwm(10,255);    // 25% DC on pin 10

// D.C. 
// 10KHz
// You can use 2 to 1023 
// 0 & 1 gives a constant LOW 
// 1024 gives a constant HIGH
// 2 gives ~125ns HIGH pulses
// 1023 gives ~125ns low pulses
// 512 gives 50us
}

void loop()
{
}

Ansuman1994: the arduino playground code says you cant use delay n other functions...well im doing a project on mppt based solar charge controller using boost converter and that requires delay function to check deviation in voltage of pv panel.....what can i do now??

Do you have to do 25KHz PWM and delay at the same time? What needs that PWM?

If it's always 70% duty cycle you could use a 555 circuit to generate that.