Keil Logo

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)
  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.