ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
PWM.h
Go to the documentation of this file.
1
5
6#ifndef ATMEGA328P_DEFINITIONS_PWM_H
7#define ATMEGA328P_DEFINITIONS_PWM_H
8
9#include <stdint.h>
10#include "Config.h"
11#include "Pin.h"
12#include "Timer.h"
13
15namespace atmega328p
16{
68}
69
70#endif
Selects the ATmega328P package and operating grade.
Logical GPIO pin and port identifiers.
Timer/counter modes, widths, and clock selections.
PWM channel definitions.
Definition PWM.h:19
OutputPin
Logical pins carrying the output-compare channels.
Definition PWM.h:41
Channel
Peripheral channel identifiers.
Definition PWM.h:22
@ OC2A
4 - Output compare 2A on PB3.
Definition PWM.h:27
@ OC2B
5 - Output compare 2B on PD3.
Definition PWM.h:28
@ OC0A
0 - Output compare 0A on PD6.
Definition PWM.h:23
@ OC0B
1 - Output compare 0B on PD5.
Definition PWM.h:24
@ OC1B
3 - Output compare 1B on PB2.
Definition PWM.h:26
@ OC1A
2 - Output compare 1A on PB1.
Definition PWM.h:25
@ timer0_supports_phase_frequency_correct
Timer0 supports phase frequency correct.
Definition PWM.h:59
@ timer0_resolution_bits
Timer0 resolution width (bits).
Definition PWM.h:53
@ timer2_resolution_bits
Timer2 resolution width (bits).
Definition PWM.h:56
@ timer2_supports_phase_frequency_correct
Timer2 supports phase frequency correct.
Definition PWM.h:65
@ timer0_supports_fast
Timer0 supports fast.
Definition PWM.h:57
@ timer1_min_resolution_bits
Timer1 min resolution width (bits).
Definition PWM.h:54
@ timer1_supports_phase_correct
Timer1 supports phase correct.
Definition PWM.h:61
@ timer2_supports_fast
Timer2 supports fast.
Definition PWM.h:63
@ timer2_supports_phase_correct
Timer2 supports phase correct.
Definition PWM.h:64
@ timer0_supports_phase_correct
Timer0 supports phase correct.
Definition PWM.h:58
@ channel_count
Number of channel.
Definition PWM.h:52
@ timer1_supports_fast
Timer1 supports fast.
Definition PWM.h:60
@ timer1_max_resolution_bits
Timer1 max resolution width (bits).
Definition PWM.h:55
@ timer1_supports_phase_frequency_correct
Timer1 supports phase frequency correct.
Definition PWM.h:62
Mode
Peripheral operating modes.
Definition PWM.h:33
@ PhaseAndFrequencyCorrect
Dual-slope phase/frequency-correct PWM.
Definition PWM.h:36
@ PhaseCorrect
Dual-slope phase-correct PWM.
Definition PWM.h:35
@ Fast
Single-slope fast PWM.
Definition PWM.h:34
Device-specific definitions for the ATmega328P.
Definition ADC.h:14