搜索
bottom↓
12
返回列表 发新帖
楼主: sea_star

准备做几片LPC1788的板子

[复制链接]

出0入0汤圆

发表于 2012-1-17 15:56:50 | 显示全部楼层
有卖的了波

出0入0汤圆

 楼主| 发表于 2012-1-29 11:51:20 | 显示全部楼层
硬件以调通

出0入0汤圆

发表于 2012-1-29 13:13:03 | 显示全部楼层
顶。。。

出0入0汤圆

发表于 2012-1-29 13:24:20 | 显示全部楼层
正在紧张密鼓的调试,对NXP的那个鸟库表示深恶痛绝,有心自己重写一个头文件,可又没时间,捏着鼻子认了。

出0入0汤圆

发表于 2012-2-4 17:05:42 | 显示全部楼层
楼主能分享一块板子不?

出0入0汤圆

 楼主| 发表于 2012-2-8 14:14:43 | 显示全部楼层
上几张图片

(原文件名:IMAG0055.jpg)


(原文件名:IMAG0052.jpg)


(原文件名:IMAG0054.jpg)

出0入0汤圆

发表于 2012-2-8 16:21:44 | 显示全部楼层
回复【29楼】yuhui  
不知道楼主usb host用的是不是nxp的usb host lite,可惜只能读优盘根目录下的文件。
-----------------------------------------------------------------------

可以尝试一下NXP最新开发的USB stack,里面有host:
http://www.lpcware.com/content/project/nxpusblib

出0入0汤圆

发表于 2012-2-11 13:52:52 | 显示全部楼层
想知道LS用LPC1788驱动这种大屏如何?
目前有个项目也需要7寸LCD!

出0入0汤圆

发表于 2012-2-12 23:03:47 | 显示全部楼层
回复【101楼】sea_star
这几天有空了,年前准备结束,几个元器件还没到


(原文件名:imag0067.jpg)
引用图片


(原文件名:imag0068.jpg)
<center><a class=tt16 onclick="fnquickimagequote(this,'files_50/ourdev_713353h4hbmk.jpg','原文件名:ima......
-----------------------------------------------------------------------

这过孔也打的贼多呀

出0入0汤圆

发表于 2012-2-13 00:45:44 | 显示全部楼层
回复【111楼】clingos  
想知道ls用lpc1788驱动这种大屏如何?
目前有个项目也需要7寸lcd!
-----------------------------------------------------------------------

10.4‘ 800*600的屏刷起来完全没问题……不过现在只是在跑emwin的demo。

nxp官方提供的库文件确实很蛋疼

出0入0汤圆

发表于 2012-2-13 11:02:43 | 显示全部楼层
lpc1788的lqfp144这个封装带sdram控制总线引出了吗?这个大概多少钱啊!

出0入0汤圆

发表于 2012-2-13 11:19:37 | 显示全部楼层
回复【113楼】Achin  
回复【111楼】clingos  
想知道ls用lpc1788驱动这种大屏如何?
目前有个项目也需要7寸lcd!
-----------------------------------------------------------------------
10.4‘ 800*600的屏刷起来完全没问题……不过现在只是在跑emwin的demo。
nxp官方提供的库文件确实很蛋疼
-----------------------------------------------------------------------
不是吧 这么大分辨率的都可以。静态图片吧?谢谢!

出0入0汤圆

发表于 2012-2-14 15:23:23 | 显示全部楼层
关注中。。。。希望楼主能开源

出0入0汤圆

发表于 2012-2-25 19:15:04 | 显示全部楼层
给大家看看偶的板子 6层板子,还没做板,等周一报价。。。

比LZ的多了I2S、NOR FLASH、NAND FLASH、外部64键按键、64M SDRAM、DS18B20接口、1路高速光隔脉冲输入、1路4 - 20mA电流环接口


(原文件名:捕获.JPG)


(原文件名:捕获1.JPG)

