Electronic Components Datasheet Search
  English  ▼

X  

AN3995 Datasheet(PDF) 28 Page - STMicroelectronics

Part # AN3995
Description  Getting started tutorial
PDF  49 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3995 Datasheet(HTML) 28 Page - STMicroelectronics

Back Button AN3995 Datasheet HTML 24Page - STMicroelectronics AN3995 Datasheet HTML 25Page - STMicroelectronics AN3995 Datasheet HTML 26Page - STMicroelectronics AN3995 Datasheet HTML 27Page - STMicroelectronics AN3995 Datasheet HTML 28Page - STMicroelectronics AN3995 Datasheet HTML 29Page - STMicroelectronics AN3995 Datasheet HTML 30Page - STMicroelectronics AN3995 Datasheet HTML 31Page - STMicroelectronics AN3995 Datasheet HTML 32Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 49 page
background image
e200z4d initialization and example code
AN3995
28/49
Doc ID 022384 Rev 2
There are 3 peripheral clock groups on the SPC564Bxx and SPC56ECxx device family with
associated clock dividers. These allow all 3 peripheral clock groups independent clock
control so groups can be slowed down or even clock gated which helps with power saving.
For more details and for peripheral assignments, refer to the device Reference Manual (see
Section C.1: Reference document).
Peripheral group 1 can be clocked at a maximum of 32 kHz, peripheral groups 2 and 3 can
run at a maximum of 64 kHz. Care needs to be taken not to exceed these limits (see
Figure 20).
Note:
A peripheral clock group has to be specifically enabled or the peripherals is not accessible.
For the purpose of this example, all of the peripheral clock groups are enabled by writing to
the associated system clock divider registers even though all are not required.
Finally, in line with all clock and mode configuration, a mode transition must be made for all
the above changes to take effect.
For further information look at Mode Entry Module chapter in the device Reference Manual
(see Section C.1: Reference document).
In this case, DRUN mode is re-entered by writing a mode and key command sequence (see
Figure 20).
3.2.3
Clock & PLL configuration
The SPC564Bxx and SPC56ECxx device family is clocked by default from the 16 MHz IRC.
In order to attain the maximum performance of the device, the system clock speed needs to
be increased, up to 120 Mhz for the maximum system clock.
The device has several functional blocks that run at different frequency and for this reason
before the system clock is changed the user has to take some constraints into account (the
individual clock dividers must be set accordingly) to allow the device to run up to the
maximum of 120 MHz:
●
The e200z0h core has a maximum clock speed of 80 Mhz;
●
The FEC (Fast Ethernet Controller) requires its clock divider to be /2 if system clock is
> 80 MHz;
●
The Flash register interface has a maximum operating frequency of 80 Mhz;
●
The RAM needs an additional wait state if the system clock is above 64 Mhz;
Note:
The FEC is not used so in this case the divider is left at its default value.
Figure 23.
System clock dividers configuration code(r)
At this time the PLL can be used to change the system clock to the desired level (see
Figure 24).
Note:
All of the clock and PLL re-configuration can be achieved with a single mode re-entry but
there is also an option to effect a mode re-entry for each critical step in the process. It allows
an easy debug if the steps fail, in this way the problem can be identified easily.
r.
In this application note the SRAM wait states configuration is done in the initialization code at startup (see
Section 3.1.7: Performance Hints Initialization)
CGM.Z0_DCR.B.DIV = 0x1;
/* Z0 clock divider to divide by 2 */
CGM.Flash_DCR.B.DIV = 0x1;
/* Flash register interface /2 (default) */



Html Pages

1 2 3 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com