Keil Logo

C16x/ST10 PEC Example Program

The following example program shows how to program PEC channel 0 for data transfers to the serial port transmit buffer. It transmits the string "0123456789\n" out the serial port and then generates a transmit interrupt (serial_TX_IRQ). The interrupt function resets the PEC 0 transfer and the string is sent again.

To run this example...

  1. Start the debugger.
  2. Open the serial window.
  3. Run the program.

You should see the contents of the string displayed in the serial window each time the interrupt function is invoked.

C16X_PEC.ZIP (16K)
Tuesday, July 2, 2002
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.