Post Created date
Simultaneous host and client mode on device with single TWI, aka DUALCTRL?
and have my host connected on PA2 & PA3 for the client role, and hope to use PC2 & PC3 for the host role, connected to sensor clients.  For TWI0 in dual mode (28pin...
Sunday, 7 August 2022 - 07:36
UART RX buffer clear/dispose
Master always call them by a 8 byte query each time. Instead of turning on/off uart, you could use the rx buffer index to indicate state along with a timer to take care of...
Thursday, 4 August 2022 - 19:10
"No need for an external oscillator" ATMEGA4809
Since the avr0/1/etc has a fractional baud rate generator, it also means you can tweak the baud register in relatively small increments (the fractional part, 6bits). There is...
Friday, 29 July 2022 - 18:43
Bootloader for Atmega4808 or Atmega 0 series
You will have to determine if you are producing a binary file first. You get an elf and hex file by default from your ide, and the hex file is normally used for programming. We...
Friday, 29 July 2022 - 18:07
Bootloader for Atmega4808 or Atmega 0 series
but instead it should be Thanks. I was making changes and made a mistake at one point. It was hidden from me by the fact that the demo app was correct, so I could press the sw at...
Thursday, 28 July 2022 - 18:48
Timing in switch statement failing
Example-   https://godbolt.org/z/bq1coz754   For starters, you have to access time atomically because it is changing in an isr and the changing var is > 1 byte. You...
Wednesday, 27 July 2022 - 02:13
Rx UART interrupt when toggling LED pin
2. Why is VPORT not compiling as I'd expect it to?   was suprised that most did not actually compile to CBI/SBI If you make them static (static inline or static inline...
Tuesday, 26 July 2022 - 00:04
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

Pages