4.3.2 FUSE bits with three fuse bytes

Fuse Bits with Extended Fuse Byte, Fuse High Byte and Fuse Low Byte

4.3.2.1 Introduction

ATmega32xxx devices have Fuse registers that define the hardware configuration, such as instruction clock speed, watchdog timer, and debug mode. Fuse register bits, also referred to as configuration bits, are changed at programming time with a connected programmer. They are latched in place after the power-up and also at the programming of the device. The Fuse bits has three fuse bytes which can be categorized as extended fuse byte, high fuse byte and low fuse byte.

4.3.2.2 Supported Device Families

ATmega32xx

4.3.2.3 Required Header Files:

#include "mcc_generated_files/system/config_bits.h"

4.3.2.4 Sample Code

Note: The below code is an example code snippet and the values assigned to the Fuse bits will change, depending on the configuration in the Configuration Bits module.
FUSES = 
{
 .extended = 0x7, 

 
.high = 0xdf ,
 

.low = 0xa2 
}

4.3.2.5 Module Documentation

4.3.2.5.1 CONFIGBITS Driver

This file contains the API Prototypes for the Configuration bits driver.

Module description

This file contains the API Prototypes for the Configuration bits driver.

Version: Driver Version 1.0.0 Package Version 1.0.1

4.3.2.5.2 System Driver

This file contains the API prototype for the System Driver.

Module description

This file contains the API prototype for the System Driver.

Version: Driver Version 1.0.1 Package Version 1.0.1
Functions
  • void SYSTEM_Initialize (void)

    Initializes the System module. This routine is called only once during system initialization, before calling any other API.

Function Documentation

SYSTEM_Initialize()

void SYSTEM_Initialize (void )

Initializes the System module. This routine is called only once during system initialization, before calling any other API.

Section: Included Files

Parameters:
None.
Returns:

None.

4.3.2.6 File Documentation

4.3.2.6.1 source/source-files/config_bits.c File Reference

This file contains the API implementation for the Configuration bits driver.

#include <avr/io.h>

Detailed Description

This file contains the API implementation for the Configuration bits driver.

CONFIGURATION BITS Generated Driver Source File

Version: Driver Version 1.0.0 Package Version 1.0.1

Variable Documentation

FUSES

FUSES

Initial value:

= 
{
 .extended = 0x7, 

 
.high = 0xdf ,
 

.low = 0xa2 
}

Section: Included Files Configures the Fuse bits.

4.3.2.6.2 source/source-files/config_bits.h File Reference

#include "../system/cpu.h"

Detailed Description

CONFIGURATION BITS Generated Driver Header File

4.3.2.6.3 source/source-files/system.c File Reference

This file contains the API implementation for the System driver.

#include "../system.h"

Functions

  • void SYSTEM_Initialize (void)

    Initializes the System module. This routine is called only once during system initialization, before calling any other API.

Detailed Description

This file contains the API implementation for the System driver.

System Driver Source File

Version: Driver Version 1.0.1 Package Version 1.0.1

4.3.2.6.4 source/source-files/system.h File Reference

#include "../system/utils/compiler.h"
#include "config_bits.h"
#include "../system/pins.h"
#include "../system/cpu.h"
#include "../system/cpuint.h"

Functions

  • void SYSTEM_Initialize (void)

    Initializes the System module. This routine is called only once during system initialization, before calling any other API.

Detailed Description

System Driver Header File