ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
Electrical.h
Go to the documentation of this file.
1
5
6#ifndef ATMEGA328P_DEFINITIONS_ELECTRICAL_H
7#define ATMEGA328P_DEFINITIONS_ELECTRICAL_H
8
9#include <stdint.h>
10#include "Config.h"
11
13namespace atmega328p
14{
16 namespace electrical
17 {
26
27 enum : int16_t
28 {
33 };
34
35 enum : uint16_t
36 {
53 };
54
55 enum : uint8_t
56 {
58 };
59
62 {
63 enum : uint8_t
64 {
66 };
67 enum : uint16_t
68 {
71 };
72 enum : int16_t
73 {
76 };
77 enum : uint32_t
78 {
79 max_clock_hz_at_1v8 = 4000000UL,
80 max_clock_hz_at_2v7 = 10000000UL,
81 max_clock_hz_at_4v5 = 20000000UL,
82 };
83 }
84
87 {
88 enum : uint8_t
89 {
91 };
92 enum : uint16_t
93 {
96 };
97 enum : int16_t
98 {
101 };
102 enum : uint32_t
103 {
105 max_clock_hz_at_2v7 = 10000000UL,
106 max_clock_hz_at_4v5 = 20000000UL,
107 };
108 }
109
112 {
113 enum : uint8_t
114 {
116 };
117 enum : uint16_t
118 {
121 };
122 enum : int16_t
123 {
126 };
127 enum : uint32_t
128 {
130 max_clock_hz_at_4v5 = 16000000UL,
131 };
132 }
133
135 namespace unspecified
136 {
137 enum : uint8_t
138 {
140 };
141 enum : uint16_t
142 {
145 };
146 enum : int16_t
147 {
150 };
151 enum : uint32_t
152 {
156 };
157 }
158
159#if defined(MCU_GRADE_INDUSTRIAL_85C)
160 namespace selected = industrial_85c;
162#elif defined(MCU_GRADE_INDUSTRIAL_105C)
163 namespace selected = industrial_105c;
165#elif defined(MCU_GRADE_AUTOMOTIVE_125C)
166 namespace selected = automotive_125c;
168#else
169 namespace selected = unspecified;
171#endif
172
175 {
176 enum : uint32_t
177 {
178 sink_1 = 0x00003F00UL,
179 sink_2 = 0x007000FFUL,
180 sink_3 = 0x000F8000UL,
181 source_1 = 0x000FBF00UL,
182 source_2 = 0x007000FFUL,
183 };
184 }
185 }
186}
187
188#endif
Selects the ATmega328P package and operating grade.
Automotive grade up to 125 degrees Celsius.
Definition Electrical.h:112
@ max_clock_hz_at_2v7
Max clock hz at 2v7.
Definition Electrical.h:129
@ max_clock_hz_at_4v5
Max clock hz at 4v5.
Definition Electrical.h:130
@ max_temperature_c
Max temperature (degrees C).
Definition Electrical.h:125
@ min_temperature_c
Min temperature (degrees C).
Definition Electrical.h:124
@ max_voltage_mv
Max voltage (mV).
Definition Electrical.h:120
@ min_voltage_mv
Min voltage (mV).
Definition Electrical.h:119
@ available
Operating profile has defined limits.
Definition Electrical.h:115
Datasheet pin groups used for aggregate current limits.
Definition Electrical.h:175
@ sink_3
Sink 3 pin-group bitmask.
Definition Electrical.h:180
@ source_2
Source 2 pin-group bitmask.
Definition Electrical.h:182
@ sink_2
Sink 2 pin-group bitmask.
Definition Electrical.h:179
@ source_1
Source 1 pin-group bitmask.
Definition Electrical.h:181
@ sink_1
Sink 1 pin-group bitmask.
Definition Electrical.h:178
Industrial grade up to 105 degrees Celsius.
Definition Electrical.h:87
@ min_voltage_mv
Min voltage (mV).
Definition Electrical.h:94
@ max_voltage_mv
Max voltage (mV).
Definition Electrical.h:95
@ max_temperature_c
Max temperature (degrees C).
Definition Electrical.h:100
@ min_temperature_c
Min temperature (degrees C).
Definition Electrical.h:99
@ max_clock_hz_at_2v7
Max clock hz at 2v7.
Definition Electrical.h:105
@ max_clock_hz_at_1v8
Max clock hz at 1v8.
Definition Electrical.h:104
@ max_clock_hz_at_4v5
Max clock hz at 4v5.
Definition Electrical.h:106
@ available
Operating profile has defined limits.
Definition Electrical.h:90
Industrial grade up to 85 degrees Celsius.
Definition Electrical.h:62
@ max_clock_hz_at_1v8
Max clock hz at 1v8.
Definition Electrical.h:79
@ max_clock_hz_at_4v5
Max clock hz at 4v5.
Definition Electrical.h:81
@ max_clock_hz_at_2v7
Max clock hz at 2v7.
Definition Electrical.h:80
@ available
Operating profile has defined limits.
Definition Electrical.h:65
@ min_temperature_c
Min temperature (degrees C).
Definition Electrical.h:74
@ max_temperature_c
Max temperature (degrees C).
Definition Electrical.h:75
@ min_voltage_mv
Min voltage (mV).
Definition Electrical.h:69
@ max_voltage_mv
Max voltage (mV).
Definition Electrical.h:70
Used when no operating grade has been selected.
Definition Electrical.h:136
@ max_voltage_mv
Max voltage (mV).
Definition Electrical.h:144
@ min_voltage_mv
Min voltage (mV).
Definition Electrical.h:143
@ max_clock_hz_at_4v5
Max clock hz at 4v5.
Definition Electrical.h:155
@ max_clock_hz_at_1v8
Max clock hz at 1v8.
Definition Electrical.h:153
@ max_clock_hz_at_2v7
Max clock hz at 2v7.
Definition Electrical.h:154
@ available
Operating profile has defined limits.
Definition Electrical.h:139
@ max_temperature_c
Max temperature (degrees C).
Definition Electrical.h:149
@ min_temperature_c
Min temperature (degrees C).
Definition Electrical.h:148
Electrical characteristics of the ATmega328P.
Definition Electrical.h:17
static const Grade selected_grade
Definition Electrical.h:170
@ io_test_current_at_3v_ma
I/O test current at 3v (mA).
Definition Electrical.h:42
@ internal_bandgap_min_mv
Internal bandgap min (mV).
Definition Electrical.h:46
@ absolute_max_current_per_port_ma
Absolute max current per port (mA).
Definition Electrical.h:40
@ reset_pullup_max_kohm
Reset pullup max (kOhm).
Definition Electrical.h:52
@ absolute_max_voltage_mv
Absolute max voltage (mV).
Definition Electrical.h:37
@ absolute_max_vcc_gnd_current_ma
Absolute max VCC gnd current (mA).
Definition Electrical.h:39
@ reset_pullup_min_kohm
Reset pullup min (kOhm).
Definition Electrical.h:51
@ absolute_max_io_pin_current_ma
Absolute max I/O pin current (mA).
Definition Electrical.h:38
@ internal_bandgap_max_mv
Internal bandgap max (mV).
Definition Electrical.h:48
@ io_test_current_at_5v_ma
I/O test current at 5v (mA).
Definition Electrical.h:41
@ avcc_max_difference_from_vcc_mv
AVCC max difference from VCC (mV).
Definition Electrical.h:45
@ io_sink_group_max_current_ma
I/O sink group max current (mA).
Definition Electrical.h:43
@ internal_bandgap_typical_mv
Internal bandgap typical (mV).
Definition Electrical.h:47
@ io_source_group_max_current_ma
I/O source group max current (mA).
Definition Electrical.h:44
@ io_pullup_min_kohm
I/O pullup min (kOhm).
Definition Electrical.h:49
@ io_pullup_max_kohm
I/O pullup max (kOhm).
Definition Electrical.h:50
@ absolute_max_current_is_not_a_design_target
Absolute max current is not a design target.
Definition Electrical.h:57
@ absolute_temperature_max_c
Absolute temperature max (degrees C).
Definition Electrical.h:30
@ storage_temperature_max_c
Storage temperature max (degrees C).
Definition Electrical.h:32
@ absolute_temperature_min_c
Absolute temperature min (degrees C).
Definition Electrical.h:29
@ storage_temperature_min_c
Storage temperature min (degrees C).
Definition Electrical.h:31
Grade
Supported operating grades.
Definition Electrical.h:20
@ Unspecified
No operating grade selected.
Definition Electrical.h:21
@ Industrial85C
Industrial grade, up to 85 C.
Definition Electrical.h:22
@ Automotive125C
Automotive grade, up to 125 C.
Definition Electrical.h:24
@ Industrial105C
Industrial grade, up to 105 C.
Definition Electrical.h:23
Device-specific definitions for the ATmega328P.
Definition ADC.h:14