Keil™, An ARM® Company

C166 User's Guide

PECDEF Compiler Directive

Abbreviation PD
Arguments PEC channel numbers from 0-7. Numbers must be separated by commas if more than one is specified. Channel ranges may be specified using a dash between the numbers.
Default None.
µVision Options — C166 — Misc Controls.
Description 

The PECDEF directive reserves memory space required by the PEC source and destination pointers for the specified channels. The PEC source and destination pointers are used for PEC transfers and are located in internal RAM at address 0FDE0h-0FDFFh. By default, this memory is available to the application program.

Example 
C166 SAMPLE.C PECDEF (0, 2, 4)

// Reserve memory for PEC channel 6
#pragma PD (6)

// Reserve memory for PEC channels 1-7
#pragma PD (1, 2, 3, 4, 5, 6, 7)

// Reserve memory for PEC channels 1-3 and 5-7
#pragma PD (1 - 3, 5 - 7)