belax
Member level 2
avr studio debug usart
Sorry foy my english, i am from Russia,Moscow-Zelenograd
I have ATTiny2313 (on 16Mhz).
I set registers to use USART as receiver on 250000 b/s and wait (in loop) when RXC bit will be set in UCSRA register.
Then i go to the window "stimuli and logging" and set there a stimuli on PORTD.
Stimuli file has the following easy content:
000000000:00
000000002:01
000000150:00
000001450:01
According this file after 150+(1start+8data+1stop)*64 cycles my controller should set RXC bit and FE bit (because zero stop bit was ) in UCSRA.
But my AVR Studio duesn't wont to do it.
My question: How can i debug USART (in Recv mode) with AVR Studio in program mode (don't use in-circuit debugger)?
Thanks.
Sorry foy my english, i am from Russia,Moscow-Zelenograd
I have ATTiny2313 (on 16Mhz).
I set registers to use USART as receiver on 250000 b/s and wait (in loop) when RXC bit will be set in UCSRA register.
Then i go to the window "stimuli and logging" and set there a stimuli on PORTD.
Stimuli file has the following easy content:
000000000:00
000000002:01
000000150:00
000001450:01
According this file after 150+(1start+8data+1stop)*64 cycles my controller should set RXC bit and FE bit (because zero stop bit was ) in UCSRA.
But my AVR Studio duesn't wont to do it.
My question: How can i debug USART (in Recv mode) with AVR Studio in program mode (don't use in-circuit debugger)?
Thanks.