The codes compatibility between Arduino 101 and UNO on Timer control

Recently I'm crazy with an interesting codes. It's about plot a heartbeat waveform with Arduino and processing. It applied a set timer control method to perform interrupts. The following code is available in UNO:

void interruptSetup(){
// Initializes Timer2 to throw an interrupt every 2mS.
TCCR2A = 0x02; // DISABLE PWM ON DIGITAL PINS 3 AND 11, AND GO INTO CTC MODE
TCCR2B = 0x06; // DON'T FORCE COMPARE, 256 PRESCALER
OCR2A = 0X7C; // SET THE TOP OF THE COUNT TO 124 FOR 500Hz SAMPLE RATE
TIMSK2 = 0x02; // ENABLE INTERRUPT ON MATCH BETWEEN TIMER2 AND OCR2A
sei(); // MAKE SURE GLOBAL INTERRUPTS ARE ENABLED
}

Unfortunately, I use the same codes in Arduino 101 it doesn't work. So I'm wondering what method is specified to perform a similar function in Arduino 101?

Cheers...