|
|||||||||||
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 |
Impulse PatternsThe following Signal Function generates a signal impulse pattern as it is typical in many embedded systems. In this case it is the input of a DTMF receiver as they are common in telecom applications. // // Generate Input Signal Pattern from a DTMF Receiver // signal void SendDtmf (unsigned char digit) { if (digit == 0) digit = 10; PORT2 = (PORT2 & 0x07) | (digit << 4); swatch (0.06); PORT2 |= 0x8; } signal void Send (void) { SendDtmf (12); // send digit 12 = '*' swatch (0.12); SendDtmf (7); // send digit 7 swatch (0.12); SendDtmf (2); // send digit 2 swatch (0.12); SendDtmf (11); // send digit 11 = '#' } The above Signal Function generates the following input pattern on Port 2.
| ||||||||||
|
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.