作者RKkyo (Red)
看板Electronics
標題[請益] 8051中斷問題
時間Fri Jan 18 16:32:34 2013
MCU:C8051 F120
使用Silicon Laboratories IDE編輯
程式碼:
http://dl.dropbox.com/u/104459536/AD9954_single_freq.c
問題:使用Timer4做中斷,當其益位時ChangeAmplitude=1
那麼在main()主程式中的判斷不會成功
且PS0=~PS0;的功能失敗(用示波器看PS0的腳位都一直在logic 1)
請問大大們問題何在 and 如何解決?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.16.46
1F:推 mosquito520:如果你是用KeilC的話 要不要直接模擬看看 01/19 01:22