Type in the full discussion title or a part of it.
Discussion Title Created date
Function Call from ISR?
Does anybody see any reason I should not call a function from the ISR from a program stability standpoint? Here is what I'm doing: I have a mechanical gearbox in which I'm...
Wednesday, 17 March 2010 - 17:59
Changing Values of OCR0A for Phase Correct PWM
I have been looking through the data sheet for my ATMega 88PA and haven't been able to find any information on when OCR0A can be change. Do I need to stop the timer, change the...
Thursday, 11 March 2010 - 01:05
PWM stuck at 100% duty cycle
#include #include #include #include //Definitions #define Trigger (PINC...
Monday, 25 January 2010 - 18:19
Retaining value after a call
Here is the code: #include #include #include #include //Definitions #define Trigger (PINC...
Tuesday, 19 January 2010 - 15:49
Using Functions
#include #include #include #include //Definitions #define Trigger (PINC...
Thursday, 14 January 2010 - 18:24
Question about Macros
Is there a way to make ((PINC&_BV(PINC2)) into a macro? I tried #define ((PINC&_BV(PINC2)) Trigger; , however the compiler gives me c:6:9: error: macro names must be...
Thursday, 14 January 2010 - 14:08
100% Duty Cycle on PWM?
Using following code wouldn't I get 100% duty cycle on PWM? #include #include #include #include volatile bool TS; int main() { static bool TF,TRF1; volatile uint8_t value...
Monday, 28 December 2009 - 13:49
Starting and stopping Phase Correct PWM
How do I actually turn on PD6 when PWM is enabled(on ATMega88PA)? Once I have the WGM and COMM bits set to select the type of PWM and which pin it is enabled for, lets say I want...
Wednesday, 23 December 2009 - 14:29
How heavily optamized are the ATMega's?
Does anyone have a general idea of how heavily optimized the ATMega series are? I'm talking in regards to the compile and how dependent the hardware is on the compiler...
Wednesday, 18 November 2009 - 16:13
More a C question, passing variables
Lets say I have my main program, inside the main forever loop: while(1) //main loop {//Main loop------------------------------------ while( position...
Tuesday, 17 November 2009 - 15:24
Wait until finished then go into interrupt?
Is there a way in which I can run a segment of code or perhaps a function, finish that segment or function then go into the interrupt routine immediately after if the interrupt is...
Friday, 13 November 2009 - 16:16
Can I break out of an interrupt?
I have a ATMega88PA i'm using to control a gearbox, I have two sensors at the moment both of which are digital and use PCINT1. But I want to have the program run as fast as...
Monday, 2 November 2009 - 22:01

Pages