资 源 简 介
The first part of this ApNote will give a basic understanding of the PCP architecture.This contains the two different ways to use the Code Memory, the 8 General Purpose Registers and the three different Context settings. Later in the second part, this concept will be described in more detail on different examples.1 Introduction 32 The PCP Structure 42.1 Code Memory Organization 42.2 PCP Parameter RAM (PRAM) Organization 52.3 Context Registers....72.4 Example Configurations 92.4.1 Normal, Multi Channel 92.4.2 Restore PC, Multi-Channel 122.4.3 Small Context .153 A PCP program: The Pulse With Modulation (PWM) in simple steps.173.1 The PCP-Program Structure 173.2 Simple PWM.193.3 Complex PWM and interrupt to the CPU....214 Hints on how to program the PCP..234.1 Initial PC.234.1.1 Channel Entry Table.234.1.2 PC Resume ..234.2 Channel Management for Minimum Context ...244.2.1 Global Registers ...254.2.2 Interrupt Windows.254.3 Dispatch of Low Priority Tasks...254.4 Code Reuse Across Channels (Call / Return) .264.5 Case-like Code Switches (Computed Go-To) .265 Appendix – PWM program listing ...27