Post Created date
ATmega328p ADC to PWM
Joey, thank you for this detailed explanation of what I did not find in the datasheet. Below I give some information and have some questions.   - I already had the value of...
Tuesday, 6 March 2018 - 20:20
ATmega328p ADC to PWM
I mean the frequency range from 30kHz to 150kHz and I wil use it using a sensor (variable resistor) and after PWM, by means of a filter I will have a variable DC voltage. I would...
Tuesday, 6 March 2018 - 07:33
ATmega328p ADC to PWM
Of course I placed TIMSK1 = (1<<TOIE1); in the source but I still have a fixed signal.
Tuesday, 6 March 2018 - 07:24
ATmega328p ADC to PWM
Ok, lets say frequency between 30 and 150 kHz? Is that alright?
Monday, 5 March 2018 - 21:03
ATmega328p ADC to PWM
I have added TIMSK1 = TOIE1.   I use a ATMEL ATmega328p Xplained Mini board wich is just like an UNO, also the connections.   @3) frequency is not important and my logic...
Monday, 5 March 2018 - 20:37
ATmega328p ADC to PWM
Here is the revised code;   #define F_CPU    8000000UL #include <avr/io.h> #include <avr/interrupt.h> volatile uint16_t dutyCycle; int main(void...
Monday, 5 March 2018 - 19:04
ATmega328p ADC to PWM
Thanks in advance for your help because I have modified the source according to Simonetta but I now get a constant PWM signal with only other values, see the attached jpg. I still...
Monday, 5 March 2018 - 18:41
ATmega328p ADC to PWM
I used OCR1A = dutyCycle * 64; in the source but I still have a constant duty cycle of ~98% so I can't adjust it with the potmeter. Could I use OCR1AL en OCR1AH for using 16 bits...
Monday, 5 March 2018 - 14:34
ATmega328p ADC to PWM
Hi Jim, shure thats a nice function but I'm using Atmel Studio 7.
Monday, 5 March 2018 - 14:29
ATmega328p ADC to PWM
Hi, I declared dutyCycle as volatile in the source and the clock frequency for the Xplained Mini board at 8 MHz, but could give me hints to scale dutyCycle before writing it to...
Monday, 5 March 2018 - 11:02
ATmega328p ADC to PWM
Can you show me what to adjust in the source because it is not entirely clear to me. I would like to be able to arrange the duty cycle of ~ 3-98%.
Sunday, 4 March 2018 - 18:18

Pages