New revision with 16MHz crystal
Since August 2010, ThaiEasyElec has released new revision PCB of BlueScreen board and there are some changes that affect the programming.
First, please notice on the board to identify new revision. Old generation of BlueScreen comes with 20MHz oscillator, but with the latest, 16MHz crystal comes instead.
Even that we are lowering the cost but you will got more since the new revision boards are manufactured with lead-free PCB and lead-free process. Plus with environment coating that protects the board from dust and humidity. Now they’re ready to be put into your products with higher reliability!
Now let’s see how to change the code downloaded from website to maintain correct operations. Only PLL multiplier is needed to be changed from 12 to 15.
For Keil’s uVision: in startup file (LPC2300.s)
With 20MHz:
PLLCFG_Val EQU 0x0000000B -> 20x12x2 = 480
With 16MHz:
PLLCFG_Val EQU 0x0000000E -> 16x15x2 = 480
For Yagarto: in main.c, function InitClock()
With 20MHz:
PLLCFG = (12-1) | ((1-1) << 16);
With 16MHz:
PLLCFG = (15-1) | ((1-1) << 16);
For CrossWorks: in startup file
With 20MHz:
#define PLLCFG_VAL 0x0000000B
With 16MHz:
#define PLLCFG_VAL 0x0000000E
After modification, we have tried our old project on new hardware and we experienced that ADC need lower clock to operate (until now we can’t find any reason). So if you’re using ADC and the MCU hangs waiting for ADC to complete the conversion, try reducing ADC speed.
BLUESCREEN's BLOG
ARM7 LPC2378 with 2.8 inch QVGA TFT LCD Touch Screen
วันอังคารที่ 17 สิงหาคม พ.ศ. 2553
วันอาทิตย์ที่ 21 มีนาคม พ.ศ. 2553
Note of Revision for Bluscreen LPC2378
Note of Revision:
- Revision of LPC2378: B
- No example code of USB device provided by ThaiEasyElec
- Revision of LPC2378: B
- No example code of USB device provided by ThaiEasyElec
วันพฤหัสบดีที่ 24 ธันวาคม พ.ศ. 2552
BlueScreen for 3 compilers!!!
Hi all,
We have launched 3 in 1 code; Yagarto, Keil and CrossStudio. Just make sure you have the right "#define COMPILER_xxx" for your compiler. See more detail in "Please Read" file in the folder.
Thanks for your all supports and Merry Christmas!!!
Bluescreen code for 3 in 1 Yagarto, CrossStudio and Keil
Bluescreen 3 IN 1 Example Code
- 3 in 1 ,Yagarto, CrossStudio and Keil (RAR)
- 3 in 1 ,Yagarto, CrossStudio and Keil (RAR)
วันอังคารที่ 15 ธันวาคม พ.ศ. 2552
BlueScreen new source code 2 in 1,Yagarto and Keil
BlueScreen source code, for Keil and Yagarto compiler.
To set compiler, choose your compiler in app_config.h
For Yagarto (used with Eclipse IDE):
#define COMPILER_YAGARTO
//#define COMPILER_KEIL
For Keil:
//#define COMPILER_YAGARTO
#define COMPILER_KEIL
Also add .s file corresponding to compiler. And for Yagarto, include files in includes_yagarto too.
Download Here
Best Regards,
Chutiman Yongprapat
วันพุธที่ 9 ธันวาคม พ.ศ. 2552
วันอังคารที่ 1 ธันวาคม พ.ศ. 2552
สมัครสมาชิก:
บทความ (Atom)