出0入0汤圆

发表于 2012-2-25 20:04:19 | 显示全部楼层
回复【118楼】_yuming  
-----------------------------------------------------------------------
做好了卖我块PCB?

你的螺丝貌似出边界外了。

出0入0汤圆

发表于 2012-2-25 21:17:12 | 显示全部楼层
回复【119楼】aozima
回复【118楼】_yuming   
-----------------------------------------------------------------------
做好了卖我块pcb?
你的螺丝貌似出边界外了。
-----------------------------------------------------------------------
呵呵呵呵。。。那个丝印是不必须有的,所以可以可以放外边了。。。。以后那个螺丝的标示丝印就不要了。。。

RT-thread 支持LPC1788的SD了吗?

出0入0汤圆

发表于 2012-2-25 21:53:04 | 显示全部楼层
回复【120楼】_yuming  
-----------------------------------------------------------------------
还没有。

出0入0汤圆

发表于 2012-3-7 16:11:22 | 显示全部楼层
各位,现在有没有调好的,可以出手的LPC1788空板卖?求购!!!!

出0入0汤圆

发表于 2012-3-8 10:07:28 | 显示全部楼层
6层的加工周期真长呀,等了一个星期,终于收到板子了,把板子的空板图片发上来,给大家瞧瞧。。。。

手机拍的,不是很清楚,大家凑合欣赏一下吧,不要猛烈的拍砖呀。。。

终于传上来了、、


(原文件名:IMG_0098.jpg)


(原文件名:IMG_0099.jpg)

出0入0汤圆

发表于 2012-3-10 10:43:00 | 显示全部楼层
回复【115楼】fishhead  
-----------------------------------------------------------------------

移植一下NXP官方的emWin,那里是带“动画”的,感觉还可以

出0入0汤圆

发表于 2012-3-10 11:04:56 | 显示全部楼层
【123楼】 _yuming
--------------------------------
卖吗?想买2块空板!

出0入0汤圆

发表于 2012-4-18 18:49:22 | 显示全部楼层
32bit     60M    7“ LCD
跑UCGUI的high speed屏幕会抖动其他正常,正在找原因

出0入0汤圆

发表于 2012-4-27 21:04:26 | 显示全部楼层
期待群主的大作啊!搞好了我也弄你一个板子玩下

出0入0汤圆

发表于 2012-4-28 11:28:41 | 显示全部楼层
哈哈,楼主板子出来了吗?

出0入0汤圆

发表于 2012-5-16 17:21:55 | 显示全部楼层
老兄,有没有LPC1788的USB HOST的FATFS例程?我最近移植出现了很多问题,需要请教请教!!

出0入0汤圆

发表于 2012-7-22 11:27:40 | 显示全部楼层
我也要啊

出0入0汤圆

发表于 2012-8-19 23:46:10 | 显示全部楼层
_yuming 发表于 2012-3-8 10:07
6层的加工周期真长呀,等了一个星期,终于收到板子了,把板子的空板图片发上来,给大家瞧瞧。。。。

手机 ...

请问还有板子出吗?

出0入0汤圆

发表于 2012-8-20 12:04:23 | 显示全部楼层
是空板子,还是焊好的板子

出0入0汤圆

发表于 2012-8-20 12:12:57 | 显示全部楼层
到目前,感觉越大的公司,越售后不好似的,就是那种爱买不买,刚开的公司都售后很好的,很热情。

出0入0汤圆

发表于 2012-8-20 12:30:18 | 显示全部楼层
_yuming 发表于 2012-8-20 12:04
是空板子,还是焊好的板子

空板可以了,我申请的LPC1788还末用.

出0入0汤圆

发表于 2012-8-20 17:27:57 | 显示全部楼层
Achin 发表于 2011-11-5 02:28
之前做的LPC2478的核心板,现在拿过来直接用上了,刚刚调通了NOR FLASH和SDRAM,芯片分别是MX29LV640EB和IS ...

