Starting values - 1st pulse
Starting values - 8th pulse
1st optimization attempt
1st optimization attempt - 1st pulse
1st optimization attempt - 8th pulse
Optimized ISR runtime - 1st pulse
Optimized sampling-ISR runtime
Optimized ISR runtime - 8th pulse
Harddisk - stuff thrown away
Harddisk hub motor
Harddisk hub motor
The heads
Coil + parking position bumper
The heads
Magnet with parking position 'thing'
Harddisk - heads and platters
The heads
The heads
The heads
I don't like what I see
Samsung SpinPoint - 2006/05/26
Harddisk - heads and platters
Max headroom - NOT
Fully interrupt driven soft-uart receiver
Fully interrupt driven soft-uart receiver
Fully interrupt driven soft-uart receiver on an AT…
"The last Hope"
Japan won
Japan won
Quoting StarWars didn't help - Yoda was sleeping ?
FIFA Women's World Cup 2011 - FAN-atics
Nipon flag
Flags all over the place
In it went
Debugging avrdude - arduino.c
The bad
The good
Say no more!
Definitely a quality product
The ugly
Can't get it up
Stereo adapter... yeah right!
I know where I would shove it!
9mm round
9mm round
Keywords
Authorizations, license
-
Visible by: Everyone -
All rights reserved
-
96 visits
Starting values - overview


By accident I had observed that the runtime gets longer and longer. See here as well.
Code excerpt:
if(bit <= 7) { // read data-bits 0...7
if( (PINA & _BV(PA0)) ) {
soft_uart_rx_byte |= _BV(bit);
} else {
soft_uart_rx_byte &= ~_BV(bit);
}
[...]
As shown here, the _BV(bit) part gets turned into a loop. As 'bit' is a variable, it can't be replaced by a number at compile time. And the loop gets longer for higher bits.
Code excerpt:
if(bit <= 7) { // read data-bits 0...7
if( (PINA & _BV(PA0)) ) {
soft_uart_rx_byte |= _BV(bit);
} else {
soft_uart_rx_byte &= ~_BV(bit);
}
[...]
As shown here, the _BV(bit) part gets turned into a loop. As 'bit' is a variable, it can't be replaced by a number at compile time. And the loop gets longer for higher bits.
- Keyboard shortcuts:
Jump to top
RSS feed- Latest comments - Subscribe to the comment feeds of this photo
- ipernity © 2007-2025
- Help & Contact
|
Club news
|
About ipernity
|
History |
ipernity Club & Prices |
Guide of good conduct
Donate | Group guidelines | Privacy policy | Terms of use | Statutes | In memoria -
Facebook
Twitter
Sign-in to write a comment.