Post Created date
ATMega328 Memory Limitations
Many thanks for the suggestions about this.    I've not got smd soldering capability, so a DIP package is needed. One chip that would do (thanks Brian) is the...
Friday, 13 April 2018 - 16:57
Detecting crystal frequency in firmware
Bit late, and maybe not necessary - but the internal temp. sensor of the 328p is easy to setup and can be pretty accurate.
Wednesday, 19 July 2017 - 17:00
ADC power supply for ATMEGA8-16
Ravaner: Many thanks for replies. I use my own design with an ATMega8-16. For reason not identified yet, during process in ATMega some current peaks appear at a frequency of about...
Thursday, 13 July 2017 - 20:35
ADC power supply for ATMEGA8-16
 theusch: Bet you a cold one Input Capture has nothing to do with ADC.   Note the difference betweeen Analog Comparator and ADC -- Analog to Digital Converter. Er yes,...
Thursday, 13 July 2017 - 19:44
ADC power supply for ATMEGA8-16
Edit - Please ignore what comes after the first line. The ADC Noise Reduction sleep mode works by reducing noise to the analogue input. This operates on the digital output from...
Thursday, 13 July 2017 - 15:57
ADC power supply for ATMEGA8-16
It is technically possible to use a separate power supply, but highly inadvisable since AVcc must be within +/- 300mV from Vcc. The power circuit should be decoupled - (for a...
Thursday, 13 July 2017 - 14:14
Debug Program Hangs using Watchdog Timer
Am getting the return address using: ReturnAddMSB=*((uint8_t *)(SP + 16)); ReturnAddLSB=*((uint8_t *)(SP + 17));So that is great.   The only thing left is to actually use...
Wednesday, 12 July 2017 - 10:15
Debug Program Hangs using Watchdog Timer
 theusch wrote: Perhaps.  I guess this part of the datasheet doesn't always apply, then?  . To further ensure program security, alterations to the Watchdog set-up...
Wednesday, 12 July 2017 - 09:57
Debug Program Hangs using Watchdog Timer
iBeta666 wrote: WDTCSR = 1<<(WDIE);//this stops reset on next iteration of ISR(WDT_vect)   I'm lost.  I could be wrong, but don't you need the timed sequence to...
Tuesday, 11 July 2017 - 21:32
Debug Program Hangs using Watchdog Timer
  I wonder if the gcc function __builtin_return_address works in avr-gcc? (found here: https://gcc.gnuorg/onlinedocs/gcc/Return-Address.html) Not sure, is an ISR...
Tuesday, 11 July 2017 - 17:49
'Allocate only as many bytes needed by enum types' Problem
Sorry for not making it clear, the program did and does work, as long as the enum flag is not set. Thanks for the info Clawson, hopefully I've dodged the firing squad; there are...
Tuesday, 25 April 2017 - 22:20
Weird problem - Software serial fails due to large procedure.
Yes, that should be done. Had not realised all consts are copied to RAM.   Found a library that does the work; have only used it for strings and it seems to work fine: http...
Thursday, 2 February 2017 - 10:44

Pages