(0 COM1B1) - (0 COM1B0) Ini Sama Dengan Diatas ..! OC1B Output ..!

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

TCCR1A = (0<<COM1A1) | (1<<COM1A0)  Pilih kelakuan output (OC1A output: Toggle on compare match)

(1<<COM1A1) | (0<<COM1A0)  Pilih kelakuan output (OC1A output: Clear on compare match)

(1<<COM1A1) | (1<<COM1A0)  Pilih kelakuan output (OC1A output: Set on compare match)

| (0<<COM1B1) | (0<<COM1B0)  Ini sama dengan diatas …..! OC1B output …..!

| (0<<WGM11) | (1<<WGM10);  Pilih mode yang digunakan (Mode: Ph. correct PWM top=0x00FF)

| (1<<WGM11) | (0<<WGM10);  Pilih mode yang digunakan (Mode: Ph. correct PWM top=0x01FF)

| (1<<WGM11) | (1<<WGM10);  Pilih mode yang digunakan (Mode: Ph. correct PWM top=0x03FF)
TCCR1B = (1<<ICNC1) | (0<<ICES1)  khusus untuk input captur (Noise Canceler: On)

(0<<ICNC1) | (1<<ICES1)  khusus untuk input captur (Input Capture on Rising Edge)

| (0<<WGM13) | (0<<WGM12)  Pilih mode yang digunakan

| (0<<CS12) | (0<<CS11) | (0<<CS10);  Prescaler

TCNT1H=0x00;

TCNT1L=0x00;

ICR1H=0x00;

ICR1L=0x00;

OCR1AH=0x00;

OCR1AL=0x00;

OCR1BH=0x00;

OCR1BL=0x00;

You might also like