rm0045 reference manual - home - s · pdf file1.8.1 hardware design ... 15.4.1 edma basic data...

868
September 2013 Doc ID 16886 Rev 6 1/868 RM0045 Reference manual SPC560D30L1, SPC560D30L3, SPC560D40L1, SPC560D40L3 32-bit MCU family built on the embedded Power Architecture ® Introduction The SPC560D30/40 is a Power Architecture ® based microcontroller that target automotive vehicle body applications such as: Central body electronics Vehicle body controllers Smart junction boxes Front modules Body peripherals Door control Seat control The SPC560D30/40 family expands the range of the SPC560B microcontroller family. It provides the scalability needed to implement platform approaches and delivers the performance required through the use of increasingly sophisticated software architectures. The advanced and cost-efficient host processor core of the SPC560D30/40 automotive controller complies with the Power Architecture specification, and only implements the VLE (variable-length encoding) APU, providing improved code density. It operates at speeds of up to 48 MHz and offers high performance processing optimized for low power consumption. It also capitalizes on the available development infrastructure of current Power Architecture ® devices and is supported with software drivers, operating systems and configuration code to assist with users implementations. This document describes the features of the SPC560D30/40 and options available within the family members, and highlights important electrical and physical characteristics of the device. www.st.com

Upload: vandan

Post on 06-Feb-2018

228 views

Category:

Documents


3 download

TRANSCRIPT

  • September 201

    RM0045

    Reference manual

    SPC560D30L1, SPC560D30L3, SPC560D40L1, SPC560D40L3

    32-bit MCU family built on the embedded Power Architecture

    IntroductionThe SPC560D30/40 is a Power Architecture based microcontroller that target automotive vehicle body applications such as:

    Central body electronics

    Vehicle body controllers

    Smart junction boxes

    Front modules

    Body peripherals

    Door control

    Seat control

    The SPC560D30/40 family expands the range of the SPC560B microcontroller family. It provides the scalability needed to implement platform approaches and delivers the performance required through the use of increasingly sophisticated software architectures. The advanced and cost-efficient host processor core of the SPC560D30/40 automotive controller complies with the Power Architecture specification, and only implements the VLE (variable-length encoding) APU, providing improved code density. It operates at speeds of up to 48 MHz and offers high performance processing optimized for low power consumption. It also capitalizes on the available development infrastructure of current Power Architecture devices and is supported with software drivers, operating systems and configuration code to assist with users implementations.

    This document describes the features of the SPC560D30/40 and options available within the family members, and highlights important electrical and physical characteristics of the device.

    3 Doc ID 16886 Rev 6 1/868

    www.st.com

    http://www.st.com

  • RM0045 Contents

    Contents

    1 Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    1.2 Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    1.3 Guide to this reference manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    1.4 Register description conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

    1.5 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

    1.6 Developer support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

    1.7 How to use the SPC560D30/40 documents . . . . . . . . . . . . . . . . . . . . . . . 44

    1.7.1 The SPC560D30/40 document set . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

    1.7.2 Reference manual content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

    1.8 Using the SPC560D30/40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

    1.8.1 Hardware design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

    1.8.2 Input/output pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

    1.8.3 Software design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

    1.8.4 Other features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

    2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

    2.1 The SPC560D30/40 microcontroller family . . . . . . . . . . . . . . . . . . . . . . . 49

    2.2 SPC560D30/40 device comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

    2.3 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

    2.4 Feature summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

    3 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

    4 Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

    4.1 Package pinouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

    4.2 Pad configuration during reset phases . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

    4.3 Voltage supply pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

    4.4 Pad types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

    4.5 System pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

    4.6 Functional ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

    5 Microcontroller Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

    Doc ID 16886 Rev 6 2/868

  • Contents RM0045

    5.1 Boot mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

    5.1.1 Flash memory boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

    5.1.2 Serial boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

    5.1.3 Censorship . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

    5.2 Boot Assist Module (BAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

    5.2.1 BAM software flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

    5.2.2 LINFlex (RS232) boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

    5.2.3 FlexCAN boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

    5.3 System Status and Configuration Module (SSCM) . . . . . . . . . . . . . . . . . 90

    5.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

    5.3.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

    5.3.3 Modes of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

    5.3.4 Memory map and register description . . . . . . . . . . . . . . . . . . . . . . . . . . 91

    6 Clock Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

    6.1 Clock architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

    6.2 Clock gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

    6.3 Fast external crystal oscillator (FXOSC) digital interface . . . . . . . . . . . . . 99

    6.3.1 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

    6.3.2 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

    6.3.3 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

    6.4 Slow internal RC oscillator (SIRC) digital interface . . . . . . . . . . . . . . . . 102

    6.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

    6.4.2 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

    6.4.3 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

    6.5 Fast internal RC oscillator (FIRC) digital interface . . . . . . . . . . . . . . . . . 103

    6.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

    6.5.2 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

    6.5.3 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

    6.6 Frequency-modulated phase-locked loop (FMPLL) . . . . . . . . . . . . . . . . 105

    6.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

    6.6.2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

    6.6.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

    6.6.4 Memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

    6.6.5 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

    6.6.6 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

    3/868 Doc ID 16886 Rev 6

  • RM0045 Contents

    6.6.7 Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

    6.7 Clock monitor unit (CMU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

    6.7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

    6.7.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

    6.7.3 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

    6.7.4 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

    6.7.5 Memory map and register description . . . . . . . . . . . . . . . . . . . . . . . . . 116

    7 Clock Generation Module (MC_CGM). . . . . . . . . . . . . . . . . . . . . . . . . . 121

    7.1 Introduction . . . . . . . . . . . . . . . . . . . .