⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lpc_config.h

📁 基于lpc2106和OV6620的源代码
💻 H
字号:
/* * Copyright 2006  Anthony Rowe and Adam Goode * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *//* System Config *//*	PLL   - Main clock F_OSC=14,7MHz @ Olimex LPC-P2129) [limits: 10 MHz to 25 MHz]   - System should run at max. Frequency (60MHz) [limit: max 60 MHz]   - Choose multiplier M=4     so cclk = M * F_OSC= 4 * 14745000Hz = 58980000 Hz   - MSEL-Bits in PLLCFG (bits 0-4) MSEL = M-1   - F_CCO must be inbetween the limits 156 MHz to 320 MHz     datasheet: F_CCO = F_OSC * M * 2 * P   - choose devider P=2 => F_CCO = 14745000Hz * 4 * 2 * 2     = 235920000 ~=236 MHz   - PSEL0 (Bit5 in PLLCFG) = 1, PSEL1 (Bit6) = 0 (0b01)*/#define FOSC		14745000#define PLL_M		4#define MSEL		(PLL_M-1)#define PSEL0 		5#define PSEL1 		6#define PLLE		0#define PLLC		1#define PLOCK		10#define PLL_FEED1	0xAA#define PLL_FEED2	0x55/*	MAM(Memory Accelerator Module)	- choosen: MAM fully enabled = MAM-Mode 2	- System-Clock cclk=59MHz -> 3 CCLKs are proposed as fetch timing*/#define MAM_MODE 	2#define MAM_FETCH   3/*	VPB (V... Pheriphal Bus)	- choosen: VPB should run at full speed -> devider VPBDIV=1	=> pclk = cclk = 59MHz*/#define VPBDIV_VAL	1// FIXME should be 1/*	SCB*/#define MEMMAP_BOOT_LOADER_MODE   0       // Interrupt vectors are re-mapped to Boot Block.#define MEMMAP_USER_FLASH_MODE    (1<<0)  // Interrupt vectors are not re-mapped and reside in Flash.#define MEMMAP_USER_RAM_MODE      (1<<1)  // Interrupt vectors are re-mapped to Static RAM.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -