最新单元十三PPT课件

上传人:ni****g 文档编号:586752286 上传时间:2024-09-05 格式:PPT 页数:21 大小:722.50KB
返回 下载 相关 举报
最新单元十三PPT课件_第1页
第1页 / 共21页
最新单元十三PPT课件_第2页
第2页 / 共21页
最新单元十三PPT课件_第3页
第3页 / 共21页
最新单元十三PPT课件_第4页
第4页 / 共21页
最新单元十三PPT课件_第5页
第5页 / 共21页
点击查看更多>>
资源描述

《最新单元十三PPT课件》由会员分享,可在线阅读,更多相关《最新单元十三PPT课件(21页珍藏版)》请在金锄头文库上搜索。

1、单元十三单元十三13 - 13 - 2 2TMS320F2812 TMS320F2812 存储器映射存储器映射存储器映射存储器映射MO SARAM (1K)MO SARAM (1K)M1 SARAM (1K)M1 SARAM (1K)LO SARAM (4K)LO SARAM (4K)L1 SARAM (4K)L1 SARAM (4K)HO SARAM (8K)HO SARAM (8K)Boot ROM (4K)Boot ROM (4K)MP/MC=0MP/MC=0BROM vector (32)BROM vector (32)MP/MC=0 ENPIE=0MP/MC=0 ENPIE=0OTP

2、 (1K)OTP (1K)FLASH (128K)FLASH (128K)reservedreservedreservedPF 0 (2K)PF 0 (2K)reservedreservedPF 1 (4K)PF 1 (4K)reservedPF 2 (4K)PF 2 (4K)reservedPIE vectorPIE vector(256)(256)ENPIE=1ENPIE=1XINT Zone 0 (8K)XINT Zone 1 (8K)XINT Zone 2 (0.5M)XINT Zone 6 (0.5M)XINT Zone 7 (16K)MP/MC=1XINT Vector-RAM (

3、32)MP/MC=1 ENPIE=0reservedreservedreservedData | ProgramData | Program0x00 00000x00 00000x00 04000x00 04000x00 08000x00 08000x00 0D000x00 0D000x00 10000x00 10000x00 60000x00 60000x00 70000x00 70000x00 80000x00 80000x00 90000x00 90000x00 A0000x00 A0000x3D 78000x3D 78000x3D 80000x3D 80000x3F 80000x3F

4、80000x3F A0000x3F A0000x3F F0000x3F F0000x3F FFC00x3F FFC00x3F C0000x3F C0000x18 00000x18 00000x10 00000x10 00000x08 00000x08 00000x00 40000x00 40000x00 20000x00 2000Data | ProgramData | Program128-Bit Password128-Bit Passwordreserved0x3D 7C000x3D 7C0013 - 13 - 3 313 - 13 - 4 413 - 13 - 5 513 - 13 -

5、 6 613 - 13 - 7 713 - 13 - 8 813 - 13 - 9 9Boot Loader 数据串示例数据串示例10AA; Key for 16-Bit memory stream00000000000000000000000000000000003F; PC starting point after load is complete: 0x3F 800080000005; 5 words in block 1003F9010; First block is loaded into 0x3F 90100001; first data word0002000300040005;

6、 last data0002; Second block is two words long003F; Second block is loaded into 0x3F 800080007700; first data7625; last data0000; next block zero length = end of transmission13 - 13 - 1010C28x Boot Loader 转移过程转移过程Read first word(W1)W2:W1= 0x08AA?Read BlockSize(R)Read Entry Point16bit data sizeR = 0?

7、Read BlockAddressTransfer R words from source to destinationReturn and Jump to Entry PointRead second word lower 8 bitW1= 0x10AA?8bit data sizeFormat ErrorNoNoNoYesYesYes13 - 13 - 1111C28x 初始化导入程序初始化导入程序Init BootRESETInitialize C28x:OBJMODE = 1AMODE = 0M0M1MAP = 1DP = 0OVM = 0SPM = 0SP = 0x00 0400 哑

8、读 CSM 密码调用 BootModeSelectExitBoot13 - 13 - 1212C28x SCI 启动装载器程序启动装载器程序C28xSCI-AHost/ e.g.PCs COM1RS 232e.g.Texas MAX232RS 232TxDTxDRxDRxD3213 - 13 - 1313C28x SCI 启动程序启动程序SCI BootEnable SCI-A ClockSet LSPCLK to /4Enable SCI-A Tx andRx - PinSetup SCI-A:1 stop,8 data ,no parityNo loopbackDisable SCI-A

9、INTDisable SCI-A FIFOPrime SCI-A baud rateregisterEnable Autobaud detectionAutobaud Lock ?Echo auto baud characterRead KeyValueValid Key?FLASHStart Boot Load SequenceNoNoYesYes13 - 13 - 1414C28x 平行启动装载器平行启动装载器 (GPIO)C28xGPIOHost/ e.g.PCs COM1GPIO-D616GPIO-B0.B15GPIO-D5GPIO-D6GPIO-D51234561: C28 指示:

10、“准备接收”2: 主机信号 “GPIO-B数据激活”3: C28 指示 “读完成”4: Host 响应 “时钟完成”5: C28x 指示: “准备好更多数据的接收”13 - 13 - 1515C28x GPIO Boot FunctionGPIO BootRead KeyValue( 8 or 16 Bit size)Initialize GPIOGPIO-B = inputGPIO-D5 = inputGPOI-D6 = outputValid Key?FLASHCall Parallel Copy DataRead Entry PointRead and discard8 reserved

11、 wordsJumpEntry PointNoYes13 - 13 - 1616Host GPIO Boot FunctionStart DownloadC28x ready?(GPIO-D6=0)Deactivate GPIO-D5 =1Load dataSignal that data avail.GPIO-D5 =0YesC28x ack?(GPIO-D6=1)More Data?End DownloadYesYesNoNoNo13 - 13 - 1717C28x SPI Boot Loader FunctionC28xSPI Serial EEPROMDINDOUTCLK/CSSPI

12、- MOSISPI - SOMISPI - CLKGPIO F3ST M95080 参看模块7 Module 7Note:(1)SPI 装载器为8bit,不支持 16bit 数据串(2)EEPROM 数据串必须从地址 0x0000处开始13 - 13 - 1818C28x SPI Boot Loader Data Stream1LSB = 0xAA ( Key for 8bit transfer)2MSB = 0x08 ( Key for 8bit transfer)3LSB = LSPCLK value4MSB = SPIBRR value5-18reserved19Entry Point

13、23:1620Entry Point 31:2421Entry Point 7:022Entry Point 15:823 .Blocks of data: block size/destination/data as shownByteContent13 - 13 - 1919C28x SPI Boot FunctionSPI - BootValid Key?( 0x08AA )Enable SPI clockSet LSPCLK to 4NoEnable SPI pin functionalitySetup SPI:8-bit characterInternal SPI-clockSPI-

14、MasterSlowest baud rate (0x7F)Relinquish from RESETSet chip enable GPIO-F3 = 1Send Read Command To EEPROMAddress = 0x0000Read KeyValueRead LSPCLK valueRequested LSPCLK = 2?Change LSPCLKFLASHCNoYesYes13 - 13 - 2020C28x SPI Boot Function (cont.)Read SPIBRR valueRequested SPIBRR = 0x7F?Change SPIBRRJump EntryPointCYesRead 7 reserved wordsRead Entry Point Read Data Blocks No

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 施工组织

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号