Post Created date
longer connections between buttons and processor
A shielded cable will improve noise immunity. I agree with Lee, 20 meters for a button should be doable with an external pull-up resistor. You might also introduce some software...
Tuesday, 3 April 2012 - 15:33
Please help with Stack Operations
Quote:Perhaps "inside" HANOI: you should use different registers simply to show that the return value *is* then being passed back correctly on the stack (and not the fact that the...
Tuesday, 3 April 2012 - 14:17
Please help with Stack Operations
sinedo, To get bonus points, tidy up the code and add your own comments that describe what happens. I still don't see the point with LDD/STD, you could have used LD/ST for this if...
Tuesday, 3 April 2012 - 13:53
AVR - Motor speed for an electric spinning wheel
Quote:If you think electronics hobby is difficult, my wife has raised sheep to get the wool to spin.Agree, not easy to debug a sheep.
Tuesday, 3 April 2012 - 12:23
ADC offset ground voltage... not ..AREF
Quote:can i simply put 1 volt into the anologue ground instead of 0v ? That would be disastrous. All GND pins are internally connected. You can either use a pull-up resistor or...
Tuesday, 3 April 2012 - 10:42
Please help with Stack Operations
Quote:It's also where I saw the same thing and realised that SP points BELOW the return address not at the base of it after CALL.This was new to me too. Suppose you never get too...
Tuesday, 3 April 2012 - 10:32
Please help with Stack Operations
Quote:Also is the main difference with LD, ST and LDD and SDD is that with LD, ST you use increments/decrements and with LDD,STD you use displacement? And what is the main...
Tuesday, 3 April 2012 - 10:22
External DAC Using Atmega32 and SPI
Quote:Any idea how I can fix this?Quote:But what Lennart brought up isn't an issue since you start with CS HIGH . I'm not a C person, but it seems to me that when you initialize...
Tuesday, 3 April 2012 - 09:05
External DAC Using Atmega32 and SPI
Just catching straws here. When you init /SS in PORTB it will be a low output. This also refers to SCK. Can this confuse the DAC chip and make it unable to communicate? Not likely...
Tuesday, 3 April 2012 - 00:48
Please help with Stack Operations
Maybe I should add that the SP is loaded at the highest SRAM address on init of a program and anything saved to the stack will move SP to a LOWER SRAM address. Might not be...
Tuesday, 3 April 2012 - 00:27
Please help with Stack Operations
Quote:But why do you need to do add one and its done twice? You need to add 2 to move the SP to the location where your earlier pushed variables are located, because when RCALL/...
Tuesday, 3 April 2012 - 00:15
Please help with Stack Operations
Quote:ADIW has nothing to do with the SP. Where in the documentation of ADIW do you see that?Cliff provided an example where SP is loaded into Y (see above post).
Tuesday, 3 April 2012 - 00:01