Post Created date
Help understanding the AVR atmega8 used in this schematic
Quote:If you're able to get USB interfacing working with the schematic you posted, you needn't bother with trying to locate a particular AVR. Just make your own out of sand,...
Monday, 23 June 2008 - 03:05
trying to get atTiny 2313 USART to work
Checking the data sheet again, it does say:Quote:Serial input...............RS-232, or inverted TTL/CMOS So I would guess that either a MAX232 or a simple inverter should work....
Monday, 23 June 2008 - 02:58
Volatile struct
Try: volatile struct twi_struct twi;
Monday, 23 June 2008 - 02:50
trying to get atTiny 2313 USART to work
The connection examples in the user's manual all show a connection to a standard RS232 port. RS232 polarity is inverted relative to most UARTs, including the ATtiny2313. I think...
Saturday, 21 June 2008 - 23:54
C preprocessor code
The preprocessor code is preprocessed at compile time. You can do floating point math in preprocessor macros such that they are integer constants at runtime. You just need to be...
Saturday, 21 June 2008 - 23:31
very basic code...gone mad
You may want to check that STK500 schematic again... I agree with Steve. A logic 0 turns on the LED's on the STK500.
Thursday, 19 June 2008 - 04:23
Debugging a simple program.
Double check the default interrupt sense control. I believe it defaults to low level which could explain why the interrupt fires over and over again. You probably want an edge...
Tuesday, 17 June 2008 - 03:44
is this a bug? can't decrease int32_t below 0x0000FFFF
kkp, You are right about the volatile. I am not sure what I was thinking when I wrote that it was not needed when reading a variable in an ISR. I believe my point about disabling...
Tuesday, 17 June 2008 - 02:00
ATTiny13 delay question
The delay routines in delay.h will only work if compiler optimizations are turned on. Select Project->Configuration Options from the menu and make sure Optimizations is not set to...
Monday, 16 June 2008 - 04:09
is this a bug? can't decrease int32_t below 0x0000FFFF
I just tried compiling your code with WinAVR-20080512 and running it in the AVR Studio simulator and the decrement seems to work fine. What compiler are you using? I assume this...
Monday, 16 June 2008 - 02:33
Using multiple .c files in AVRStudio with AVR-GCC
Using multiple C files in AVR Studio is pretty straight forward. You can just use the default settings and add all the C files to the project. You don't need to mess with the...
Sunday, 15 June 2008 - 04:59
Avr AT90S8515
4 MHz x 50 ms = 200000 cycles If you set the timer source to the /1024 prescaler, this would be a total count of about 195. If you want Timer0 to overflow after a count of 195,...
Sunday, 15 June 2008 - 01:41

Pages