帮忙看看这个中断频率
在32U4 (Leonardo)上对Timer0做如下设置:TCCR0A = 0x02;
TCCR0B = 0x04; // these put the timer into CTC mode and set the prescaler to 256
OCR0A = 0x7C; // timer0 counts to 124, then gets reset to 0
TIMSK0 = 0x02; // enable interrupt on OCR0A match
大家帮忙算算这个中断频率是多少? 16 MHz / 256 * 124 = 7.75MHz 明显不对
公式如图
我算出来的是250Hz,但是老外算出来的是500,不知道他们为什么会忽略那个除2,难道是我漏了什么吗? zw111_2001 发表于 2013-12-1 23:05 static/image/common/back.gif
明显不对
公式如图
波的频率和高低电平切换频率是俩概念。
页:
[1]