M52233DEMO, How Generate Edge Triggered Signals?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

M52233DEMO, How Generate Edge Triggered Signals?

跳至解决方案
894 次查看
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 解答
805 次查看
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 回复
806 次查看
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 项奖励
回复