Fujitsu Series 3 Manual
Here you can view all the pages of manual Fujitsu Series 3 Manual. The Fujitsu manuals for Controller are available online for free. You can easily download all the documents as PDF.
Page 91
FUJITSU SEMICONDUCTOR LIMITED Example trimming data acquisition using input capture Figure 4-3 shows the time chart of high-speed CR oscillation and the trimming process. Figure 4-3 Time chart of high-speed CR oscillation and the trimming process CLKHC CLKHC_div PCLK TRD Free run Input CaptureTIMER2 TIMER1 TIMER3 TIMER4 XtrmminXtrmmax Run the free run timer by setting the main oscillation clock (CLKMC) as the master clock (measurement reference clock). Clear the free run timer once before...
Page 92
FUJITSU SEMICONDUCTOR LIMITED Frequency trimming procedure example The following shows a trimming procedure example of high-speed CR oscillation. Figure 4-4 Trimming Procedure Example of High-speed CR Oscillation Start Set the master clock as the main oscillation clock by the SCM_CTL register Unlock the MCR_FTRM register Write 0x1ACC_E554 to the MCR_RLR Set the division ratio of high-speed CR oscillation to be input into input capture by the M CRPSR register Set the input into input...
Page 93
FUJITSU SEMICONDUCTOR LIMITED Xtrm calculation procedure example The following shows an Xtrm calculation procedure example. Perfor m frequency trimming in the two stages of coarse adjustment and fine adjustment. Figure 4-5 Xtrm Calculation Procedure Example Start Set an Xtrmmin value as the MCR_FTRM (value of the initial val ue of the TRD bit - 20%) Free run timer operation Free run timer clear Set a trigger for input capture on the rising of the high-speed CR oscillation division clock...
Page 94
FUJITSU SEMICONDUCTOR LIMITED Procedure example of using CR trimmi ng area storage data inside flash memory The following shows a procedure example of readin g trimming data stored in the CR trimming area inside flash memory and setting it as the frequency trimming register. Figure 4-6 Procedure Example of Using CR Trimming Area Storage Data Start Unlock the MCR_FTRM register Write 0x1ACC_E554 to the MCR_RLR Read the CR trimming area inside flash memory Set the read value as the...
Page 95
FUJITSU SEMICONDUCTOR LIMITED 5. High-Speed CR Trimming Function Register List The following lists and explains registers used for frequency trimming function of the high-speed CR oscillator. Ta b l e 5 - 1 lists the registers. Table 5-1 Register list Abbreviation Register name See MCR_PSR High-speed CR oscillation Frequency Division Setup Register 5.1 MCR_FTRM High-speed CR oscillation Frequency Trimming Register 5.2 MCR_RLR High-speed CR oscillator Register Write-Protect Register...
Page 96
FUJITSU SEMICONDUCTOR LIMITED 5.1. High-speed CR oscillation Frequency Division Setup Register (MCR_PSR) The MCR_PSR sets the frequency division ratio of high-speed CR oscillation. A divided clock can be input into input capture. Register configuration bit 7 6 5 4 3 2 1 0 Field Reserved CSR Initial value - 2b01 Attribute - R/W Register functions [bit 7:2] : Reserved bits 0b000000 is read from these bits. Set these bits to 0b000000 when writing. [bit 1:0] CSR: High-speed CR oscillati...
Page 97
FUJITSU SEMICONDUCTOR LIMITED 5.2. High-speed CR oscillation Frequency Trimming Register (MCR_FTRM) The MCR_FTRM sets the frequency trimming value. This section explains register configuration and register functions. Register configuration bit 31 16 Field Reserved Initial value - Attribute - bit 15 109 8 7 6 5 4 3 2 1 0 Field Reserved TRD[9:0] Initial value - 10b0110000000 Attribute - R/W Register functions [bit 31:10] : Reserved bits 0 is always read...
Page 98
FUJITSU SEMICONDUCTOR LIMITED 5.3. High-Speed CR Oscillator Register Write-Protect Register (MCR_RLR) The MCR_RLR controls the write-protect state of the frequency trimming register (MCR_FTRM). Register configuration bit 31 16 Field TRMLCK[31:16] Initial value 16h0000 Attribute R/W bit 15 0 Field TRMLCK[15:0] Initial value 16h0001 Attribute R/W Register functions [bit 31:0] TRMLCK: Register write-protect bits Bit 31:0 Description When read When 0x00000000...
Page 99
6. High-Speed CR Trimming Function Usage Precautions FUJITSU SEMICONDUCTOR LIMITED Chapter: High-Speed CR Trimming FUJITSU SEMICONDUCTOR CONFIDENTIAL 16 6. High-Speed CR Trimming Function Usage Precautions This section explains the precautions for using high-speed CR trimming function. About low-speed CR oscillator This trimming function is only enabled for the high-speed CR oscillator. It cannot apply to the low-speed CR oscillator. About data stored in the CR trimming area The...
All Fujitsu manuals