楼上,控制10.4寸屏效果怎么样?我也在考虑用M3能不能搭配10寸的触摸屏呢。不运行视频,只有简单的几幅图片,主要是实时监控和显示数据。

出0入0汤圆

发表于 2012-8-21 10:54:55 | 显示全部楼层
dashiz 发表于 2012-8-20 17:27
楼上,控制10.4寸屏效果怎么样?我也在考虑用M3能不能搭配10寸的触摸屏呢。不运行视频,只有简单的几幅图 ...

1788满足你的这个要求。
控制10.4的800 600的屏,刷屏速度还可以,我也没显示视频,只是图片切换

出0入0汤圆

发表于 2012-8-21 11:20:15 | 显示全部楼层
Achin 发表于 2012-8-21 10:54
1788满足你的这个要求。
控制10.4的800 600的屏,刷屏速度还可以,我也没显示视频,只是图片切换 ...

多谢。

不知Ti的9B96是否可行?80MHz的频率较1788的120MHz低了点。但看中Ti的免费库啊。

出0入0汤圆

发表于 2012-8-21 14:55:15 | 显示全部楼层
_yuming 发表于 2012-3-8 10:07
6层的加工周期真长呀,等了一个星期,终于收到板子了,把板子的空板图片发上来,给大家瞧瞧。。。。

手机 ...

还有没有,顺便也卖我一块空板呗

出0入0汤圆

发表于 2012-8-21 15:54:17 | 显示全部楼层
还剩2块空板。。。看看什么时候在做一批。。。

出0入0汤圆

发表于 2012-8-21 21:16:53 | 显示全部楼层
_yuming 发表于 2012-8-21 15:54
还剩2块空板。。。看看什么时候在做一批。。。

什么价钱?想买一块

出0入0汤圆

发表于 2012-8-21 21:32:11 | 显示全部楼层
支持楼主哦  也算我一块呢

出0入0汤圆

发表于 2012-8-22 10:12:24 | 显示全部楼层
_yuming 发表于 2012-8-21 15:54
还剩2块空板。。。看看什么时候在做一批。。。

我也要一块空板

出0入0汤圆

发表于 2012-8-22 10:40:42 | 显示全部楼层
貌似不错嘛

出0入0汤圆

发表于 2012-9-6 15:20:36 | 显示全部楼层
楼主你什么时候做出来,我跟你买空PCB

出0入0汤圆

发表于 2013-1-23 21:27:01 | 显示全部楼层
先赶紧的做出来啊

出0入0汤圆

发表于 2013-2-26 10:21:16 | 显示全部楼层
请问一下,我现在想用总线外扩一个双口RAM,用的177FBD144的封装的ARM,应该怎么连线啊,用的优龙的例程改的读不对。求楼主帮助

出0入0汤圆

发表于 2013-3-3 16:36:30 | 显示全部楼层
您好!最近买了一块lpc1788的开发板,在做U盘试验的时候,发现有些u盘能用,有些u盘不能用,不知道是什么问题,您在线了,能加我qq351339482吗,想在这方面请教您,谢谢!

出0入0汤圆

发表于 2013-3-30 10:17:46 | 显示全部楼层
楼主,方便给份优龙LPC2478开发板中NAND FLASH部分的驱动程序吗?我的板子设计的电路和它的一样,想参考一下,谢谢!

出0入0汤圆

发表于 2013-3-31 09:01:14 | 显示全部楼层
myjnj 发表于 2011-11-12 22:45
我发现驱动640x480的TFT, 静态显示很好,在写屏或者向SDRAM中写的时候, 显示会明显的闪烁/花屏

硬件设置 ...

请问一下你这个问题解决了吗?
我最近也在用1788的板子,屏幕480*800
也是好像在操作sdram的时候有问题。
这个板子的测试程序:
#define SYS_FREQ              60MHZ
//#define SYS_FREQ              108MHZ

