Post Created date
why is my Watchdog resetting my micro?
Do you have any interrupts that take longer to service than one whole adc conversion? An interrupt firing at just the right time would cause the program to hang at the first while...
Wednesday, 15 July 2009 - 07:54
USI
The USI module uses pins labeled DI and DO. MOSI and MISO are for ISP programming. Check the chapter on USI, the block diagram on the first page says that PB1 is the output and...
Monday, 13 July 2009 - 09:06
USI
You have the input and output pins mixed. Quote: #define USI_MISO PINB1 //!...
Monday, 13 July 2009 - 05:06
Using srand()
I think you already had a solution: Quote: When the program starts, the user have to press a button to get on. It's like "press start to continue". So I just measure the time...
Thursday, 9 July 2009 - 09:22
Newbie Question: Clearing the OCF0A flag
if(OCF0A == 0) OCF0A is a constant '1', so this will never be true. You need to test the OCF0A bit in the TIFR0 register. if(TIFR0 & (1<<OCF0A) == 0)
Tuesday, 14 April 2009 - 09:47
attiny44 Analog Comparator no ACI
I think these should be bitwise ORs instead of logical. ACSR = _BV(ACBG) || _BV(ACIS1) || _BV(ACIS0);//err
Thursday, 9 April 2009 - 06:05
ADC only samples once
I didn't have the mega644 datasheet but I believe it has a similar paragraph to this (from tiny48): Quote:ADCL must be read first, then ADCH, to ensure that the content of the...
Monday, 6 April 2009 - 05:34
Mega48 failing to wake from power-down; bad sleep sequence?
I don't know CodeVision but I assume SE is not included in __sm_powerdown either?
Friday, 27 March 2009 - 07:28
no SPI data out with ATtiny861
PB0 is the USI input (DI), PB1 is the USI output (DO). The MOSI and MISO labels are for ISP programming, where the AVR is the slave.
Thursday, 5 March 2009 - 11:16
Tiny SRAM problem
The tn24def.inc -file already has defines for ram size. .equ SRAM_START = 0x0060 .equ SRAM_SIZE = 128 .equ RAMEND = 0x00df
Friday, 21 November 2008 - 13:20
Simulator 2
I also got that exact error message when running a new Studio install for the first time. It turned out that I needed to run the wizard once with my admin windows account and...
Saturday, 15 November 2008 - 18:43
Input schema with just a Vcc toggle
Quote:Another option is using a voltage divider on Vcc, fed to the ADC and compared to the 1.1V reference voltage You don't necessarily need the divider. Vcc can be selected as...
Tuesday, 28 October 2008 - 07:23

Pages