Keil™, An ARM® Company

File Download Area

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 02, 2002