资源简介

SK-LPC1788开发板资料(附详细LPC1788例程、原理图、常用元器件Datasheet)

资源截图

代码片段和文件信息

/**********************************************************************
* $Id$ nandflash_k9f1g08u0a.c 2011-06-02
*//**
* @file nandflash_k9f1g08u0a.c
* @brief This c file contains all functions support for Nand Flash 
* SamSung K9F1G08U0A
* @version 1.0
* @date 02. June. 2011
* @author NXP MCU SW Application Team

* Copyright(C) 2011 NXP Semiconductor
* All rights reserved.
*
***********************************************************************
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* products. This software is supplied “AS IS“ without any warranties.
* NXP Semiconductors assumes no responsibility or liability for the
* use of the software conveys no license or title under any patent
* copyright or mask work right to the product. NXP Semiconductors
* reserves the right to make changes in the software without
* notification. NXP Semiconductors also make no representation or
* warranty that such application will be suitable for the specified
* use without further testing or modification.
**********************************************************************/
#ifdef __BUILD_WITH_EXAMPLE__
#include “lpc177x_8x_libcfg.h“
#else
#include “lpc177x_8x_libcfg_default.h“
#endif /* __BUILD_WITH_EXAMPLE__ */
#ifdef _EMC

#include “nandflash_k9f1g08u0a.h“
#include “lpc177x_8x_emc.h“
#include “lpc177x_8x_clkpwr.h“
#include “lpc177x_8x_pinsel.h“
#include “lpc177x_8x_timer.h“

uint8_t InvalidBlockTable[NANDFLASH_NUMOF_BLOCK];

/*********************************************************************//**
 * @brief  Ready/Busy check no timeout basically R/B bit should
 *  once to bail out from this routine
 * @param[in] None
 * @return  None
 **********************************************************************/
void NandFlash_WaitForReady( void )
{

while( FIO2PIN & (1 << 21) ); /* from high to low once */

while( !(FIO2PIN & (1 << 21)) ); /* from low to high once */

return;
}

/*********************************************************************//**
 * @brief  Initialize external NAND FLASH memory
 * @param[in] None
 * @return  None
 **********************************************************************/
void NandFlash_Init( void )
{
uint32_t i;
TIM_TIMERCFG_Type TIM_ConfigStruct;

/**************************************************************************
* Initialize EMC for NAND FLASH
**************************************************************************/
EMC_Init();

LPC_EMC->Control = EMC_Control_E|(1<<1);

EMC_StaMemConfigMW (1 EMC_STATIC_CFG_MW_8BITS);

EMC_StaMemConfigPB(1 EMC_CFG_BYTELAND_READ_BITSLOW);

EMC_SetStaMemoryParameter(1 EMC_STA_MEM_WAITWEN EMC_StaticWaitWen_WAITWEN(2));

EMC_SetStaMemoryParameter(1 EMC_STA_MEM_WAITOEN EMC_StaticWaitOen_WAITOEN(2));

EMC_SetStaMemoryParameter(1 EMC_STA_MEM_WAITWR EMC_StaticWaitwr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1257318  2011-11-08 22:48  SK-LPC1788\01-Documents\Datasheet\64Mb 128Mb 256Mb 512Mb Parallel NOR Flash.pdf

     文件    1200767  2011-11-08 22:33  SK-LPC1788\01-Documents\Datasheet\LAN8700.pdf

     文件     795905  2011-11-14 22:37  SK-LPC1788\01-Documents\Datasheet\Low Voltage IO Touch Screen Controller (Rev. G).pdf

     文件    6985859  2011-12-01 21:05  SK-LPC1788\01-Documents\Datasheet\LPC178x_7x User manual (v.1.5).pdf

     文件    1562559  2011-12-01 21:04  SK-LPC1788\01-Documents\Datasheet\LPC178X_7X_datasheet_V2.0.pdf

     文件     716992  2011-11-21 21:45  SK-LPC1788\01-Documents\Datasheet\tps61040.pdf

     文件     460667  2011-11-22 02:35  SK-LPC1788\01-Documents\Datasheet\tsc2046.pdf

     文件    1081114  2011-11-08 22:43  SK-LPC1788\01-Documents\Datasheet\W25Q80BV.pdf

     文件      88672  2012-01-04 04:38  SK-LPC1788\01-Documents\Schematic\LCD.pdf

     文件     364001  2011-12-18 21:27  SK-LPC1788\01-Documents\Schematic\SK-LPC1788.PDF

     文件    1355398  2011-12-26 23:44  SK-LPC1788\01-Documents\UserManual\SK-LPC1788开发板用户手册.pdf

     文件     833871  2011-11-30 00:20  SK-LPC1788\02-Images\emWinDemo.hex

     文件    6760870  2011-11-30 21:08  SK-LPC1788\03-Tools\FlashMagic_5.94.exe

     文件       5854  2011-12-14 17:49  SK-LPC1788\04-Code\code01\BoardSupport\bsp.h

     文件      14413  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\nandflash_k9f1g08u0a.c

     文件       4442  2011-11-17 16:47  SK-LPC1788\04-Code\code01\BoardSupport\nandflash_k9f1g08u0a.h

     文件       6822  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\norflash_sst39vf3201.c

     文件       2485  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\norflash_sst39vf3201.h

     文件       6061  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\pca9532.c

     文件       3775  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\pca9532.h

     文件       8043  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\phylan.c

     文件       1810  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\phylan.h

     文件       6287  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\phylan_dp83848c.h

     文件       6094  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\phylan_ks8721b.h

     文件       6165  2011-12-16 22:53  SK-LPC1788\04-Code\code01\BoardSupport\phylan_lan8720.h

     文件       5145  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\sdram_is42s32800d.c

     文件       1904  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\sdram_is42s32800d.h

     文件       5438  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\sdram_k4s561632j.c

     文件       3186  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\sdram_k4s561632j.h

     文件       4817  2011-12-12 17:26  SK-LPC1788\04-Code\code01\BoardSupport\sdram_mt48lc8m32lfb5.c

............此处省略4322个文件信息

评论

共有 条评论