Skip to content

Commit 758f36c

Browse files
committedSep 1, 2013
Use TE to generate the wave
1 parent 1b8a8b4 commit 758f36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ ISR(TIMER1_COMPA_vect)
5353
{
5454
asm volatile("sbi %0, %1" : :"I" (_SFR_IO_ADDR(PORTD)) , "I" (PD4)); //SET_DALI_TX(); // DALI output pin high
5555
value = 0;
56-
OCR1A = 600;
56+
OCR1A = TE; //600;
5757
}
5858
else
5959
{
6060
asm volatile("cbi %0, %1" : :"I" (_SFR_IO_ADDR(PORTD)) , "I" (PD4)); //RESET_DALI_TX(); // DALI output pin low
6161
value = 1;
62-
OCR1A = 260;
62+
OCR1A = TE; //260;
6363
}
6464

6565
}

0 commit comments

Comments
 (0)
Please sign in to comment.