Post Created date
C++ AVR Interrupt
1. TestPtr has to be static. 2. As friend, the function INT4_vect is able to access private members of the Test class, but it is not a member of this class, so instead of TestPtr...
Thursday, 12 November 2015 - 07:37
Arithmetic overflow?
It's always better to do explicit casting from longer type to the shorter one. This indicates that you know what are you doing, i.e. you know, that you lose some data and it's OK...
Thursday, 27 November 2014 - 07:17
ATxmega32E5 - serial number
You can find the needed information in the ATXmega E Manual (Atmel-42005-8-and-16-bit-AVR-Microcontrollers-XMEGA-E_Manual.pdf). See page 37.  
Monday, 6 October 2014 - 07:18
EEPROM command writing two bytes instead one [Solved]
eeprom_update_word function writes two bytes. I guess that get_dtmf is array of unsigned bytes. When you call eeprom_update_word, data you pass is promoted to unsigned int by...
Thursday, 7 August 2014 - 06:25
ATmega32A: sampling 13 analog signals at 1ms each
My suggestion is: Use only timer interrupt with 1ms perios, don't use ADC interrupt. In the ISR read A/D conversion result, change ADC channel and trigger next A/D conversion....
Wednesday, 16 July 2014 - 11:44
7 Segment Multiplexing, Value Increment Issue
Your function 'breakup' sets only 'digits' array elements needed to display current number ans doesn't change remaining array elements. When you call this function with 59 as...
Tuesday, 15 July 2014 - 18:58
Compiler Bug ?
These two statements are not equivalent. PINB1 is a constant. Its value is 1. !PINB1 is also constant and its value is 0. Code after 'if' with such condition will never be run, so...
Friday, 4 July 2014 - 11:02
xmega E5 LOAD_EEPROM_BUFFER command missing
Torby, That's not true in Xmega E5. There is nothing at bit 3 in NVM_CTRLB, this bit is 'reserved' according to the Xmega E manual. EEPROM memory mapping is always...
Wednesday, 2 July 2014 - 06:16
xmega E5 LOAD_EEPROM_BUFFER command missing
When you read EEPROM, you don't need set the NVM.ADDR registers. Just read data from location 0x1140. That's all. These five bits are important only when you want to...
Tuesday, 1 July 2014 - 17:10
xmega E5 LOAD_EEPROM_BUFFER command missing
Of course, EEPROM buffer is used to read and write EEPROM data. When you read data from memory mapped EEPROM, you can treat it as whole EEPROM itself available, because NVM does...
Tuesday, 1 July 2014 - 12:47
xmega E5 LOAD_EEPROM_BUFFER command missing
For Xmega E5, memory mapping for EEPROM is always turned on. To fill the EEPROM page buffer you should write data to the appropriate location in the RAM address space instead of...
Tuesday, 1 July 2014 - 11:33
AVR DRAGON JTAGing problem (OCD)
Hi Slav3k I had the same problems. Wires used to connect Dragon to the microcontroller should be as short, as possible. Try to use wires not longer than 15cm (10cm is better) and...
Monday, 30 June 2014 - 07:28