#if     SYS_FREQ == (120MHZ)
#define SDRAM_PERIOD          8.33  // 120MHz
#elif   SYS_FREQ == (108MHZ)
#define SDRAM_PERIOD          9.25  // 108MHz
#elif   SYS_FREQ == (96MHZ)
#define SDRAM_PERIOD          10.4  // 96MHz
#elif   SYS_FREQ == (72MHZ)
#define SDRAM_PERIOD          13.8  // 72MHz
#elif   SYS_FREQ == (60MHZ)
#define SDRAM_PERIOD          16.67 // 72MHz
#elif   SYS_FREQ == (57MHZ)
#define SDRAM_PERIOD          17.4  // 57.6MHz
#elif   SYS_FREQ == (48MHZ)
#define SDRAM_PERIOD          20.8  // 48MHz
#elif   SYS_FREQ == (36MHZ)
#define SDRAM_PERIOD          27.8  // 36MHz
#elif   SYS_FREQ == (24MHZ)
#define SDRAM_PERIOD          41.7  // 24MHz
#elif   SYS_FREQ == (12MHZ)
#define SDRAM_PERIOD          83.3  // 12MHz
#else
#error Frequency not defined
#endif
                                                                                                                                  
#define P2C(Period)           (((Period<SDRAM_PERIOD)?0:(uint32_t)((float)Period/SDRAM_PERIOD))+1)

#define SDRAM_REFRESH         7813
#define SDRAM_TRP             20
#define SDRAM_TRAS            45
#define SDRAM_TAPR            1
#define SDRAM_TDAL            3
#define SDRAM_TWR             3
#define SDRAM_TRC             65
#define SDRAM_TRFC            66
#define SDRAM_TXSR            67
#define SDRAM_TRRD            15
#define SDRAM_TMRD            3


