Post Created date
PYTHON GUI with microcontroller
My go-to for USB communication is PySerial and a virtual serial port, partly because I do not know how to write any other host code. Trying to read about PyUSB makes my eyes water...
Friday, 8 November 2019 - 16:29
hidden gem
On AVRs, and I expect other microcontrollers, gcc allows one to use inline assembly on local variables. One need not write the entire function in assembly and can still get the...
Thursday, 7 November 2019 - 00:13
Half-second delay by Timer 1 in CTC mode is much shorter than expected
According to the way the high byte buffer works, the value written to TCNT1 is 0x1600. Compare that with 0x16E2.
Wednesday, 28 August 2019 - 18:46
How to manage "dynamical collection" on persistent memory?
JoniS wrote:and storing is also only on user demand so performance is not a concern, one can wait that some time.In that case, almost anything would do: Ten writes per day is...
Friday, 23 August 2019 - 14:52
How to manage "dynamical collection" on persistent memory?
Does order matter? If so, you will almost certainly need a linked list or some such. Inserting or deleting an item will usually require changing the link of another item. If you...
Thursday, 22 August 2019 - 23:46
ATTiny85 Assembly Code Not Working
Perhaps OP could connect two LEDs to the pin: a red active low and a green active high. OP might need additional diodes to ensure that 5.5 volts will not turn on both LEDs....
Wednesday, 21 August 2019 - 22:26
Changing Timers from Atmel Studio
jgmdesign wrote:And once you master AVR in MPLAB please come back here frequently to help us noobs with it! Lol(No, seriously actually....) JimIn particular, feel free to...
Tuesday, 20 August 2019 - 21:44
Pin toggling via writing PINx - can I tell which chips have it?
My recollection is that all the non-ancient AVRs do toggle with PINx. If all else fails, make HAS_PIN_TOGGLE a non-optional preprocessor parameter. Code like this will ensure it...
Friday, 16 August 2019 - 23:46
Where should be defined a device specific ISR when making a static library?
Never said it was wise. If an ISR is involved, a source library is usually a much better idea.
Friday, 16 August 2019 - 23:33
Where should be defined a device specific ISR when making a static library?
I'm not suggesting that it is a good idea, but if one really wants, one can put the ISR in a .a file.   Use the ISR macro to give it a name like fred_vect. If I got it right...
Thursday, 15 August 2019 - 15:16
Assembly File linked to code not working
How sure are you that your assembly is part of the build? Might you be getting some default functions instead?   My recollection is that that is a not infrequent problem here...
Monday, 12 August 2019 - 20:23
Idea: Code Review Groups?
avrcandies wrote:"Yep, works great, even has the key debouncing and all of our other specs we covered" Six months later..Oh the date button is stuck, and the...
Wednesday, 7 August 2019 - 14:46

Pages