I have a hopefully "easier" bug - so just for the lunchbreak between cursing on to the 7segment bug
The input capture does not work in the newest 1.0.0 (R853), but in the old AVR implementation e.g. version 0.4.15.
An example simu file is attached; an example code is here:
The input capture does not work in the newest 1.0.0 (R853), but in the old AVR implementation e.g. version 0.4.15.
An example simu file is attached; an example code is here:
- Code:
#include <avr/io.h>
#include <avr/interrupt.h>
int main(){
TCCR1B = (1<<ICES1)| (1<<CS11);
TIMSK1 = (1<<ICIE1) ;
sei();
DDRC = 0xFF;
while(1) { PORTC ^= (1<<PORTC5); }
}
ISR(TIMER1_CAPT_vect) { PORTC ^= (1<<PORTC6); }
- Attachments
- InputCap1.zip
- You don't have permission to download attachments.
- (2 Kb) Downloaded 1 times