volatile uint32_t i;
        volatile unsigned long Dummy;
        /************** init SDRAM **********/
        /* init EMC_CAS */
        LPC_IOCON->P2_16 = 0x21;
        /* init EMC_RAS */
        LPC_IOCON->P2_17 = 0x21;
        /* init EMC_CLK0 */
        LPC_IOCON->P2_18 = 0x21;
        /* init EMC_DYCS0 */
        LPC_IOCON->P2_20 = 0x21;
        /* init EMC_CKE0 */
        LPC_IOCON->P2_24 = 0x21;
        /* init EMC_DQM0 */
        LPC_IOCON->P2_28 = 0x21;
        /* init EMC_DQM1 */
        LPC_IOCON->P2_29 = 0x21;
       
        /************** init SDRAM DATA PIN**********/
        /* init EMC_D0 */
        LPC_IOCON->P3_0 = 0x21;
        /* init EMC_D1 */
        LPC_IOCON->P3_1 = 0x21;
        /* init EMC_D2 */
        LPC_IOCON->P3_2 = 0x21;
        /* init EMC_D3 */
        LPC_IOCON->P3_3 = 0x21;
        /* init EMC_D4 */
        LPC_IOCON->P3_4 = 0x21;
        /* init EMC_D5 */
        LPC_IOCON->P3_5 = 0x21;
        /* init EMC_D6 */
        LPC_IOCON->P3_6 = 0x21;
        /* init EMC_D7 */
        LPC_IOCON->P3_7 = 0x21;
        /* init EMC_D8 */
        LPC_IOCON->P3_8 = 0x21;
        /* init EMC_D9 */
        LPC_IOCON->P3_9 = 0x21;
        /* init EMC_D10 */
        LPC_IOCON->P3_10 = 0x21;
        /* init EMC_D11 */
        LPC_IOCON->P3_11 = 0x21;
        /* init EMC_D12 */
        LPC_IOCON->P3_12 = 0x21;
        /* init EMC_D13 */
        LPC_IOCON->P3_13 = 0x21;
        /* init EMC_D14 */
        LPC_IOCON->P3_14 = 0x21;
        /* init EMC_D15 */
        LPC_IOCON->P3_15 = 0x21;
       
        /************** init SDRAM ADDR PIN**********/
        /* init EMC_A0 */
        LPC_IOCON->P4_0 = 0x21;
        /* init EMC_A1 */
        LPC_IOCON->P4_1 = 0x21;
        /* init EMC_A2 */
        LPC_IOCON->P4_2 = 0x21;
        /* init EMC_A3 */
        LPC_IOCON->P4_3 = 0x21;
        /* init EMC_A4 */
        LPC_IOCON->P4_4 = 0x21;
        /* init EMC_A5 */
        LPC_IOCON->P4_5 = 0x21;
        /* init EMC_A6 */
        LPC_IOCON->P4_6 = 0x21;
        /* init EMC_A7 */
        LPC_IOCON->P4_7 = 0x21;
        /* init EMC_A8 */
        LPC_IOCON->P4_8 = 0x21;
        /* init EMC_A9 */
        LPC_IOCON->P4_9 = 0x21;
        /* init EMC_A10 */
        LPC_IOCON->P4_10 = 0x21;
        /* init EMC_A11 */
        LPC_IOCON->P4_11 = 0x21;
        /* init EMC_A12 */
        LPC_IOCON->P4_12 = 0x21;
        /* init EMC_A13 */
        LPC_IOCON->P4_13 = 0x21;
        /* init EMC_A14 */
        LPC_IOCON->P4_14 = 0x21;
       
        /************** init SDRAM WE PIN**********/
        /* init EMC_WE */
        LPC_IOCON->P4_25 = 0x21;
       
        /*
        ************************************
        init SDRAM CONTROLLER
        ************************************
        */
        /* Enable the EMC POWER */
        LPC_SC->PCONP    |= 0x00000800;
       
        /*
        Delay Control register (EMCDLYCTL - 0x400F C1DC)
        The EMCDLYCTL register controls on-chip programmable delays that can b used to fine
        tune timing to external SDRAM memories. Dela ys can be configured in increments of
        approximately 250 picoseconds up to a maximum of roughly 7.75 ns.
        */
       
        /*
        Programmable delay value for EMC outputs in command delayed mode
        The delay amount is roughly (CMDDLY+1) * 250 picoseconds
        */
        LPC_SC->EMCDLYCTL |= (8<<0);
       
        /*
        Programmable delay value for the feedback clock that controls input data sampling
        The delay amount is roughly (FBCLKDLY+1) * 250 picoseconds
        */
        LPC_SC->EMCDLYCTL |=(8<<8);
       
        /*
        Programmable delay value for the CLKOUT0 output. This would typically be used in clock
        delayed mode. The delay amount is roughly (CLKOUT0DLY+1) * 250 picoseconds.
        */
        LPC_SC->EMCDLYCTL |= (0x08 <<16);
       
        /*
        Confige the EMC Register
        */
        /*
        EMC Control register (EMCControl - 0x2009 C000)
        EMC Enable (E) = 1;
        Address mirror (M) = 0;        Normal memory map.
        Low-power mode (L) = 0; Normal mode (warm reset value).
        */
        LPC_EMC->Control =1;
       
        /*
        Dynamic Memory Read Configuration register (EMCDynamicReadConfig - 0x2009 C028)
        1:0 Read data  strategy (RD)
        00 Clock out delayed strategy, using CLKOUT (command not delayed, clock out
         delayed). POR reset value.
        01 Command delayed strategy, using EMCCLKDELAY (command delayed, clock out
         not delayed).
        10 Command delayed strategy plus one clock cycle, using EMCCLKDELAY
         (command delayed, clock out not delayed).
        11 Command delayed strategy plus  two clock cycles, using EMCCLKDELAY
         (command delayed, clock out not delayed)
        */
        LPC_EMC->DynamicReadConfig = 1;
       
        /*
        Dynamic Memory RAS & CAS Delay registers
        The EMCDynamicRasCas0-3 registers enable you to program the RAS and CAS
        latencies for the relevant dynamic memory
        1:0 RAS latency (active to read/write delay) (RAS)
           00 Reserved. 11
           01 One CCLK cycle.
           10 Two CCLK cycles.
           11 Three CCLK cycles (POR reset value).
        9:8 CAS latency (CAS)
          00 Reserved. 11
          01 One CCLK cycle.
          10 Two CCLK cycles.
          11 Three CCLK cycles (POR reset value).
        */
        LPC_EMC->DynamicRasCas0 = 0;
        LPC_EMC->DynamicRasCas0 |= (3<<8);
        LPC_EMC->DynamicRasCas0 |= (2<<0);
       
        /*
        Dynamic Memory RAS & CAS Delay registers
        The EMCDynamicRasCas0-3 registers enable you to program the RAS and CAS
        latencies for the relevant dynamic memory
        1:0 RAS latency (active to read/write delay) (RAS)
           00 Reserved. 11
           01 One CCLK cycle.
           10 Two CCLK cycles.
           11 Three CCLK cycles (POR reset value).
        9:8 CAS latency (CAS)
          00 Reserved. 11
          01 One CCLK cycle.
          10 Two CCLK cycles.
          11 Three CCLK cycles (POR reset value).
        */
        LPC_EMC->DynamicRasCas0 = 0;
        LPC_EMC->DynamicRasCas0 |= (3<<8);
        LPC_EMC->DynamicRasCas0 |= (3<<0);
       
        /*
        Dynamic Memory Precharge Command Period registe (EMCDynamictRP - 0x2009 C030)
        The EMCDynamicTRP register enables you to program the precharge command period,
        tRP.
        3:0 Precharge command period (tRP)
          0x0 - 0xE n + 1 clock cycles. The delay is in EMCCLK cycles.
          0xF 16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicRP = P2C(SDRAM_TRP);
       
        /*
        Dynamic Memory Active to Precharge Command Period register(EMCDynamictRAS - 0x2009 C034)
        The EMCDynamicTRAS register enables you to program the active to precharge command period, tRAS.
        3:0 Precharge command period (tRAS)
          0x0 - 0xE n + 1 clock cycles. The delay is in EMCCLK cycles.
          0xF 16 clock cycles (POR reset value).  
        */
        LPC_EMC->DynamicRAS = P2C(SDRAM_TRAS);
       
        /*
        Dynamic Memory Se lf-refresh Exit Time register(EMCDynamictSREX - 0x2009 C038)
        The EMCDynamicTSREX register enables you  to program the self-refresh exit time
        3:0 Self-refresh exit time (tSREX)
          0x0 - 0xE n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicSREX = P2C(SDRAM_TXSR);
       
        /*
        Dynamic Memory Last Data Out to Active Time register (EMCDynamictAPR - 0x2009 C03C)
        The EMCDynamicTAPR register enables you to program the last-data-out to active
        command time, tAPR.
        3:0 Last-data-out to active command time (tAPR)
          0x0 - 0xE n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicAPR = SDRAM_TAPR;
       
        /*
        Dynamic Memory Data-in to  Active Command Time register (EMCDynamictDAL - 0x2009 C040)
        The EMCDynamicTDAL register enables you to program the data-in to active command time, tDAL
        3:0 Data-in to active command (tDAL)
          0x0 - 0xE n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicDAL = SDRAM_TDAL + P2C(SDRAM_TRP);
       
        /*
        Dynamic Memory Wr ite Recovery Time regist er (EMCDynamictWR - 0x2009 C044)
        The EMCDynamicTWR register enables you to pr ogram the write recovery time, tWR.
        3:0 Write recovery time (tWR)
          0x0 - 0xE n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicWR = SDRAM_TWR;
       
        /*
        Dynamic Memory Active to  Active Command Period register (EMCDynamictRC - 0x2009 C048)
        The EMCDynamicTRC register enables you to program the active to active command period, tRC.
        3:0 Active to active command period (tRC)
          0x0 - 0x1E n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 32 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicRC = P2C(SDRAM_TRC);
       
        /*
        Dynamic Memory Auto-refresh Period register (EMCDynamictRFC - 0x2009 C04C)
        The EMCDynamicTRFC register enables you to program the auto-refresh period,
        and auto-refresh to active command period, tRFC.
        4:0 Auto-refresh period and auto-refresh to active command period (tRFC)
          0x0 - 0x1E n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 32 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicRFC = P2C(SDRAM_TRFC);
       
        /*
        Dynamic Memory Exit Self-ref resh register (EMCDynamictXSR - 0x2009 C050)
        The EMCDynamicTXSR register enables you to program the exit self-refresh to active
        command time, tXSR.
        4:0 Exit self-refresh to active command time (tXSR)
          0x0 - 0x1E n + 1 clock cycles. The delay is in CCLK cycles.
          0xF 32 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicXSR = P2C(SDRAM_TXSR);
       
        /*
        Dynamic Memory Active Bank A to Active Ba nk B Time register(EMCDynamictR RD - 0x2009 C054)
        The EMCDynamicTRRD register enables you to program the active bank A to active bank B latency, tRRD.
        3:0 Active bank A to active bank B latency (tRRD)
          0x0 - 0x1E n + 1 clock cycles. The delay is in CCLK cycles.
          0xF        16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicRRD = P2C(SDRAM_TRRD);
       
        /*
        Dynamic Memory Load Mode  register to Active Command Time (EMCDynamictMRD - 0x2009 C058)
        The EMCDynamicTMRD register enables you to program the load mode register to active command time, tMRD.
        3:0 Load mode register to active command time (tMRD)
          0x0 - 0x1E n + 1 clock cycles. The delay is in CCLK cycles.
          0xF        16 clock cycles (POR reset value).
        */
        LPC_EMC->DynamicMRD = SDRAM_TMRD;
       
        /*
        Dynamic Memory Configurati on registers (EMCDy namicConfig0-3 - 0x2009 C100, 120, 140, 160)
        The EMCDynamicConfig0-3 registers enable you to program the configuration information
        for the relevant dynamic memory chip select .
        2:0 - Reserved. Read value is undefined, only zero should be written. NA
        4:3 Memory device (MD) 00 SDRAM (POR reset value). 00
          01 Low-power SDRAM.
          1x Reserved.
        6:5 - Reserved. Read value is undefined, only zero should be written. NA
        12:7 Address mapping (AM)
           000000 = reset value.
        13 - Reserved. Read value is undefined, only zero should be written. NA
        14 Address mapping (AM)
         0 = reset value.
        18:15 - Reserved. Read value is undefined, only zero should be written. NA
        19 Buffer enable (B)
         0 Buffer disabled for accesses to this chip select (POR reset value)
         1 Buffer enabled for accesses to this chip select.
        20 Write protect (P)
         0 Writes not protected (POR reset value)
         1 Writes protected.
       
        cofige para
        4:3  = 00     = SDRAM
        12:7 = 01100
        14         = 0      = 16bit
        0100 0110 0000 0000
        16bit 256 Mb (16Mx16), 4 banks, row length = 13, column length = 9
        */
        LPC_EMC->DynamicConfig0 = 0x0000680;
       
        /*
        Dynamic Memory Control register (EMCDynamicControl - 0x2009 C020)
        The EMCDynamicControl register controls dynamic memory operation.
        */
        /* General SDRAM Initialization Sequence NOP command*/
        LPC_EMC->DynamicControl = 0x0183;
       
        /* DELAY to allow power and clocks to stabilize ~100 us */
        for (i= 200*40; i;i--);
        /* SDRAM Initialization Sequence PALL command*/
        LPC_EMC->DynamicControl = 0x0103;
       
        /*
        Dynamic Memory  Refresh Timer register  (EMCDynamicRefresh - 0x2009 C024)
        The EMCDynamicRefresh register configures dynamic memory operation.
        */
        LPC_EMC->DynamicRefresh = 2;
        for (i= 256; i; --i); // > 128 clk
        LPC_EMC->DynamicRefresh = P2C(SDRAM_REFRESH) >> 4;
       
        /* SDRAM Initialization Sequence MODE command */
        LPC_EMC->DynamicControl = 0x00000083;
        Dummy = *((volatile uint32_t *)(SDRAM_BASE_ADDR | (0x33<<12)));
       
        // NORM
        LPC_EMC->DynamicControl = 0x0000;
        LPC_EMC->DynamicConfig0 |= (1 << 19);
        for (i = 100000; i; i--);

