Post Created date
My memory is gone!!
John, I understand you have already a table-driven implementation. For the general interest I want to point out the two main resources for this kind of bit twiddling: http://www....
Thursday, 4 September 2008 - 11:05
I²C interface
Have you checked out Atmel application notes? http://www.atmel.com/dyn/products/app_notes.asp?family_id=607 AVR155: Accessing I2C LCD Display Using the AVR 2-Wire Serial Interface...
Wednesday, 3 September 2008 - 16:12
saving unused registers on the stack in ISR
Thanks clawson. I was expecting some very weird behaviour of stacking interrupts or the like. :-) Thomas
Tuesday, 2 September 2008 - 14:51
saving unused registers on the stack in ISR
hooverphonique wrote:16-bit software timers are a bitch when other interrupts are on as well... Hi hooverphonique, can you elaborate on that please? Cheers Thomas
Tuesday, 2 September 2008 - 14:20
Scope of variable declaration
Declare val as volatile. Edit: The compiler does not know that there is some asynchronous event (the ISR) overwriting tahe variable 'val'. If you look at the compiler output, then...
Tuesday, 2 September 2008 - 12:40
Newbie Questions Regarding installing AVR-GCC on Linux
For the start you will safe yourself a lot of hassle if you go for the packaged version of your distributor. I don't use Red Hat and I can't tell you if their packages are OK, but...
Monday, 1 September 2008 - 11:24
Which CRC?
I'd suggest to stick to any one of the many CRC models out there (see for example http://www.tty1.net/pycrc/crc-models.html). Some polynomials are better some are worse, but most...
Friday, 29 August 2008 - 14:53
problem Inline Assembler return value
Sorry for going "off topic" by returning to the original question. :-) I think the proper way of doing so is to assign the desired return value to a temporary variable and return...
Thursday, 28 August 2008 - 12:44
Comm Protocol
My 2 pence: I prefer to search for the Stop character instead of the Start character. This makes a very simple re-sync mechanism possible. Assume you have a circular receive...
Friday, 15 August 2008 - 15:00
right shifting an int16_t value
Hi, as clawson said, just try it out. But don't be surprised if you get different results on a different compiler or architecture. The C99 Standard (or the last public draft of it...
Friday, 15 August 2008 - 13:50
from ADC data to SIGNED16
Senmeis, I think you need to distinguish between 4 different figures: a) the voltage you want to measure b) the voltage applied to the ADC input c) the integer value read from the...
Monday, 11 August 2008 - 10:57
from ADC data to SIGNED16
Hi Senmeis, you have lost me. If you don't tell us what you want to achieve (i.e. what the desired range of adc_result is) then I'm afraid we can't tell you if it is right or...
Thursday, 7 August 2008 - 13:15

Pages