Post Created date
C String on Attiny202
clawson wrote: metRo_ wrote:I'm using AVR GCC 5.4.0. But building in what environment? This looks like it might be an objcopy issue.   ze@ze-XPS-13-9380:~/development/fw$...
Tuesday, 5 January 2021 - 13:39
Use both SPI and I2C on ATtiny202
Looking at the image something is driving the SCL low and it goes high only if I disable the I2C so I must be forgotten a I2C stop.  
Monday, 20 April 2020 - 18:31
Use both SPI and I2C on ATtiny202
david.prentice wrote: Since you are a Master,  you might just as well enable SPI, perform SPI, disable SPI and enable I2C, perform I2C, disable I2C.   That's what I do...
Monday, 20 April 2020 - 18:29
Use both SPI and I2C on ATtiny202
david.prentice wrote: Just realise that certain bit patterns on MOSI, MISO might appear as a valid i2c_start(slave) to one of the I2C slaves.   I'm aware of that however it...
Monday, 20 April 2020 - 17:43
Measure Vcc with ADC
Chuck99 wrote: Have you tried slowing the ADC clock to see what effect that has on the accuracy?     CPU clock is 10MHz and before I was using a presacler of 2 now...
Wednesday, 27 November 2019 - 17:44
Measure Vcc with ADC
Chuck99 wrote: Have you tried slowing the ADC clock to see what effect that has on the accuracy?   I'll try it.   As you can see between 3.15V and 2.89V the ADC....
Wednesday, 27 November 2019 - 12:23
Measure Vcc with ADC
clawson wrote: Can't help noticing that your ADC data points are expressed as float. As the ADC actually returns a plain integer value (0..255 or 0..1023) then presumably you...
Wednesday, 27 November 2019 - 11:00
Measure Vcc with ADC
I did some measures for both 8bits and 10bits and the behavior is the same. For some reason I thought that for 10bits it was working as expected. Left is for 8bits resolution...
Wednesday, 27 November 2019 - 10:10
Measure Vcc with ADC
Tuesday, 26 November 2019 - 11:32
Measure Vcc with ADC
clawson wrote: Where are you actually measuring the input voltage and how? Hopefully a DMM actually on the Vcc pin?   I have a DMM measuring the Vcc pin. It is working...
Tuesday, 26 November 2019 - 11:22
Measure Vcc with ADC
Moe123 wrote: metRo_ wrote:I'm using an Attiny402 with avr-gcc.   Yes and the example you mentioned doesnt work with tiny402. its not supported, please read carefully the...
Tuesday, 26 November 2019 - 11:19
Measure Vcc with ADC
uint16_t ADC0_read(void) { /* Start ADC conversion */ ADC0.COMMAND = ADC_STCONV_bm; /* Wait until ADC conversion done */ while (!(ADC0.INTFLAGS & ADC_RESRDY_bm...
Tuesday, 26 November 2019 - 09:51

Pages