出0入0汤圆

发表于 2013-3-31 10:50:32 | 显示全部楼层
sea_star 发表于 2011-11-5 12:13
用SDRM做显存,操作SRAM和NAND是要冲突的,所以总线改16BIT,要加NAND的话用I/O,SD卡因为不是挂总线,应该 ...

请问一下这个有解决办法吗?
这两天在弄这个,好像只要一访问NandFlash的数据寄存器(读的时候),屏就会闪,读完就好了。
高手,这个有什么解决办法吗?崩溃中

出0入0汤圆

发表于 2013-3-31 10:52:37 | 显示全部楼层
sea_star 发表于 2011-11-3 21:24
1788可以设置总线矩阵的优先级,我把lcd的优先级设置为最高了,一点都不抖呢
加了句         *(volatile uint32  * ...

高手,为什么我的板子好像和你同样的问题,但是改了没用呢?

出0入0汤圆

发表于 2013-3-31 14:44:58 | 显示全部楼层
楼主你的的想法,我已经实现了。
双高速485,一个can,板上交换机实现一网口扩展为双网口,带tft触摸液晶接口等等。针对工业控制设计,使用业余时间设计。平台lpc1788。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

出0入0汤圆

发表于 2013-5-13 16:10:30 | 显示全部楼层
sea_star 发表于 2012-1-16 13:33
这几天有空了,年前准备结束,几个元器件还没到

(原文件名:IMAG0067.jpg)

楼主什么时候可以发个例程给我们这些刚入门的菜鸟学习一下呢?

出0入0汤圆

发表于 2013-5-16 13:52:32 | 显示全部楼层
干脆上NXP的板子好了,我还有几PCS

出0入0汤圆

发表于 2013-10-11 12:45:50 | 显示全部楼层
画成多大的板子

出0入0汤圆

发表于 2014-2-6 12:19:50 | 显示全部楼层
mark!lpc1788 PCB

出0入0汤圆

发表于 2014-7-29 17:49:05 | 显示全部楼层
_yuming 发表于 2012-3-8 10:07
6层的加工周期真长呀,等了一个星期,终于收到板子了,把板子的空板图片发上来,给大家瞧瞧。。。。

手机 ...

能分享一下原理图和PCB吗 我是学生 自学玩玩

出0入0汤圆

发表于 2014-7-30 21:59:11 | 显示全部楼层
额  同学不要上来就和人要原理图PCB,想学还是自己画吧,而且6层板学生做不起的,直接和楼主买PCB还比较实际。

出0入0汤圆

发表于 2014-8-29 22:11:08 | 显示全部楼层
楼主,能不能把优龙的光盘打包发我,我找到一个二手的优龙开发板,但是没有资料呀,16855892@qq.com 麻烦了。资料比较大,哎麻烦你了
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-26 17:39

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表