M52233DEMO, How Generate Edge Triggered Signals?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

M52233DEMO, How Generate Edge Triggered Signals?

Jump to solution
887 Views
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?
Labels (1)
0 Kudos
Reply
1 Solution
798 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
799 Views
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 Kudos
Reply