Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 3.3V Atmega328p with Arduino Bootloader

Status
Not open for further replies.

Martynas Jankūnas

Newbie level 6
Joined
Aug 9, 2015
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
152
Hello, I want to use Arduino compatable 328p in my project. All other devices runs from 3.3V, so I want to use one power supply. I successfully burned bootloader and blink sketch into new atmega, then disabled brown-out. All worked fine with 16MHz crystal, but according to 328p datasheet, with 3.3V PSU it should be used with max 12MHz crystal. So what will happen to all time related stuff if I just swap crystals? Are delay(1000) still will be delay for 1s?
 

Thank you for the link, but main question still remains. How this efect time related operations? I assume that delay() will calculate how much NOP instructions it has to be done with 16MHz clock, so with 12MHz clock time delay won't be that I want, because NOP instruction now will take longer to execute
 

The delay functions are calculated and configured by the compiler using the information on clock speed from boards.txt. In the Arduino environment, under the tools menu, the board selected has a clock speed associated with it. Each board that appears in that menu has a stanza in boards.txt, that defines this.
The bootloader needs to be configured for the proper frequency so that it is using an accurate baud rate, to upload the program.
So, yes, the delay functions and baud rates would be too slow if just the crystal were changed.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top