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

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
Demonstration code
// Disable LCD
// Configure LCD Control Register
// Configure backplane phase
// Fill information on what segments are going to be turned on.
// Enable LCD module
16.7 Demonstration code
The demo code allows the user to experiment with the SLCD module in real time, write
your own messages, control contrast, blinking, vertical scroll, experiment with the new
LCD segment feature (fault detection), select the clock source for the module, work on
LCD low power modes, change the frequency of operation, and so on.
154
// Configure NVIC for SLCD interrupt
// SLCD clock gate on
// Enable LCD pins used as Backplanes
// Enable LCD pins 0-32
NVICICPR2|=(1<<22);
NVICISER2|=(1<<22);
SIM_SCGC3 |= SIM_SCGC3_SLCD_MASK;
LCD_GCR&= ~LCD_GCR_LCDEN_MASK;
LCD_WF11TO8 = 0xFFFFFFFF;
LCD_WF15TO12= 0xFFFFFFFF;
// Complete information of all Front planes
LCD_GCR =
LCD_PENH = 0x00000001;
LCD_PENL = 0xFFFFFFFF;
LCD_BPENH = 0x00000000;
LCD_BPENL = 0x000000FF;
LCD_WF3TO0 = 0x08040201;
LCD_WF7TO4 = 0x80402010;
LCD_GCR|= LCD_GCR_LCDEN_MASK;
(
);
|LCD_GCR_RVTRIM(8)
| LCD_GCR_CPSEL_MASK
| !LCD_GCR_HREFSEL_MASK
| LCD_GCR_LADJ(3)
| mBIT18
| LCD_GCR_VSUPPLY(1)
| LCD_GCR_LCDIEN_MASK
|!LCD_GCR_FDCIEN_MASK
| LCD_GCR_ALTDIV(0)
|!LCD_GCR_LCDWAIT_MASK
|!LCD_GCR_LCDSTP_MASK
|!LCD_GCR_LCDEN_MASK
| LCD_GCR_SOURCE_MASK
| LCD_GCR_LCLK(3)
| LCD_GCR_DUTY(7)
!LCD_GCR_RVEN_MASK
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
//Clear any pending interrupts on LCD
//Enable interrupts from LCD interrupt
SLCD interrupt vector = 102
//0-3
//0-3
//0-3
//0-15
//0-3
//0-3
0-7
Front Plane information
Freescale Semiconductor

Related parts for TWR-K60N512-KEIL