AP32 Timer behaver with Cyclone

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

AP32 Timer behaver with Cyclone

3,371件の閲覧回数
byteybird1
Contributor I
I'm using the P&E Cyclone Pro for development. The P&E oscillator is 9.8304MHz. I'm also using the same frequency for deployment. What I have notice is that when using the Cyclone, the timer is running at twice the frequency than when the Cyclone is not connected. PTA1, PTA2 and PTB0 are used during reset by the Cyclone but not during normal execution.

Any suggestions as to what could cause the timer to running at a differece rate (factor of 2) when the Cyclone is connected.
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

856件の閲覧回数
byteybird1
Contributor I
That did the trick, thanks. I'll have to take some time and read that section. The timer clock is now the external clock divided by 4 with and without using the Cyclone Pro. But in either case the clock (external oscillator) as measure using at scope is 9.8Mhz. Setting the divide by 2 must have cause the internal divider to be set to 2 instead of the default setting of 4 when the Cyclone connected to the monitor.
0 件の賞賛
返信

856件の閲覧回数
petr
Contributor I
Hello
Just guessing. I don't have the cyclone pro, just multilink. However, the connection dialog of the multilink allows you to select the divider used to derive bus clock vrom the oscillator clock - 2 or 4. Make sure that you select the 4, which corresponds to the divider normal mode. The option affects the value on PTB0 pin during startup. For further explanation see datasheet of the AP32 and chapter Monitor ROM.
Regards
Petr
0 件の賞賛
返信

856件の閲覧回数
alex_spotw
Contributor III
Hi:

Maybe your board runs from one oscillator in one case , and from other in the other case? Or maybe the Cyclone enables the internal PLL and the stand-alone application doesn't?

Regards,

ALex
0 件の賞賛
返信