mod01 ex02 works

This commit is contained in:
hugo LAMY
2025-03-06 12:15:25 +01:00
parent fd2be66727
commit 9398b623af
3 changed files with 42 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ int main() {
// -> Table 16-4 : use bit WGM12 to set mode ctc
// -> 16.11.2 : bit WGM12 is located in register TCCR1B
TCCR1A |= (1 << COM1A0 ) ; // Enable timer 1 Compare Output channel A in toggle mode
TCCR1A |= (1 << COM1A0); // enable timer 1 Compare Output channel A in toggle mode
// -> Table 14-3 : alternate functions for PORTB1 is OC1A (Timer/Counter1 Output Compare Match A Output)
// -> 14.3.1 : OC1A/PCINT1 Port B, Bit 1