Type in the full discussion title or a part of it.
Discussion Title Created date
More ISR Questions
#include #include #include char passes,TF,cycles; volatile char GPLF,TS; int main() { DDRD |= 0x40; //set PD6 as output (motor drive) DDRB |= 0x02; //set PB1 as output...
Friday, 30 October 2009 - 13:42
ADC not switching channels?
#include #include #include char volatile passes,GPLF,TF,cycles,TCharge; int main() { char TS; //TF=tappet flag, TS=tappet sensor, GPL=gearbox position loop flag DDRD |=...
Thursday, 22 October 2009 - 03:10
Passing values between main loop an interrupt
#include #include #include int cycles,TF,TS,cycletobbCMP,GPLF,Tcharge; //TF=tappet flag, TS=tappet sensor, GPL=gearbox position loop flag int main() { DDRD |= 0x40; //set...
Wednesday, 21 October 2009 - 02:37
Interrupt not executing all code?
#include #include #include int main(void) { DDRD |= 0x40; //set PD6 as output (BLUE) DDRB |= 0x02; //set PB1 as output (GREEN) PORTD &= ~0x40; //turns off PD6(motor...
Thursday, 15 October 2009 - 16:07
ISR on analog too or only digital?
Is there a way to use the pin change interrupt service request on and analog signal from the ADC or does the ISR only work on a digital signal? If you can, what needs to be done...
Thursday, 15 October 2009 - 12:46
Pin Change Interrupt Tutorial?
Does anyone know if there is a tutorial on interrupts for Pin Change? I have a controller I designed that has several photo sensors and magnetic sensors that control two outputs....
Friday, 25 September 2009 - 18:17
ATMega88PA header files?
I am unsure of what header file I need to include to use the IO as the normal avr/io.h does not work, it gives me an unknown type error as the 88PA is not in the MCU list of micro...
Saturday, 11 July 2009 - 11:29
ATMega88PA 32 MLF ISP hookup question
I am wondering if the pin 2 on the Dragon needs to be hooked up to anything or if I leave it as no connection on the board I am designing. The board will have a ATMega88PA 32 MLF...
Wednesday, 3 June 2009 - 00:10
Incrementing a value after each time a button is pushed
//TRIGGER----------------------------------------------------------------------------------------- ADMUX &= ~(1 << MUX0); //Selects PIN 1 (TRIGGER) ADMUX &= ~(1 <...
Monday, 4 May 2009 - 15:11
Turning Led's On and Off with Tiny85
#include //Sets up variable for storing bits from inputs and outputs int TCharge,FAssist,BBDetect; //Begins Main Program int main(void) { DDRB = 0b00000011...
Sunday, 22 March 2009 - 00:24
Setting values in integers
while (1) //loop while 1 { ADCSRA |= (1 <<ADSC); //Starts ADC conversion for single ended mode while (ADCSRA & (1 << ADSC) ); if(ADCH > 140...
Friday, 20 March 2009 - 21:05
+ Voltage on inputs
if(ADCH > 255) //If ADCH > (64x10mv = 2.55v) then Port Bit 0 and 2 are on. { PORTB |= (1 << 0); // Turn on Port Bit 0 PORTB &= ~(1 << 1); //...
Wednesday, 4 March 2009 - 02:48

Pages