Post Created date
ATTINY85 Magnetic Door Sensor (3xAAANiMh 1.2v)(RESOLVED)
I don't know how your sleep code works, I was assuming it might sleep for a few seconds and then return where the loop I had it in would again test for a pin change. Yes the other...
Wednesday, 17 February 2021 - 16:57
ATTINY85 Magnetic Door Sensor (3xAAANiMh 1.2v)(RESOLVED)
Looks good, how is it working?    By the way you don't need the interrupt code, the code is reading the pin in the main loop.   If you do want to use an interrupt...
Friday, 12 February 2021 - 04:39
ATTINY85 Magnetic Door Sensor (3xAAANiMh 1.2v)(RESOLVED)
Not familiar with the ardreno code how interrupts work but typically you don't call the interrupt from the main loop the hardware vectors the pin change to the interrupt code...
Wednesday, 10 February 2021 - 05:33
Passing PORT addresses
I will answer my other question above about the .h file having all the code for all the pins or each operation , Setdir, By using the #ifdef and #undef you can pass a variable to...
Wednesday, 3 February 2021 - 19:03
Passing PORT addresses
This is a lookup method but looks up the code to replace the call inline By adding more if then logic only one inline macro needs to be used and it inserts the include file that...
Wednesday, 3 February 2021 - 18:28
Passing PORT addresses
How about this, it has no overhead, Before you posted I had already started working on that lookup idea but thought the same too much overhead. Then I remembered the include can...
Wednesday, 3 February 2021 - 17:31
Passing PORT addresses
Here is potentially a harder one.   Suppose I want to reference the physical pins, 0 .. 28 and call them PH0 .. PH28   Can I somehow create a Macro that would expand...
Wednesday, 3 February 2021 - 02:11
Passing PORT addresses
Thanks Revised these lines   __attribute__ ((always_inline)) static inline void Setpin(volatile uint8_t *port, uint8_t pin) { *port = *port | (1 << pin...
Wednesday, 3 February 2021 - 01:49
Macro trouble for AVR128da code
Can’t believe I’m up at 7 after going to sleep at 3am. That in-line code is very cool. Where do you learn stuff like that, is there a guru encyclopedia of macros I should add to...
Monday, 1 February 2021 - 13:16
Macro trouble for AVR128da code
I found a bug while testing the input, when I run the program with the input pin grounded it runs fine When i set the pin high it still runs but setting back to low it does...
Monday, 1 February 2021 - 08:16
AVR128DA28 How to set clock frequency
I do find though it helps me when I use code someone else has written to find out more about the code. Really all squiggles if the code is correct should not have squiggles, if...
Sunday, 31 January 2021 - 17:15
AVR128DA28 How to set clock frequency
Thanks curtvm , I just open that file and VAssistX finds it. So Include files that include other header files might be the reason it wont update.   Gchapman yes that is the...
Sunday, 31 January 2021 - 07:38

Pages