Post Created date
Does not work after implementing 2 interrupts
ahhh i found my mistake , was clearing my interrupt flag the wrong way. now this has been solve. another problem arised regarding my debouncing algo above, whenever it jumps into...
Wednesday, 18 April 2007 - 11:54
Does not work after implementing 2 interrupts
i found my problem using hapsim and avr studio simulator #define TMR0START 0x00 //set it to define how long to probe input #define MAXCHECKS 10 void setupTimer0(void);...
Wednesday, 18 April 2007 - 10:59
Does not work after implementing 2 interrupts
yep thanks ! got it to work. i was wondering how can you generate theses dummy variables ? like i want to test the USART how can i generate a dummy signal interrupt for the RX...
Tuesday, 17 April 2007 - 16:50
Does not work after implementing 2 interrupts
hmm , i am currently trying AVR Studio, imported all my source files and makefiles in there it compiles but when i pressed "build and run" tonnes of errors popped out saying like...
Tuesday, 17 April 2007 - 16:15
Does not work after implementing 2 interrupts
ok ill take a look at AVR studio , cuz my code is quite long , not sure how to show u guys. thanks anyway !
Tuesday, 17 April 2007 - 15:37
Converting Integer to String using puts
what ive done was unsigned char *s unsigned int a = 1000; SIGNAL(SIG_USART_RECV) { itoa(1000,s,10); puts(s); } if this right ? as for the third argument for itoa .. im not...
Tuesday, 3 April 2007 - 06:39
Debouncing Push Buttons
is there any adaptive approach ? i thought of like 1.polling the switch to detect a change first 2. intialise a counter 3. poll the switch again - if there is a change , go...
Wednesday, 28 March 2007 - 13:31
Debouncing Push Buttons
coming back to using interrupts to determine the rising edge of the switchs. How much delay between edges should i use in order to determine whether the push of the button is a...
Wednesday, 28 March 2007 - 12:13
USART in Atmega48
i might have confused myself with using fdevopen when using the uart_putchar function in the manual. my intent was just to read the character which is already there. So does it...
Monday, 26 March 2007 - 15:48
USART in Atmega48
ok i've done some reading around. i've came up with this code but im not sure whether it will work cuz i am not sure about the arguments to use. i just wanna read the character...
Monday, 26 March 2007 - 15:00
Debouncing Push Buttons
thanks guys , ill have a look and try ! cheers
Tuesday, 20 March 2007 - 13:53