Post Created date
Generate a signal with 8 fixed-width pulses with a varying interval
What  avrcandies suggested is probably the right way to go.   Anyway, I made the changes. It can be further fine tuned.   void sendSignal() { // Pin Low for 35...
Tuesday, 17 May 2022 - 19:47
Generate a signal with 8 fixed-width pulses with a varying interval
Techno KG wrote: The Pulse are having a different periods but the On-time is the same for each pulse!  Oh, I think I understand what you are saying. Let me look at this...
Tuesday, 17 May 2022 - 17:29
Generate a signal with 8 fixed-width pulses with a varying interval
Welcome.   I went too deep and wrote this. I used AVR delay loop calculator.    Try this code and report.   void sendSignal() { // Pin Low for 31...
Tuesday, 17 May 2022 - 17:04
Quantum Computing Is a Hype or Real ?
Quantum Computing for Electrical Engineers
Saturday, 14 May 2022 - 15:06
Dealing with an -Wincompatible-pointer-types warning
Type cast the address to uint8_t *   uint8_t *raw_sensor_data_bytes = (uint8_t *)&sensor_data.raw_sensor_data; 
Saturday, 7 May 2022 - 20:44
Writing ISR in assembly. AVR-GCC 5.4.0
Thanks, exactly what I was looking for.   Edit - I need control over every single clock cycle inside this ISR, the crazy part is that the interrupt is interrupting itself and...
Thursday, 28 April 2022 - 10:48
Writing ISR in assembly. AVR-GCC 5.4.0
One more question :-   Say I want to dedicate register r2 to act as a "counter" variable in the above code. So in ISR, I don't have to push pop the counter variable from RAM...
Thursday, 28 April 2022 - 07:55
Writing ISR in assembly. AVR-GCC 5.4.0
westfw wrote:The easiest solution is to make your local static variables be global variables instead. "static local" variables are just a figment of C's imagination; they end up...
Thursday, 28 April 2022 - 07:43
Writing ISR in assembly. AVR-GCC 5.4.0
avrcandies wrote:Any ISR worth beans should 99% of the time save the sreg Yes, the address 0x3F in code is for SREG. Saved it in R16. Restoring it back on the way out....
Wednesday, 27 April 2022 - 22:51
Sinclair Spectrum - 40th Anniversary
In the link  
Monday, 25 April 2022 - 22:30
Reading values from address of internal SRAM of Atmega 2560
By default all variables that you create are stored in SRAM. When you are reading a variable in C it is reading from SRAM in most cases.
Monday, 25 April 2022 - 07:12
&port and compare with the PORT Register Address - error
hamisu wrote:Isnt the &port is already the address of the Port Register ?  I think you want to do is this. if (port == 0x25) { // do something } Remove the &...
Sunday, 24 April 2022 - 15:44

Pages