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...
Tue. Apr 3, 2012 - 03:33 PM
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...
Tue. Apr 3, 2012 - 02:17 PM
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...
Tue. Apr 3, 2012 - 01:53 PM
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.
Tue. Apr 3, 2012 - 12:23 PM
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...
Tue. Apr 3, 2012 - 10:42 AM
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...
Tue. Apr 3, 2012 - 10:32 AM
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...
Tue. Apr 3, 2012 - 10:22 AM
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...
Tue. Apr 3, 2012 - 09:05 AM
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...
Tue. Apr 3, 2012 - 12:48 AM
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...
Tue. Apr 3, 2012 - 12:27 AM
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/...
Tue. Apr 3, 2012 - 12:15 AM
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).
Tue. Apr 3, 2012 - 12:01 AM

Pages