Type in the full discussion title or a part of it.
Discussion Title Created date
int16 to uint32
Hi,   I have a sine table that is in signed 16 bit 2's compliment format. I need to convert that to an unsigned 32 bit number, left justified and shifted to be an unsigned...
Monday, 10 September 2018 - 02:04
Mega168A different from 168?
Hi, I have a project that uses a Mega 168A. I developed on a MEGA168 and everything worked fine. I switched to a Mega168A because money, and now the code is broken. It appears one...
Tuesday, 20 February 2018 - 17:59
Accessing structs with byte pointer
//Machine Vars For Save/Restore struct MachVars { byte save_valid; // marks if the save flash has been written unsigned long slope[9]; // slope...
Sunday, 15 October 2017 - 17:55
Solved: Off in the weeds
My program is going off into the weeds, and in an odd fashion. I hope someone can spot my error. I have a table of sine values stored as a const in flash. The table is 2048 16-bit...
Sunday, 10 September 2017 - 18:33
mega168 ADC interrupts not working
Hi, Very frustrating. I'm using AS7 and a jtagicemkII and debugWire to develop a 168 system. Try as I might I cannot get ADC interrupts. I'm getting timer interrupts so I know...
Tuesday, 29 August 2017 - 21:09
attiny20 and SPI: weird issue
Hi,   I swear I've never had so much trouble with an Atmel.  I have a time set up to produce interrupts at 1mS intervals: void timer_init(void) { // for 8.0000MHz...
Tuesday, 19 April 2016 - 23:30
TINY20 pin pullup
HI,   I am having trouble with a tiny20 implementation. A stock piece of code I've used before is failing on the 20.  It is a button debounce/handler. It reads a pin...
Monday, 18 April 2016 - 19:59
Studio 6 ISR vector error
Hi,   I ran into this and don't know what is wrong. My ISR is getting an error during build. Here is the relevant code: #include "stdio.h" #include "stdlib.h" #include "...
Wednesday, 9 March 2016 - 21:14
Help with makefile
I am having trouble remembering how to do this. Remember makefiles and paths? You know, from last century. I am trying to compile an Arduino bootloader on my PC using the winavr...
Friday, 4 March 2016 - 18:31
FAT32 Cluster Sizes
Hi,   I am doing a project with an SD card and FAT32. The largest cluster size I can deal with is 4K. I am trying to find where the sizes are defined. I looked at a 16GB SDHC...
Sunday, 13 December 2015 - 00:47
Does Studio directly support fractional/fmul?
Hi,   I will be diving down the rabbit hole of DSP on an MEGA644A. I see it has fractional multiplication capabilities, but can I use them in C?  Or do I have to do it...
Thursday, 3 September 2015 - 13:48
macro pointer?
Hi, Question: if you have a macro like this: #define OUT_TRG_LO PORTD...
Sunday, 10 August 2014 - 18:52

Pages