Post Created date
Rotary encoder works too good
The code I posted works just as well when used from a timer interrupt; you can even call it from the main event loop if it gets called frequently enough so it does not miss...
Saturday, 19 December 2015 - 11:45
Rotary encoder works too good
If the count is used to control for example highlighting/choosing a menu item, a counter that increments then decrements all the time is annoying, despite that maybe the count is...
Tuesday, 15 December 2015 - 20:43
switch/case - multiple arguments
I would extend that array with strings to a struct and include a function pointer:   Along the lines of:     struct { char *name; void (*handler)(void); }...
Saturday, 12 December 2015 - 15:31
Redundant instructions in gcc output (e.g. SUBI 0x00) - Loop 256 times
Load Z with base address of mydata at the start of the loop, and use ST Z+, R25 inside the loop. No need to build a pointer on each iteration. And no need to increment X, then...
Thursday, 10 December 2015 - 22:40
Redundant instructions in gcc output (e.g. SUBI 0x00) - Loop 256 times
At what address is mybuff located? I bet it's at 0x100.   First the loop counter, x, located in R24 is extended to 16 bits into Z, then the base address is added using the...
Thursday, 10 December 2015 - 22:08
Xmega-a3bu-Xplained onboard LCD
Note that the ASF code for writing text to this display is exceedingly inefficient. Which is not surprising as it draws a character pixel by pixel, instead of writing 8 pixels of...
Tuesday, 24 November 2015 - 21:05
[TUT][HARD] Simple ADC Input Stage
joeymorin wrote:   Quote: Someone specified for some reason the input needs to be able to handle -10V-10V inputs. Handle, or measure?     If only handle, then...
Thursday, 14 May 2015 - 17:33
Help for space vector pulse width modulation(svpwm) on arduino
Reading a pot does not take much effort from the MCU :) 20KHz switching rate is probably quite doable. Things get more complicated if you have to run a complete field oriented...
Thursday, 14 May 2015 - 15:54
[TUT][HARD] Simple ADC Input Stage
Someone specified for some reason the input needs to be able to handle -10V-10V inputs.   The circuit will work for sampling mains directly or through a transformer; in fact...
Thursday, 14 May 2015 - 15:44
Use opamps to make unipolar bridge amp?
Did you not first prototype this on veroboard instead of putting it directly into mass-production? ;)   You are driving air core gauges, so you need this circuit twice. I...
Thursday, 14 May 2015 - 15:38
[TUT][HARD] Simple ADC Input Stage
This circuit does not work if the source cannot sink current like some sensor output stages. It also loads the source (depending on the resistors chosen of course) introducing...
Thursday, 14 May 2015 - 15:15
Help for space vector pulse width modulation(svpwm) on arduino
I don't see why SVM is hard on an 8 bit micro, it just depends on the frequency.  It basically is just a couple of if-elseifs to determine what sector you're in then some...
Thursday, 14 May 2015 - 14:46

Pages