TWR-K60N512-KEIL Freescale Semiconductor, TWR-K60N512-KEIL Datasheet - Page 15

no-image

TWR-K60N512-KEIL

Manufacturer Part Number
TWR-K60N512-KEIL
Description
K60N512 Keil Tower Kit
Manufacturer
Freescale Semiconductor
Series
Kinetisr
Type
MCUr

Specifications of TWR-K60N512-KEIL

Rohs Compliant
YES
Contents
4 Boards, Documentation, DVD
Peak Reflow Compatible (260 C)
Yes
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
Freescale Tower System, K60N512
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
1.4.1.1.1 Unmask interrupts at ARM core
CPSIE
1.4.1.1.2 Branch to start of C initialization code
import start
1.4.2 Startup routines
These routines are C source code found in the files start.c and sysinit.c. This code
provides general system initialization that may be adapted depending on the application.
1.4.2.1 Disable watchdog
For code development and debugging, it is best to disable the watchdog. This requires
unlocking the watchdog first. Keep in mind that there are timing requirements for the
execution of the unlock steps. The two step unlock sequences must execute within 20
clock cycles of each other. Therefore interrupts must be disabled and single-step
debugging cannot be done during this section.
/* disable all interrupts */
asm(" CPSID i");
/* Write 0xC520 to the unlock register */
WDOG_UNLOCK = 0xC520;
/* Followed by 0xD928 to complete the unlock */
WDOG_UNLOCK = 0xD928;
/* enable all interrupts */
asm(" CPSIE i");
/* Clear the WDOGEN bit to disable the watchdog */
WDOG_STCTRLH &= ~WDOG_STCTRLH_WDOGEN_MASK;
Freescale Semiconductor
r0,#0
r1,#0
r2,#0
r3,#0
r4,#0
r5,#0
r6,#0
r7,#0
r8,#0
r9,#0
r10,#0
r11,#0
r12,#0
i
BL
start
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
; Initialize the GPRs
; Unmask interrupts
; call the C code
Chapter 1 General System Setup (Software Considerations)
15

Related parts for TWR-K60N512-KEIL