Post Created date
How can I stop ISR(TIMER0_OVF_vect) when button is pressed ?
I see, I'll find it on ATMEGA128 datasheet, thanks for the advice, I wanna set the clock and date on DS1307 so it's adjustable by button. What should I do to reduce the task...
Tuesday, 11 June 2013 - 13:52
How can I stop ISR(TIMER0_OVF_vect) when button is pressed ?
So it'll be ISR(TIMER0_OVF_vect) { display_time(); if (button_is_pressed()==1) { lcd_cmd(0x0F);//view cursor _delay_ms(250); } } it works when I push the...
Tuesday, 11 June 2013 - 13:11
How can I stop ISR(TIMER0_OVF_vect) when button is pressed ?
where should i put the logic for stopping?
Tuesday, 11 June 2013 - 04:44
How can I transmit this variable to USART ?
Kartman wrote:You need to terminate the string in num2str. Otherwise how do you know where the end of string is? Add sdigit[2]=0; There is a function called itoa() that does the...
Monday, 10 June 2013 - 23:12
How can I transmit this variable to USART ?
I haven't tested yet if it's above 99, since it's between 0-23 and 0-59 Thanks
Friday, 7 June 2013 - 22:47
How can I transmit this variable to USART ?
I declared like this : char sdigit[3]={'0','0','\0'};
Friday, 7 June 2013 - 12:57
How can I transmit this variable to USART ?
how can I use itoa()? usart_transmit(itoa(ds1307_addr[2]))); ? // Implementing integer value from 00 to 99 char *num2str(char number) { unsigned char digit; digit = '0...
Friday, 7 June 2013 - 12:04
Multitasking with timer0 on atmega128?
It's working all right now, thanks again, so what's the different between multitasking and Operating system, isn't operating system doing the same multitask as well but may be...
Thursday, 6 June 2013 - 23:08
Multitasking with timer0 on atmega128?
Oh mate, it is because of ISR(TIMER0_COMP_vect) I suspected since before but I'm not sure because I'm still learning here..... Thanks a lot lot Clawson..... Cheers from Perth
Thursday, 6 June 2013 - 23:01
Multitasking with timer0 on atmega128?
this is the complete code : do I miss something else ? Have a good night and thanks in advance /* * Multi_taskV1_0.c * * Created: 6/06/2013 10:44:00 AM * Author: Antonius...
Thursday, 6 June 2013 - 14:38
Multitasking with timer0 on atmega128?
I'm following the article but can not understand completely, trying to understand....while seeing it running in the code...learning by doing it...I guess..
Thursday, 6 June 2013 - 13:33
Multitasking with timer0 on atmega128?
I can see TCNT0 and TCCR0 are working but I didn't see any response on TIMSK, OCIE0 Is my coding already right ? timer0_init(); MCUCR = 0x00; EICRA = 0x00; //extended ext...
Thursday, 6 June 2013 - 13:31

Pages