网站公告列表     本站开通全国范围代收货款业务,详情请点击  [dycxin  2008年5月14日]        
加入收藏
设为首页
联系站长
您现在的位置: EDA加油站 >> PSOC >> PSOC入门学堂 >> 正文
  [推荐]PSOC之SROM           ★★★ 【字体:
PSOC之SROM
PSOC之SROM
作者:未知    POSC专栏来源:网络    点击数:    更新时间:2008-2-10    
The SROM holds code that is used to boot the PSoC device, calibrate circuitry, and perform Flash operations. 意思 好像是说 SROM里面的代码是用来 导入PSOC的 设备,驱动,电路的配制,以及FALSH代码的保护.SWBootReset ReadBlock WriteBlock EraseBlock TableRead CheckSum Calibrate0
Calibrate1 这是SROM里面的函数,FLASH 里面可以调用. 如果想要调用这些函数的时候,要注意两关键的变量 KEY1和KEY2,always have a value of 3Ah, while KEY2 must have the same value as the stack pointer when the SROM function begins execution,下面的代码明确的阐述了这句话的意思.

                                                   1. halt
                                                   2. SSCOP: mov [KEY1], 3ah
                                                   3. mov X, SP
                                                   4. mov A, X
                                                   5. add A, 3
                                                   6. mov [KEY2], A

other feature;

These aid in the determination of success or failure of a particular function. The return code is stored in KEY1’s position in the parameter block. The CheckSum and TableRead functions do not have return codes because KEY1’s position in the parameter block is used to return other data.

Return Code Value                         Description
00h                                                 Success
01h                                                  Function not allowed due to level of protection on the    block.
02h                                                  Software reset without hardware reset.
03h                                                  Fatal error, SROM halted.

这些函数好像比较少的用到....   具体的说明在   P72 OF TRM

POSC专栏录入:dycxin    责任编辑:dycxin 
  • 上一个POSC专栏:

  • 下一个POSC专栏:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    基于PSoC的车用单片机试验装…
    怎样快速从51或Z80转到PSOC?
    赛普拉斯CapSenseTM解决方案…
    PSoC在LG“巧克力”手机中的…
    谈谈使用CYPRESS PSOC的一些…
    复杂SoC设计中的功率管理 (下…
    复杂SoC设计中的功率管理 (上…
    PSoC Express再升级提供更大…
    可编程系统芯片的设计构架
    用PSoC Express实施透明无代…
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    EDA加油站|我要EDA网|山东电子网--东营市荣燕商贸有限公司版权所有! 站长:阿荣
    联系电话:0546-7870320,13371507828 电邮:51edacn@163.com
    山东东营西城济南路百祥电脑商城B302室 邮编:257000 鲁ICP备07018763号  鲁ICP备07000091号 鲁ICP备05003434号
    公司帐号:1615011209000037682 户名:东营市荣燕商贸有限公司 开户行:工行西城支行石油大学分理处