阅读:1841回复:2
2440 PWM输出
s3c2440 PWM
按照手册上设置5个定时器后,观察寄存器输出(TCNTOn)值 TCNTO0,TCNTO1,TCNTO2,TCNTO3,TCNTO4: 8633,5181,24113,550,11317 28193,1665,23381,623,8387 27769,4275,22674,800,5561 27346,884,21968,977,2735 26937,3620,21288,258,14 26545,480,20634,645,29148 26121,3090,19927,822,26322 25682,5575,19195,895,23392 25242,2059,18462,968,20462 24802,4543,17729,39,17531 24379,1153,17023,217,14706 23939,3637,16290,290,11776 23500,121,15558,362,8845 23091,2857,14878,644,6124 22668,5467,14171,822,3299 22244,2076,13465,999,473 21836,4812,12785,280,29502 21396,1296,12052,353,26572 20956,3780,11319,425,23641 20517,264,10587,498,20711 …… 可以看出寄存器已经设置正确了,定时器正常工作 可是为什么用示波器观察TOUTn都输出为0呢? 还有什么是决定PWM输出的呢? 好疑惑啊 |
|
|
沙发#
发布于:2007-11-22 10:48
IO口你设置对了吗,是否是PWM输出
|
|
板凳#
发布于:2007-11-22 11:30
引用第1楼wince_lover于2007-11-22 10:48发表的 : 谢谢,忘记设置了,原以为只有一种输出呢 |
|
|