M52233DEMO, How Generate Edge Triggered Signals?

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

M52233DEMO, How Generate Edge Triggered Signals?

ソリューションへジャンプ
904件の閲覧回数
mike3
Contributor I

I'm writing a program in assembly language that performs an action triggered by the rising and falling edge of a clock signal.

  • How can I generate a clock signal with with the M52233DEMO board, is there a built-in clock signal generator?
  • And how can I have rising and falling edge triggered signals based on that clock?
ラベル(1)
0 件の賞賛
返信
1 解決策
815件の閲覧回数
TomE
Specialist II

You could generate a slow and somewhat inaccurate clock by driving a GPIO pin high and low from your software, but I don't think that's what you mean./

Read up on the capabilities of the GPT, DTIM and PWM modules. You can program them to generate hardware clocks from your board.

You can also program the DTIM and GPTs to generate an interrupt when an external signal changes state (rising or falling edge) and to capture the exact time that happened.

But that doesn't seem to be what you';re after. I don't understand what you mean by having your code generate a clock and perform actions based on that same clock. It seems like you have a project to emulate some hardware design in software, and the project hasn't been describer or understood properly.

You can program a hardware timer to generate interrupts and then have the interrupt service routine do whatever is needed.

Tom

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
816件の閲覧回数
TomE
Specialist II

You could generate a slow and somewhat inaccurate clock by driving a GPIO pin high and low from your software, but I don't think that's what you mean./

Read up on the capabilities of the GPT, DTIM and PWM modules. You can program them to generate hardware clocks from your board.

You can also program the DTIM and GPTs to generate an interrupt when an external signal changes state (rising or falling edge) and to capture the exact time that happened.

But that doesn't seem to be what you';re after. I don't understand what you mean by having your code generate a clock and perform actions based on that same clock. It seems like you have a project to emulate some hardware design in software, and the project hasn't been describer or understood properly.

You can program a hardware timer to generate interrupts and then have the interrupt service routine do whatever is needed.

Tom

0 件の賞賛
返信