Discussion Title | Created date |
---|---|
Interrup Vector jumps to Reset (program address zero !!!) I've been pulling my hair out trying to figure out why my code just isn't working. ATMEGA2560 Finally I think I've tracked it down to the following issue. It all goes wrong... |
Monday, 15 April 2019 - 00:58 |
Bugs in simulator ??? or just me. I'm single stepping through a section of code because it did not do what I expected. I wrote some code to save SREG before disabling interrupts. However, the SREG value did... |
Saturday, 6 April 2019 - 09:48 |
Codevision code compiles OK but AS7 intellisense going mad. I have a very simple Codevision project in Atmel Studio 7. I basically used the Codevision wizard to generate a file with no code other than the auto generated code, where... |
Saturday, 6 April 2019 - 03:32 |
MOSFET - AVR output isolation from drain/source volts ??? Does a mosfet offer any isolation to the output pin of a microcontroller. I'm going to make a simple lead/acid battery float charger (sick of them dying when in storage).... |
Saturday, 13 May 2017 - 22:46 |
Tutorials defining variables instead of using #define. I've came across a tutorial or two that does something like the following. They define an int variable instead of using a #define macro, e.g. : int CHARGER_OUTPUT 12 //... |
Saturday, 13 May 2017 - 01:10 |
Comments INSIDE statements - valid ?? While Googling about multi-line C statements I came across comments inside a statement and was wondering if that is valid coding. I Googled specifically for this but didn't... |
Friday, 14 April 2017 - 23:41 |
Embedded C and static variable auto initialisation to zero Taken from the Codevision compiler manual: If not specifically initialised, static variables are automatically set to 0 at program startup. However, Googling about C and... |
Sunday, 19 March 2017 - 01:30 |
Assembler macros - looking for info on what this means I'm going through the assembly code generated by my Codevision compiler, and I'm getting a bit stuck on the following. I've spent some time Googling and just can't find any... |
Saturday, 18 March 2017 - 04:58 |
Why not disable appropriate interrupt(s) instead of CLI Hope you all had a good Christmas. Been doing a lot of studying on atomicity, and as a sidenote it's really giving me an appreciation of why learning some assembler is very... |
Sunday, 25 December 2016 - 10:16 |
JUST A WORD OF THANKS This morning I'm supposed to be fixing my trailer electric brakes after I left the manual brake on an towed the trailer for an hour and a quarter. However I got itchy to... |
Saturday, 3 December 2016 - 00:10 |
USART Tx - How long for UDR to pass byte to shift register ??? Couldn't find any info on this. Taken from the ATMEGA328P data sheet: A data transmission is initiated by loading the transmit buffer with the data to be transmitted. The... |
Saturday, 19 November 2016 - 09:06 |
Volatile for successful debug, then remove afterwards ??? I have an interesting question (to me at least) about using volatile to prevent variables being optimised away. This is for the purpose of successful debugging / single stepping,... |
Sunday, 13 November 2016 - 21:41 |