Post Created date
Problems with fast pwm atmega 328p
Alex_ceron wrote:About the prescaler i use the formula of the datasheed for fast PWM I believe Jim is talking about the System Clock Prescaler (not the timer prescaler). Check the...
Sunday, 6 August 2017 - 21:59
Problems with fast pwm atmega 328p
You're using FastPWM with ICR1 as TOP value. In other words, each falling edge (ICES1=0) on the ICP1 pin (PB0) will update ICR1 with the current value of the TCNT1 counter, thus...
Sunday, 6 August 2017 - 21:50
Atmega32 and accelerometer adxl345 ,bascom avr
alkis3 wrote:Quote:Do you configure the ADXL while in standby mode, and then switch to measurement mode, (the recommended technique)? Not tried Might be worth a try, putting put...
Monday, 19 December 2016 - 11:04
Atmega32 and accelerometer adxl345 ,bascom avr
alkis3 wrote:But the code is written that it should work on a 16g I2cwbyte &H31 I2cwbyte &B0000_1011 Indeed, seems correct afaict:     What is this about...
Sunday, 18 December 2016 - 17:16
Atmega32 and accelerometer adxl345 ,bascom avr
If I understand you well, you have 3 different problems: Reading Z axis acceleration Setting ADXL to 16G Setting ADXL to 400Hz None of it seems related to bascom, only how to...
Sunday, 18 December 2016 - 13:21
Optimizing libc integer conversion routines
sparrow2 wrote: is that the same rules for inline, (that local vars can't be in those high reg. ? With inline, you shouldn't clobber registers. Thus you let the compiler allocate...
Friday, 30 September 2016 - 09:48
Optimizing libc integer conversion routines
SprinterSB wrote:- Integration into libc has still to be done, all the __builtin_constant_p gaga etc. Have fun! Thanks for contributing that code. :-) I thought we'd just branch...
Wednesday, 28 September 2016 - 09:16
Optimizing libc integer conversion routines
theusch wrote:Repeating: https://www.avrfreaks.net/comment... leads to https://www.avrfreaks.net/forum/s... There is lots of code in that thread, and you link to two different...
Tuesday, 27 September 2016 - 17:42
Optimizing libc integer conversion routines
theusch wrote:[the seminal thread here, linkied to in the other thread, also gave a "best" approach that left the results reversed.] Unfortunately, challenging/buggy moderation...
Tuesday, 27 September 2016 - 17:18
Optimizing libc integer conversion routines
FWIW, current libc code like utoa/itoa (resp. ultoa/ltoa) is relying on a common __utoa_common (resp. __ultoa_common), which despite the name processes a signed input
Tuesday, 27 September 2016 - 17:00
Optimizing libc integer conversion routines
netizen wrote:Usage of the same strrev should probably be considered innocuous in terms of code size, as every other conversion function relies on it anyway. On the other hand, an...
Tuesday, 27 September 2016 - 16:49
Optimizing libc integer conversion routines
clawson wrote:I thought this was all about replacing avr-libc itoa(int value, char * buff, int radix) with a faster version? A replacement would need to slot in and behave...
Tuesday, 27 September 2016 - 16:31

Pages