Post Created date
ATtiny1616 - lowest sleep draw with a comparator on
All pins have PORT_ISC_INPUT_DISABLE_gc, low output except CMP input pin. That would be a good place to start- you want analog pins to have their digital inputs disabled....
Saturday, 23 July 2022 - 20:02
Bootloader for Atmega4808 or Atmega 0 series
Here is a simple bootloader for any avr0/1 with only slight modifications needed, in this case for a tiny3217. Whether better or worse than what is in the links I do not know...
Wednesday, 20 July 2022 - 03:09
ATTINY48/88 I2C hardware implementation
How is the formula wrong?  ... it works out to Fscl = Fclk / (16 * (2 * 10 * 1))  It is wrong because you are using a * instead of a +.   Fscl = Fclk / (...
Monday, 18 July 2022 - 20:39
ATTINY48/88 I2C hardware implementation
but with this device it shows the top speed in master mode is 25 kHz when the internal 8 MHz oscillator used as the clock.  The formula reduces down to fscl = fclk / 320...
Monday, 18 July 2022 - 18:42
ATTINY48/88 I2C hardware implementation
The formula reduces down to fscl = fclk / 320 when using it as a master with the lowest prescaler of 1.  Am I missing something? Looks to me like it is-   TWBR = ftwi/...
Monday, 18 July 2022 - 15:43
Interrupt does not fire issue
You may want to specify if 'debug session' means its running on hardware, since debugging can be set to use simulator or programming device (simulator is also debugging).  ...
Sunday, 17 July 2022 - 17:45
I2C Slave doesn't send data
i2c_write(0b11010000); i = i2c_read(1);Problem #1 is you are sending an address+W instead of an address+R. You end up treating your previously sent address as a...
Saturday, 9 July 2022 - 17:31
ATtiny1616 refuses to jump to AC2 vector
Odd! After a reti (isr return) one instruction is executed before any more interrupts are handled. Although slowly, the code outside the pit interrupt is still being run. Your...
Monday, 4 July 2022 - 17:24
avr-c++ virtual functions don't get called
I haven't analyzed the code.  Actually it confuses me. An even simpler example, no need for a virtual function to see a problem- https://godbolt.org/z/f7Ts6xq9K The instance...
Thursday, 30 June 2022 - 21:22
Not able to get proper data from USART0
The minimum BAUD register value is 64 since this usart uses a fractional baud rate generator. At 115200 with a 1MHz clock, your baud register value calculates to 35 which is...
Wednesday, 29 June 2022 - 08:40
avr-c++ virtual functions don't get called
I’ll note that Arduino makes use of virtual functions, and doesn’t seem to have problems. This happens to be an unusual combo, and outside of the code presented in the original...
Tuesday, 28 June 2022 - 10:16
avr-c++ virtual functions don't get called
You can make the (empty) B constructor noinline, and you will get the vtable- https://godbolt.org/z/fzxver7Wx   Not sure what rules apply, but some optimization along the way...
Monday, 27 June 2022 - 22:27

Pages