Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Fujitsu Manuals
Microcontrollers
FR Series
Application note
Fujitsu FR Series Application Note
32-bit microcontroller
Hide thumbs
Also See for FR Series
:
Application note
(35 pages)
,
Instruction manual
(314 pages)
,
Application note
(29 pages)
1
2
3
Table Of Contents
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
page
of
29
Go
/
29
Contents
Table of Contents
Bookmarks
Table of Contents
Revision History
Warranty and Disclaimer
Contents
Table of Contents
1 Introduction
2 Settings of the Start91460.Asm
Controller Device (DEVICE)
Boot / Flash Security (BOOT_FLASH_SEC)
Stack Type and Stack Size (STACKUSE
Stackuse
Stack_Reserve, Stack_Sys_Size, Stack_Usr_Size
Stack_Fill, Stack_Pattern
Copy Code from Flash to I-RAM (I_RAM)
Low-Level Library Interface (CLIBINIT)
C++ Startup (CPLUSPLUS)
Clock Configuration
Clock Selection (CLOCKSPEED)
Select Clock Modulator (CLOMO, CMPR)
External Bus Interface (EXTBUS)
3 User Clock Settings (Clockspeed == Clock_User)
Clock Source (CLOCKSOURCE, ENABLE_SUBCLOCK)
PLL Ratio (PLLSPEED)
PLL Auto Gear-Up and -Down (DIV_G, MUL_G)
Clock Divider (CPUCLOCK, PERCLOCK, EXTBUSCLOCK)
CAN Clock (PSCLOCKSOURCE, PSDVC, CANCLOCK)
Voltage Regulator (REGULATORCTRL, REGULATORSEL)
Memory Controller (FLASHCONTROL, FLASHREADT, FLASHMWT2)
4 Section and Data Declaration
Default Sections
Additional Sections
Advertisement
Quick Links
Download this manual
Fujitsu Microelectronics Europe
MCU-AN-300021-E-V10
Application Note
FR FAMILY
32-BIT MICROCONTROLLER
MB91460 SERIES
START91460.ASM
APPLICATION NOTE
Table of
Contents
Previous
Page
Next
Page
1
2
3
4
5
Advertisement
Table of Contents
Related Manuals for Fujitsu FR Series
Microcontrollers Fujitsu FR Family Instruction Manual
32-bit microcontroller (314 pages)
Microcontrollers Fujitsu FR Family Instruction Manual
32-bit microcontroller (304 pages)
Microcontrollers Fujitsu FR Series Application Note
32-bit microcontroller (35 pages)
Microcontrollers Fujitsu FR Series Application Note
32-bit direct memory access (29 pages)
Computer Hardware Fujitsu MB91460 SERIES FR60 User Manual
32-bit microcontroller (1038 pages)
Microcontrollers Fujitsu MB91460 Series Application Note
Fr family 32-bit microcontroller flash programming (77 pages)
Network Hardware Fujitsu MB88121 SERIES User Manual
Fujitsu switch user guide (73 pages)
Microcontrollers Fujitsu MB88121 Application Note
32-bit microcontroller (58 pages)
Motherboard Fujitsu MB91460 SERIES User Manual
(45 pages)
Microcontrollers Fujitsu MB91460 Getting Started
Emulation system (41 pages)
Microcontrollers Fujitsu F2MC-FR Series Application Note
32-bit microcontroller (26 pages)
Microcontrollers Fujitsu MB91460 Series Application Note
(23 pages)
Microcontrollers Fujitsu FR60 Hardware Manual
32-bit microcontroller mb91301 series (636 pages)
Microcontrollers Fujitsu FR60 Hardware Manual
(664 pages)
Microcontrollers Fujitsu ALL FR 460 Series Application Note
(22 pages)
Microcontrollers Fujitsu FR60 Series User Manual
Socket adapter board (21 pages)
Summary of Contents for Fujitsu FR Series
Page 1
Fujitsu Microelectronics Europe MCU-AN-300021-E-V10 Application Note FR FAMILY 32-BIT MICROCONTROLLER MB91460 SERIES START91460.ASM APPLICATION NOTE...
Page 2: Revision History
Start91460.asm Revision History Revision History Date Issue 2007-03-30 First draft This document contains 29 pages. MCU-AN-300021-E-V10 - 2 - © Fujitsu Microelectronics Europe GmbH...
Page 3: Warranty And Disclaimer
Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer´s use or the transport.
Page 4: Table Of Contents
CAN clock (PSCLOCKSOURCE, PSDVC, CANCLOCK) ........21 Voltage Regulator (REGULATORCTRL, REGULATORSEL) ......... 23 Memory Controller (FLASHCONTROL, FLASHREADT, FLASHMWT2) ....25 4 SECTION AND DATA DECLARATION ................28 Default Sections ...................... 28 Additional Sections....................29 MCU-AN-300021-E-V10 - 4 - © Fujitsu Microelectronics Europe GmbH...
Page 5: Introduction
- Configuration part for easy step by step set-up of the startup code - Startup code for pre-setting of core and external bus registers - Startup code for memory initialization according to FCC911-compiler sections - Startup file is linkage order independent © Fujitsu Microelectronics Europe GmbH - 5 - MCU-AN-300021-E-V10...
Page 6: Settings Of The Start91460.Asm
Note: If the device MB91469G is selected, the section SECURITY_VECTORS is located from 0x24:8000 – 0x24:800F. Note: If the ROMless device MB91461R is selected no section SECURITY_VECTORS is reserved. MCU-AN-300021-E-V10 - 6 - © Fujitsu Microelectronics Europe GmbH...
Page 7: Stack Type And Stack Size (Stackuse
For estimating necessary stack size the compiler offers the “-INF stack” option. With it the compiler generates stack information files (extension “stk”), which list the number of bytes necessary to execute each function. These stack information files are already available for © Fujitsu Microelectronics Europe GmbH - 7 - MCU-AN-300021-E-V10...
Page 8: Stack_Fill, Stack_Pattern
The segment CODE has to be renamed to IRAM for the code, which should be copied the the instruction RAM during the startup. To rename the segment CODE to IRAM, the following pragma instruction can be used. MCU-AN-300021-E-V10 - 8 - © Fujitsu Microelectronics Europe GmbH...
Page 9: Low-Level Library Interface (Clibinit)
If using C++ sources, activate this function to create the section EXT_CTOR_DTOR. Available settings for CPLUSPLUS: - ON - OFF Example: C++ is not used. #set CPLUSPLUS ; <<< activate if c++ files are used © Fujitsu Microelectronics Europe GmbH - 9 - MCU-AN-300021-E-V10...
Page 10: Clock Configuration
= 4 MHz, PLL is activated CPU clock (CLKB) = 80 MHZ Peripheral clock (CLKP) = 20 MHZ Ext. bus clock (CLKT) = 40 MHZ CAN clock (CLKCAN) = 20 MHz, using PLLx MCU-AN-300021-E-V10 - 10 - © Fujitsu Microelectronics Europe GmbH...
Page 11: Select Clock Modulator (Clomo, Cmpr)
The clock modulator is intended for the reduction of electromagnetic interference - EMI, by spreading the spectrum of the clock signal over a wide range of frequencies. Available settings for CLOMO: - ON - OFF © Fujitsu Microelectronics Europe GmbH - 11 - MCU-AN-300021-E-V10...
Page 12
The clock modulator should be enabled and the value of the CMPR should be set to 0x026F. #set CLOMO ; <<< Enable /disable clock modulator #set CMPR 0x026F ; <<< Ref. to the data sheet, CMPR MCU-AN-300021-E-V10 - 12 - © Fujitsu Microelectronics Europe GmbH...
Page 13: External Bus Interface (Extbus)
MEMORY SETTING REGISTER for extend type - A for SDRAM/FCRAM auto Refresh control register - RCR - TCR Pin/Timing Control Register - CHER Cache Enable Register - PFR0 – 10 Port Function Register 0-7 © Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-300021-E-V10...
Page 14: User Clock Settings (Clockspeed == Clock_User)
The clock modulator is not part of the user clock settings, but part of the general settings. The user clock settings can be found in the startup91460.asm in the chapter ”5.1 CLOCKSPEED == CLOCK_USER”. MCU-AN-300021-E-V10 - 14 - © Fujitsu Microelectronics Europe GmbH...
Page 15: Clock Source (Clocksource, Enable_Subclock)
- OFF Sub clock is not enabled Example: The PLL should be used and the sub clock should not be enabled. #set CLOCKSOURCE MAINPLLCLOCK ;<<< Clocksource #set ENABLE_SUBCLOCK OFF ;<<< Subclock: ON/OFF © Fujitsu Microelectronics Europe GmbH - 15 - MCU-AN-300021-E-V10...
Page 16: Pll Ratio (Pllspeed)
0x0111 72 MHz PLLx19 0x0112 76 MHz PLLx20 0x0113 80 MHz PLLx21 0x0114 84 MHz Not: MB91V460A, MB91464A, MB91465K, MB91463N, MB91467R PLLx22 0x0115 88 MHz Not: MB91V460A, MB91464A, MB91465K, MB91463N, MB91467R MCU-AN-300021-E-V10 - 16 - © Fujitsu Microelectronics Europe GmbH...
Page 17
Note: Never exceed the maximum operation frequency. Check the corresponding data sheet. Example: The PLL should be set to 4 MHz x 16 = 64 MHz. #set PLLSPEED 0x010F ;<<< 0x48Ch, 0x48Dh: PLLDIVM/N ; 64 MHz © Fujitsu Microelectronics Europe GmbH - 17 - MCU-AN-300021-E-V10...
Page 18: Pll Auto Gear-Up And -Down (Div_G, Mul_G)
0x0F PLLx17 0x0F 0x0F PLLx18 0x0F 0x13 PLLx19 0x0F 0x13 PLLx20 0x0F 0x13 PLLx21 0x0F 0x13 Not: MB91V460A, MB91464A, MB91465K, MB91463N, MB91467R PLLx22 0x0F 0x17 Not: MB91V460A, MB91464A, MB91465K, MB91463N, MB91467R MCU-AN-300021-E-V10 - 18 - © Fujitsu Microelectronics Europe GmbH...
Page 19
Note: MUL_G corresponds to the register PLLMULG at the addresses 0x48Fh. Example: The PLL should be set to 4 MHz x 16 = 64 MHz. #set DIV_G 0x0F ;<<< 0x48Eh: PLLDIVG; #set MUL_G 0x0F ;<<< 0x48Fh: PLLMULG; © Fujitsu Microelectronics Europe GmbH - 19 - MCU-AN-300021-E-V10...
Page 20: Clock Divider (Cpuclock, Perclock, Extbusclock)
Note: PERCLOCK corresponds to the register DIV0R_P at the addresses 0x486h. Note: EXTBUSCLOCK corresponds to the register DIV1R_T at the addresses 0x487h. Note: Never exceed the maximum operation frequency. Check the corresponding data sheet. MCU-AN-300021-E-V10 - 20 - © Fujitsu Microelectronics Europe GmbH...
Page 21: Can Clock (Psclocksource, Psdvc, Canclock)
128 MHz 4 MHz PLLx9 36 MHz 144 MHz 4 MHz PLLx10 40 MHz 160 MHz 4 MHz PLLx11 44 MHz 88 MHz 4 MHz PLLx12 48 MHz 96 MHz 4 MHz © Fujitsu Microelectronics Europe GmbH - 21 - MCU-AN-300021-E-V10...
Page 22
CAN is not influenced by the clock modulation. If the CLKCAN source is set core clock CLKB then the clock for the CAN is also modulated (if the clock modulator is enabled). MCU-AN-300021-E-V10 - 22 - © Fujitsu Microelectronics Europe GmbH...
Page 23: Voltage Regulator (Regulatorctrl, Regulatorsel)
| | | | |___________ Reserved | | | |_____________ MSTBO (read only) | | |_______________ Reserved | |_________________ Reserved |___________________ Reserved BIT[7:5]: Reserved BIT[4]: MSTBO - Main regulator Standby output flag. (read only) © Fujitsu Microelectronics Europe GmbH - 23 - MCU-AN-300021-E-V10...
Page 24
Main and flash operation mode should be 1.8 V and the sub regulator voltage should be set to 1.8 V, too. #set REGULATORCTRL 0x00 ;<<< 0x4CFh: REGCTR; #set REGULATORSEL 0x06 ;<<< 0x4CEh: REGSEL; MCU-AN-300021-E-V10 - 24 - © Fujitsu Microelectronics Europe GmbH...
Page 25: Memory Controller (Flashcontrol, Flashreadt, Flashmwt2)
- 1 - Memory mapped TAG RAM access enabled BIT[7]: FLUSH - Flush instruction cache entries 0 - Flushing the instruction cache entries has been completed 1 - Actually flushing the instruction cache entries © Fujitsu Microelectronics Europe GmbH - 25 - MCU-AN-300021-E-V10...
Page 26
- Wait cycles for F-Bus general purpose RAM memory access ATD[2:0]: - Duration of the ATDIN signal for FLASH memory access EQ[3:0]: - Duration of the EQIN signal for FLASH memory access MCU-AN-300021-E-V10 - 26 - © Fujitsu Microelectronics Europe GmbH...
Page 27
The memory controller should be configured for the MB91F467D. The core frequency should be 64 MHz. #set FLASHCONTROL 0x032 ;<<< 0x7002h: FCHCR; #set FLASHREADT 0xC413 ;<<< 0x7004h: FMWT; #set FLASHMWT2 0x10 ;<<< 0x7006h: FMWT2; © Fujitsu Microelectronics Europe GmbH - 27 - MCU-AN-300021-E-V10...
Page 28: Section And Data Declaration
#pragma intvect. The default section name is INTVECT. C++ Init section: This section is where tables for indicating the entry of functions constituting and destroying static objects are stored. It must be used at startup. MCU-AN-300021-E-V10 - 28 - © Fujitsu Microelectronics Europe GmbH...
Page 29: Additional Sections
User stack: This section is where the user stack is located. The size of the user stack can be defined in the startup code. Security vectors: This section stores the security vectors. Instruction RAM Section: This section stores the code, which should be executed in the IRAM. © Fujitsu Microelectronics Europe GmbH - 29 - MCU-AN-300021-E-V10...
This manual is also suitable for:
Mb91460 series
Start91460.asm
Table of Contents
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL