Tried to paste the first 3 lines , and got "timsk1 was not declared in scope..."
also I assume "SET_PULSE_HIGH(OutPort, OutBit); " is a leftover from some other code..?
#include <stdint.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
volatile byte rpmcount;
void rpm_fun()
{
rpmcount++;
//Each rotation, this interrupt function is run
}
void setup()
{
Serial.begin(19200);
attachInterrupt(0, rpm_fun, FALLING);
TCCR1A = 0x00; // COM1A1=0, COM1A0=0 => Disconnect Pin OC1 from Timer/Counter 1 -- PWM11=0,PWM10=0 => PWM Operation disabled
TCCR1B = 0x02; // 16MHz clock with prescaler means TCNT1 increments every .5 uS (cs11 bit is set)
TIMSK1 = 0x00; // Timer1 interrupts off
}
void loop()
{
}