Faster clock

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

Faster clock

Post by rich »

Given i use the Native mode compiler what specifically do i need to change to make the Atmega328p run with an 18.432 MHz crystal ?

Thanks
Rich
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Faster clock

Post by dkinzer »

rich wrote:what specifically do i need to change to make the Atmega328p run with an 18.432 MHz crystal ?
With all generic native mode devices it is necessary to specify the clock frequency. The easiest way to do that is to select the "Target Options" entry on the Options menu. On the resulting dialog, you can choose the processor frequency and a number of other parameters. After doing so, pressing the "Apply" button will generate a list of "device parameter" directives that match the configuration chosen. These can then be copied and pasted into the main module (if "Option DeviceParameter" is selected) or the project file (if "--device-parameter" is selected).
Attachments
native_setup.jpg
native_setup.jpg (91.24 KiB) Viewed 4258 times
- Don Kinzer
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

Post by rich »

Thanks Don.

Richard
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

Post by rich »

Don,

When using the generic compiler does a boot loader get programmed into the AVR device or is it necessary to use an AVR programmer each time the code is updated ?

Thanks
Richard
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

rich wrote:[...] does a boot loader get programmed into the AVR device or is it necessary to use an AVR programmer each time the code is updated ?
The bootloader is not part of the load image for your application. Typically, one would program the bootloader into the target device once using the AVR programmer and thereafter use that bootloader to load iterations of the application onto the device.
- Don Kinzer
Post Reply