|
|||||||||||
Technical Support On-Line Manuals µVision3 User's Guide µVision3 Overview User Interface Creating Applications Utilities Debugging Debug Commands Debug Functions Simulation Digital Input Push Button Interrupt Signal Impulse Patterns Analog Input Square Wave Signal Saw Tooth Signal Sine Wave Noise Signal Signal Combination UART Communication CAN Communication Dialog Pages Virtual Simulation Registers (VTREG) Simulate Incoming Messages Process Outgoing Messages Send Periodic Messages I²C Simulation I²C Concepts I²C Simulation Virtual Simulation Registers (VTREG) Simulating an I²C Device Application Examples SPI Simulation Flash Programming Dialogs Example Programs Command Line Appendix |
Interrupt SignalThe following Signal Function template may be used to generate an GPIO interrupt signal. // // Generates a number of pulses on GPIO 0.14 // signal void GPIO_0_14_Square (unsigned int pulses) { float frequency; // pulse frequency in Hz frequency = 1000; // 1 KHz printf ("%d Square Pulses on GPIO 0.14\n", pulses); while (pulses) { PORT0 |= (1 << 14); // set pin 0.14 swatch (0.5 / frequency); PORT0 &= ~(1 << 14); // reset pin 0.14 swatch (0.5 / frequency); pulses--; } } GPIO_0_14_Square (100); // 100 Pulses at debugger startup define button "EINT1 1 Pulse", "GPIO_0_14_Square (1)" define button "EINT1 100Pulses", "GPIO_0_14_Square (100)" The above setting generates the following signal on PORT0. The Logic Analyzer output shown is generated with the example project Using Interrupt EINT1 on Keil MCB2100 Board available at www.keil.com/download.
| ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.