Type in the full discussion title or a part of it.
Discussion Title Created date
Strange issue with bypass cap and AVRISPMKII
I am having a strange issue with the AVRISPMKII programmer, I added a 33uF bypass cap between VCC and GND pins on an ATMega88PA for better stability(as I'm driving an electric...
Friday, 6 August 2010 - 01:04
PWM...am I missing something?
TCCR1A |= (1<<WGM10); TCCR1B |= (1<<WGM13); OCR1A = 100; DDRB |= (1<<PINB0) | (1<<PINB1); PWM on PINB1(OC1A). static inline void Start_PWM1(...
Monday, 28 June 2010 - 18:24
Sudden issues with making new projects...
I have been working with AVR studio for over a year now, and all of the sudden I can't seem to even make a simple project and have it compile. Yet when I open my previous projects...
Wednesday, 23 June 2010 - 12:58
Unexpected Behavior
The problem I am having is that a certain part of my program is not getting executed after it should be, yet I have found any issues when running AVR Simulator 2 nor are there any...
Monday, 14 June 2010 - 19:42
DWEN
If I am using the AVRISP MkII in ISP mode and enable DWEN so that I can actually see what the hardware is doing inside the micro will this lock out the chip from being able to...
Saturday, 12 June 2010 - 16:06
Modularizing Programs
I just read through the tutorial on modularizing C code, but there are a few things in my program not mentioned in the tutorial, nor can I find them specifically in "The C...
Friday, 4 June 2010 - 19:21
#Define and multiple assignment statements
Can I assign multiple assignment statements a name? For example if currently want to turn on and off PWM, so I use: For starting PWM #define Set_COM1A1_Bits TCCR1A |= (1<<...
Wednesday, 2 June 2010 - 16:05
How Reliable is AVR Simulator 2?
Has anyone had any issues with AVR Simulator 2? I am having difficulty getting my program to function the way I believe it should be and I was using Simulator 2 to look at the...
Wednesday, 2 June 2010 - 15:17
Truncating Data for use with OCR0A (PWM)
void Set_Motor_Speed(void){ uint8_t temp=0; temp = PIND; temp &= 0xA0; switch(temp){ case 0: duty_cycle = 255; soft_start_duty_cycle = duty_cycle * 0.8; break...
Tuesday, 6 April 2010 - 17:10
Reading a port value
uint8_t set_magazine_size(uint8_t m_size){ uint8_t temp=0; temp = PORTD; temp &= 0x18; //clear unwanted PortD values only read (PD3...
Monday, 5 April 2010 - 20:02
Setting OCR0A for Phase Correct Non-Inverted PWM
When I run a simulation and try to set OCR0A in a function and change it in a ISR the value is never copied to OCR0A, yet when I set OCR0A in the main it works just fine. Is there...
Friday, 2 April 2010 - 15:07
Timer 1 CTC mode
The data sheet specifies the following as the way to do a write to TCNT1 to avoid any interrupt from corrupting the register during a write: unsigned int TIM16_ReadTCNT1( void...
Thursday, 1 April 2010 - 15:49

Pages