Recent Discussions

RSS

Posted by chandrakala.madhira on Mon. Dec 22, 2014 - 09:32 AM
Hi,   The problem with reading is, after command byte is written,  dummy bytes are written through SPI to read length and data. But the first byte i...
Posted by Bugx Raja on Mon. Dec 22, 2014 - 10:47 AM
the only interrupt i'd be using is a timer interrupt. The comparator interrupt adds no value to your code.
Posted by prathibha on Mon. Dec 22, 2014 - 08:39 AM
Hi,     if i make two port pins high in callback function  static void my_callback(void) {          PORTA.OUTSET...
Posted by gun2020 on Mon. Dec 22, 2014 - 12:22 PM
when you get the interrupt from the spi to say it has finished, then you read the SPDR. Currently, you code does not do this and tries to read SPDR before the...
Posted by MichaSv on Sun. Dec 21, 2014 - 06:47 PM
Thanks David...   I think I got a little bit away from my original question.... I was just trying to understand how the Timers work in general.......
Posted by rasta on Sun. Dec 21, 2014 - 07:51 PM
Your code looks fine to me.   However,  'my' style would be: #include <avr/io.h> uint16_t volatile adcresult = 0; int main(void...

Buzzing Topics (Last 6 Months)

RSS

Posted by Michael@Atmel on Tue. Aug 26, 2014 - 12:04 AM
clawson wrote: Maybe its just me, but clicking on any links that I've found using google to "old" forum content just end up going to the home page of the new...
Posted by Hugh Aguilar on Fri. Oct 24, 2014 - 02:10 AM
Moderators - stop this train wreck now - please!
Posted by mado88 on Mon. Nov 10, 2014 - 03:38 PM
Clawson has true,   I was designed some peripheral boards for lifts - and it is not so simply. There are a lot of standards, norms and regulations. Lift...
Posted by ka7ehk on Fri. Jul 11, 2014 - 08:29 PM
Often a decaying average is enough. But if you do not want to have any historical data after a given number of sampls, the simple moving average is better...
Posted by dominicmluciano on Tue. Nov 11, 2014 - 05:42 PM
valusoft wrote:   microcarl wrote:    Two amplifiers, each with a total gain of approximately 27 would be nearly perfect: G = 5V / 185mV...
Posted by asking on Fri. Aug 15, 2014 - 08:35 PM
About a dozen messages ago, Lee askd you if the a/d reading was Nice and Smooth 0x000 to 0x7ff with a pot or something besides the current sensor. If it is,...