my504 (05.12.2016 15:10 - 15:18, просмотров: 237) ответил MBedder на Код давай
Инициализация ОС1 OC1init:
clr OC1CON1
clr OC1CON2
clr OC1TMR
mov # 100, W0
mov W0, OC1R
mov # 100, W0
mov W0, OC1RS
mov # 0b0000000010010000, W0 ; trig from IC1
mov W0, OC1CON2
mov # 0b0001110000000001, W0 ; one shot, clk-Tcy
mov W0, OC1CON1
clr OC1TMR
return