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

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
This is the code snippet for the SLCD intialization:
/* Code Snippet
SIM_SCGC5 |= ( !SIM_SCGC5_LPTIMER_MASK
//
Freescale Semiconductor
10. Enable the LCD module
//enable clock gate for Ports
4. Configure the NVIC. The SLCD interrupt vector in K40 is 102, the NVIC must be
5. LCD General Control Register (GCR)
6. Enable pins to be used:
7. Enable LCD pins to be used as BackPlanes:
8. Configure the phase of the backplanes:
9. Configre the AR register
//Master General Purpose Control Register
// After RESET these register are configured as 0 but indicated here for reference
configured as follows:
b. Select 1.0 V or 1.67 V for 3 V or 5 V glass (HREFSEL).
d. Trim the regulated voltage (RVTRIM).
g. Configure LCD power supply (VSUPPLY[1:0]).
h. Configure LCD frame frequency interrupt (LCDIEN bit).
k. Select and configure LCD frame frequency (LCLK[2:0]).
a. Configure the LCD clock source (SOURCE bit).
c. Enable regulated voltage (RVEN).
e. Enable charge pump (CPSEL bit).
f. Configure charge pump clock (LADJ[1:0]).
i. Configure LCD behavior in low power mode (LCDWAIT and LCDSTP bits).
j. Configure LCD duty cycle (DUTY[2:0]).
PORTB_PCR0 = PORT_PCR_MUX(0);
PORTB_PCR1 = PORT_PCR_MUX(0);
PORTB_PCR2 = PORT_PCR_MUX(0);
Complete for all used pins
NVICISER2 |= (1<<22);
NVICICPR2|= (1<<22);
LCD_PENH, LCD_PENL
LCD_BPENH, LCD_BPENL
LCD_WFxTOy (used as backplanes)
| !SIM_SCGC5_REGFILE_MASK
| !SIM_SCGC5_TSI_MASK
|
|
|
|
|
);
SIM_SCGC5_PORTA_MASK
SIM_SCGC5_PORTB_MASK
SIM_SCGC5_PORTC_MASK
SIM_SCGC5_PORTD_MASK
SIM_SCGC5_PORTE_MASK
SLCD Initialization */
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
//LCD_P0
//LCD_P1
//LCD_P2
-
Set mux to LCD analog operation.
Chapter 16 Segment LCD Controller
153

Related parts for TWR-K60N512-KEIL