Type in the full discussion title or a part of it.
Discussion Title Created date
MCU EEPROM and Lock Bits
Just to be sure, isn’t true that it is not possible locking the MCU flash memory (of code) without locking with it the internal EEPROM? In other words, it is not possible reading...
Wed. Jul 25, 2018 - 04:00 PM
0-5999 to 0-99h:59m
Lately, I needed to convert 0-5999 to 0-99h:59m. The operation requires a division by 60; the dividend in minutes, the result in hours and the remainder in minutes. Instead of...
Sat. Jul 21, 2018 - 12:24 AM
Channel Bandwidth and Bit Rate
If we like transmitting digital data [0,1] thru a voice channel (as 300 to 3300 Hz), could the bit rate be made close to the bandwidth upper limit?   I am working on it by...
Thu. Nov 23, 2017 - 12:36 AM
Warning of redefining a register
I have ATmega8 and I write its codes in assembly only using AS6.2 SP1.   I agree that, in case a register is redefined, the warning is useful in general; it...
Thu. Sep 28, 2017 - 02:23 PM
TWI: General call 0000000 for read
I have two ATmega8 MCUs. The first one, the TWI master, is on an inverter board. The second one, the TWI slave, is on a meter board (measuring the battery voltage and...
Wed. Sep 13, 2017 - 03:28 PM
OC1A, OC1B and synchronization
I have ATmega8. I need generating two synchronized PWM signals at pins OC1A and OC1B; having the same frequency and duty cycle. Actually, the output signal at one pin is the...
Mon. Aug 28, 2017 - 09:40 PM
ATmega8A instructions .lds and .sts versus lds and sts
On a list file, *.lss, generated by AS6, one can notice the following lines:   "ATmega8A" instruction use summary: .lds  :   0 .sts  :   0 adc...
Tue. Aug 15, 2017 - 01:29 PM
Bits of I/O registers as user’s flags
I have ATmega8 I write my MCU firmware in assembly. I usually use the bits of r25 and r24 as flags.   In my last program, UART protocol wasn’t used and I kept it inactive. I...
Wed. Aug 10, 2016 - 01:10 PM
Side effect of RETI?
I mean what could be the possible undesired/unexpected side effect of calling an interrupt service routine by RCALL?   Thank you.
Sun. Jun 26, 2016 - 03:26 PM
Resetting just one interrupt flag in TIFR
Do you think there is a simple way to reset just one timer interrupt flag (as TOV2 for example) in TIFR?   I have ATmega8A and I faced this situation while an external...
Sat. Jun 11, 2016 - 07:20 AM
Measuring the average current of an acid battery
In a DC to AC inverter set, the in/out current of a battery could be periodic (mainly during its charging) or real DC (if discharged by a DC load, as LEDs connected directly...
Sun. May 29, 2016 - 03:35 PM
Mains Voltage Versatile Detector
I design a mains voltage (220V, 50Hz) detector to provide, via an optoisolator as 4N35, the real time status of the mains voltage to the MCU interrupt pin (as of ATmega8A that I...
Tue. May 10, 2016 - 05:10 AM