Hi,
I was working on a cheaper power supply, based on Dave's -till today- unfinished µSupply.
On the revC he isn't actualy using the 5V supply (it's only connected to the unused USB connector). So I was thinking:
Lets not use the 5V, and make everything working on 3V3... saving some money, 1 less IC, more space, and no heatsink for that IC, thumbs up!
So, my ATmega328P-PU is running at 8MHz, becose it's powered on 3V3... But then *a month later* I added a 5V regulator for 1 single chip i couln't find on 3V3... and started using it again for more and more... so now i'm thinking to set my atmega back to 5V, becose then I can have a 16MHz clock, so more computing power! (you never know what will happen)... But the problem is that all the other I2C devices are only working on 3V3.
Then: "The datasheets are always your friend, so I found this in the ATmega datasheet (or is it a dataBOOK?
I call 650+ pages a book...)
- SCL/ADC5/PCINT13 – Port C, Bit 5
SCL, 2-wire Serial Interface Clock: When the TWEN bit in TWCR is set (one) to enable the 2-wire Serial
Interface, pin PC5 is disconnected from the port and becomes the Serial Clock I/O pin for the 2-wire Serial
Interface. In this mode, there is a spike filter on the pin to suppress spikes shorter than 50 ns on the input signal,
and the pin is driven by an open drain driver with slew-rate limitation.
PC5 can also be used as ADC input Channel 5. Note that ADC input channel 5 uses digital power.
PCINT13: Pin Change Interrupt source 13. The PC5 pin can serve as an external interrupt source.
- SDA/ADC4/PCINT12 – Port C, Bit 4
SDA, 2-wire Serial Interface Data: When the TWEN bit in TWCR is set (one) to enable the 2-wire Serial
Interface, pin PC4 is disconnected from the port and becomes the Serial Data I/O pin for the 2-wire Serial
Interface. In this mode, there is a spike filter on the pin to suppress spikes shorter than 50 ns on the input signal,
and the pin is driven by an open drain driver with slew-rate limitation.
PC4 can also be used as ADC input Channel 4. Note that ADC input channel 4 uses digital power.
PCINT12: Pin Change Interrupt source 12. The PC4 pin can serve as an external interrupt source.
So here are my questions:- The internal pull-ups are disabled on I2C mode, so no worries there would be 5V on those pins, easy to connect 2 pull up resistors to 3V3. BUT: will the microcontroller be able to read 3V3 as a high input, or is that beneath the threshold? (looked for it for an hour, and ragequited )
- Anyone can give me an idea on the current demand of an "average" ATmega238p? like 10mA? 100mA? some 10mA's? I know that it depend on what it is driving, it's just if I have only my microcontroller (and some low power IC's) connected on my 5V regulator, should it need a heatsink?
Thanks in advance for helping me out,
Lovely_Santa