Post Created date
Input Capture and Vector Priority
Kleinstein wrote:Using another timer does not really help. The problem is that the may be two interrupts pending, and there is no simple priority that can decide which ISR has to...
Friday, 1 October 2010 - 20:23
Input Capture and Vector Priority
Yeah, I was afraid of this. I would hoping to avoid the extra clock cycles, but after searching around I think this is the only solution: ISR(TIMER1_CAPT_vect){ //On 8-18-10...
Friday, 1 October 2010 - 04:53
Determining ISR duration
clawson wrote:Then you should document that at least with a comment or perhaps: typedef union { struct { volatile uint8_t uart_block[11]; volatile uint8_t...
Thursday, 26 August 2010 - 20:40
Determining ISR duration
clawson wrote:Michael, Surely he's using the array to UART_RX then effectively casting an interpretation onto the bytes using the struct part of the union. Presumably then he will...
Thursday, 26 August 2010 - 19:48
Determining ISR duration
david.prentice wrote:There is no need for the slave mega to send ADC data 1000 times a second. Think about it. You can let the Slave monitor the speed continuously (or very...
Thursday, 26 August 2010 - 18:38
Determining ISR duration
Here is the final solution I settled on. First I change my RX_COMPLETE interrupt per STU's suggestion: ISR(USART1_RX_vect){ uint8_t byte_num_nv = rx1_data.byte_num; do{...
Thursday, 26 August 2010 - 18:25
Determining ISR duration
Quote: scratching their head I think I see what your saying. You are concerned about the readability of the declaration. On the flip side, one benefit to [11] is that if you ever...
Thursday, 26 August 2010 - 18:03
Determining ISR duration
dpaulsen wrote:clawson wrote:Well the point is that if you just fill in a variable of type rx_block_t called foo.block[] you cannot (in theory) set foo.byte_num, foo.size, foo....
Thursday, 26 August 2010 - 17:02
Determining ISR duration
david.prentice wrote:You are buffering the UART anyway, and know that an ADC only occurs when you ask for it. So you could receive it at any reasonable speed. 500k baud seems a...
Thursday, 26 August 2010 - 16:58
Determining ISR duration
clawson wrote:Well the point is that if you just fill in a variable of type rx_block_t called foo.block[] you cannot (in theory) set foo.byte_num, foo.size, foo.err_flag but in...
Thursday, 26 August 2010 - 16:53
Unexpected result when using ISR_NAKED
Koshchi wrote:Quote:If it really starts to bother me I will try updating my avr-gcc.But it looks like just the .lst is wrong. The .lss looks just fine, so I see no need to worry....
Thursday, 26 August 2010 - 16:40
Determining ISR duration
clawson wrote:How can you make a union between an array of 11 bytes and a struct that contains 14 bytes? :oops: I wasn't sure about this when I first did it, but it seems to work...
Thursday, 26 August 2010 - 16:32