Type in the full discussion title or a part of it.
Discussion Title Created date
Interrupts and TCNT1 giving -ve values
I'm trying to measure the time of the input pulse using an ISR. The input signal is 10 hz.  .   I have cut my program to the minimum to list here. I hope it is correct....
Monday, 9 November 2020 - 08:40
Compare 2 bits - shortcut.
I'm sure there must be a one line solution to this. I need to know if 2 bits are set or not set.   if (PORTB & (1<<PB2) == (PORTC & (1<<PC2)) {  ...
Wednesday, 2 May 2018 - 21:02
Clock UART and Fuses
ATMEGA 328P - Using an UNO board as a test bed. Programming with Avrstudio and an ISP to program the chip.   I've got the timing or clock mixed up and not sure how to fix it...
Tuesday, 24 April 2018 - 09:29
Signal processing of square wave input.
I'm supplying a square wave from one ATMEGA into another. Every XXX counts of ATMEGA2, I want to record the time at the falling edge from ATMEGA1.   To check it is working, I...
Wednesday, 5 April 2017 - 09:30
Passing paramaters to a function
Is this syntax correct  ?   Basically I want the function to be as generic as possible.   volatile uint16_t paraA volatile uint16_t paraB int main( void ){ paraA...
Saturday, 4 March 2017 - 05:34
How to code, For loop using eeprom.
I can see a few ways to do this but your input would be appreciated.   I have a few sets of data that I was wanting to store in eeprom. I was thinking of using the first...
Monday, 7 November 2016 - 19:51
integer to string
This has been covered a few times but I can't seem to find an answer that works.   I'm using void lcd_write_int(unsigned int data) { char st[16] = ""; // Make space...
Sunday, 28 August 2016 - 12:35
GCC and Atmel Language manual.
I started hacking away with code which I copied off the web and modified for a few projects. I then experimented with the Arduino. I then learned a bit more code from various web...
Sunday, 26 June 2016 - 22:19
Reading a timer value. Int - Char.
Is this correct for reading a timer value?   I only get 0's sent.   unsigned char startL = 0;  // Timer values. unsigned char startH = 0;   //////  ...
Monday, 2 May 2016 - 23:11
ATMEGA Timer interrupt coding.
I  have been stareing at this for a while but cant find my error.  What am I missing? #include <avr/io.h> #include <avr/interrupt.h> #define F_CPU...
Sunday, 17 April 2016 - 05:47
OT Run atmega from 250 volt supply.
A bit off topic but AVR related. I need to control an ignition spark curve with a processor. I only have a high voltage magneto generator producing between 100 and 250 volts from...
Thursday, 8 March 2012 - 10:40
Hardware Intetrupt
I think I'm close but it is still not working. A signal on PD0 should switch off the leds for 1 second. #define F_CPU 8E6 // ATMEGA328P 8 Mhz #include #include #include...
Monday, 13 February 2012 - 19:49

Pages