企业资质

厦门渤格电气技术有限公司

普通会员8
|
企业等级:普通会员
经营模式:
所在地区:福建 厦门
联系卖家:
手机号码:
公司官网:shop432522607.taobao.com
企业地址:
企业概况

厦门渤格电气技术有限公司是一家专业提供工业自动化领域的备件服务商,产品品种齐全、价格合理,公司实力雄厚,重信用、守合同、保证产品质量,以多品种经营特色和薄利多销的原则,赢得了广大客户的信任。 我们主营PLC可编程控制器模块,DCS卡件,ESD系统卡件,振动监测系统卡件,汽轮机控制系......

APPLIED 0120-92848

产品编号:623637532                    更新时间:2019-05-20
价格: 来电议定
厦门渤格电气技术有限公司

厦门渤格电气技术有限公司

  • 主营业务:AB,ABB,GE,本特利,福克斯波罗,霍尼韦尔,英维斯,西...
  • 公司官网:shop432522607.taobao.com
  • 公司地址:

联系人名片:

联系时务必告知是在"产品网"看到的

产品详情

APPLIED  0120-92848

    MC9S08QG8(以下简称QG8)是Freeseale公司于2006年推出的一款HCS08系列MCU。HCS08系列MCU是HC08系列的升级,具有更高的总线频率和更低的工作电压。QG8总线频率可以达到10MHz,工作电压可以低至1.8V,尤其是QG系列MCU采用了新型的Flash存储器(HCS08系列MCU的典型型号为MC9S08GB/GT系列MCU,Flash编程擦除可使用2.7V电压,QG系列MCU工作在1.8V时即可以对Flash进行操作)。同时低功耗也是QG系列MCU的一大特点。通过降低主频,在总线频率为1MHz、供电电压2V、温度125℃的情况下正常工作,典型的芯片电流仅有370μA。而如果进入待机模式,典型的芯片电流则低于1μA,这些特点使得QG8非常适合使用在电池供电的设备中。
    EEPROM是Flash存储技术成熟之前常用的存储器,它与Flash均可作为程序存储器和数据存储器。但由于EEPROM本身容量和成本的限制,目前大多数MCU都采用Flash作为存储器。用户可以在Flash中存储设置参数、校准参数、保密数据等信息。由于Flash存储区的***小擦除单位是页(QG8一页为512字节),若存储数据长度小于一页,则每次写入或修改数据都必须进行一次页擦除操作,该页中没有用到的空间就浪费了。相对而言,EEPROM就不存在这个问题,它可以基于字节进行写入和擦除。部分HC08系列MCU(如MC68HC908JL8)为了解决这个问题,在其监控ROM中提供了虚拟EEP一ROM的例程供用户使用。但是QG8不具有监控ROM,也就无法提供类似的功能,本文在QG8擦除/写入Flash的基础上,给出虚拟EEPROM的实现机制和用户接口,实现按字节“写”Flash存储区的功能,提高Flash存储器的使用效率及寿命。
    1设计思路
    使用Flash模拟EEPROM实现按字节读写,其思路是将Flash的一页依据写入数据的长度分为若干相等的部分。为了方便起见,每一部分称为一块,假设划分为N块。在写入前,此页Flash已擦除完毕,第1次写入时将数据写入第1块,当用户对数据修改后重新进行写入时,数据被写入第2块,依次类推,如果进行第N+1次写入,由于该页***多划分为N块,则先执行页擦除,然后将数据写入第1块中。读操作相对于写入操作要简单得多,因为Flash本身支持按字节读操作。
    上述操作是在底层实现的,对于上层开发人员是透明的,上层开发人员只需要调用接口函数EEE_PROG和EEE_READ即可。
    2具体实现
    虚拟EEPROM功能的实现以Flash的擦除/写入为基础。Flash页中包含2部分,一部分是虚拟EEPROM的参数和状态信息,称之为信息区,另外一部分是实际用来存储数据的存储区。信息区中包含EEPROM***写入的数据长度和控制写入的位置信息;存储区根据数据长度可以划分为N个Flash块,写入第x个块时(x≤N),同时修改信息区的位置信息。进行擦除和写入操作时分别将Flash操作代码放置于RAM中运行。
    2.1FIash擦除/写入的实现
    由于HCS08系列MCU中没有固化ROM,因此也就不具有HC08系列固化的虚拟EEPROM函数或Flash擦除/写入函数,而直接在Flash中执行同一Flash区的操作会引起不稳定的情况。所以借鉴MC68HC908GP32芯片在线编程系统功能的实现机制,将Flash的擦除和写入函数***行编译,将编译后的二进制代码文件(即S19文件)写入Flash区域。在调用该函数时,先将代码***到RAM区,然后调用并在RAM区的入口执行相应的Flash操作。为了减少代码量,使用同一函数实现了擦除和写入功能。具体代码如下:
 
 
ABB Procontic 07AA60R1
ABB Procontic 07AA61R1
ABB Procontic 07AA62R1
ABB Procontic 07AA63
ABB Procontic 07AA65R1
ABB Procontic 07AA80
ABB Procontic 07AB200
ABB Procontic 07AB60R1
ABB Procontic 07AB61R1
ABB Procontic 07AB67R1
ABB Procontic 07AB90-S
ABB Procontic 07AE83
ABB Procontic 07AI91
ABB Procontic 07AS82
ABB Procontic 07BA60R1
ABB Procontic 07BE60R1
ABB Procontic 07BE62R1
ABB Procontic 07BE64R1
ABB Procontic 07BR60R1
ABB Procontic 07BR61R1
ABB Procontic 07BT60R1
ABB Procontic 07BT62R1
ABB Procontic 07BV60R1
ABB Procontic 07CS61
ABB Procontic 07DC91
ABB Procontic 07DS85
ABB Procontic 07EA200
ABB Procontic 07EA60R1
ABB Procontic 07EA61R1
ABB Procontic 07EA62R1
ABB Procontic 07EA65R1
ABB Procontic 07EA80
ABB Procontic 07EA90-S
ABB Procontic 07EB200
ABB Procontic 07EB61R1
ABB Procontic 07EB62 R1
ABB Procontic 07EB90-S
ABB Procontic 07EI60
ABB Procontic 07ET83A
ABB Procontic 07GS40R1
ABB Procontic 07KP60R101
ABB Procontic 07KP62
ABB Procontic 07KP64
ABB Procontic 07KP93
ABB Procontic 07KR228
ABB Procontic 07KR240R1
ABB Procontic 07KR264dR1
ABB Procontic 07KT228
ABB Procontic 07KT240DR1
ABB Procontic 07KT31
ABB Procontic 07KT60R101
ABB Procontic 07MK62
ABB Procontic 07NG60R1
ABB Procontic 07NG61R1
ABB Procontic 07NG61R2
ABB Procontic 07NG63R1
ABB Procontic 07NG63R2
ABB Procontic 07NG66R1
ABB Procontic 07NG66R2
ABB Procontic 07NG68R1
ABB Procontic 07NG81
ABB Procontic 07NG82
ABB Procontic 07PA85
ABB Procontic 07PG200R1
ABB Procontic 07PG201
ABB Procontic 07PG85
ABB Procontic 07PR62R1
ABB Procontic 07PR62R2
ABB Procontic 07PS60R1
ABB Procontic 07PS61R1
ABB Procontic 07PS62R1
ABB Procontic 07PS62R2
ABB Procontic 07PS62R3
ABB Procontic 07PS63R2
ABB Procontic 07PS63R3
ABB Procontic 07PS85
ABB Procontic 07PT40b
ABB Procontic 07SA93
ABB Procontic 07SK90R1
ABB Procontic 07SV60R1
ABB Procontic 07TA60
ABB Procontic 07TI80
ABB Procontic 07TR85
ABB Procontic 07WP84R302
ABB Procontic 07XS80
ABB Procontic 07YS80
ABB Procontic 07YS81
ABB Procontic 07YS86
ABB Procontic 07ZB60
ABB Procontic 07ZB69R1
ABB Procontic 07ZB69R2
ABB Procontic 07ZE60R201
ABB Procontic 07ZE60R302
ABB Procontic 07ZE61R101
ABB Procontic 07ZE61R201
ABB Procontic 07ZE61R302
ABB Procontic 07ZE62R101
ABB Procontic 07ZE62R201
ABB Procontic 07ZE62R302
ABB Procontic 07ZE63R302
ABB Procontic 07ZE82
ABB Procontic 07ZE85
ABB Procontic 07ZE88
ABB Procontic 07ZG60R1
ABB Procontic 07ZW80
ABB Procontic 070070634-210
ABB Procontic 07300-0691-0001
ABB Procontic 74409
ABB Procontic 74413
ABB Procontic 74429
ABB Procontic 74435
ABB Procontic 74471
ABB Procontic 078566-1017
ABB Procontic 78691
ABB Procontic 07BE61R1
ABB Procontic 07NG41
ABB Procontic 07PS42
ABB Procontic 07PS43
ABB Procontic 07PT40
ABB Procontic 07TI40E
ABB Procontic 07XS40E
ABB Procontic 07YS40E
ABB Procontic 07ZE40E
ABB Procontic 10024/I/I
ABB Procontic 1007064719-103
ABB Procontic 1060-751
ABB Procontic 1060-763
ABB Procontic 1060-798
ABB Procontic 1070044305-115
ABB Procontic 1070046088-507
ABB Procontic 1070047961-107
ABB Procontic 1070047961-108
ABB Procontic 07AE83
ABB Procontic 07AS82
ABB Procontic 07ET83A
ABB Procontic 07GS40R1
ABB Procontic 07PT40b
ABB Procontic 07SV60R1
ABB Procontic 07TI80
ABB Procontic 07ZE82
ABB Procontic 07PT40
ABB Procontic 35FB90
07AA60R1 GJV3074365R1
07AA61R1 GJV3074366R1
07AA62R1 GJV30743
07AA63 GJV3074368R1
07AA65R1 GJV30743
07AA80 GJR5230010R0001
07AB200 GJV3072413R1
07AB60R1 GJV3074360R1
07AB61R1 GJV3074361R1
07AB67R1 GJV3074364R1
07AB90-S GJR5250800R0101
07BA60R1 GJV3074397R1
07BE60R1 GJV3074304R1
07BE62R1 GJV3074306R1
07BR60R1 GJV3074375R1
07BR61R1 GJV3074376R1
07BT60R1 GJV3074301R1
07BT61R1 GJV3074302R1
07BT62R1 GJV3074303R1
07BV60R1 GJV3074370R1
07CS61 GJR5240300R0202 07CS61E 07CS61C 07CS61D
07DS85 07DS85R1 GJR5219300R0001/9075
07EA200 GJV3072418R1
07EA60R1 GJV3074350R1
07EA61R1 GJV3074351R1
07EA62R1 GJV3074352R1
07EA65R1 GJV3074359R1
07EA80 GJR52302
07EA90-S GJR5251200R0101
07EB200 GJV3072411R1
07EB61R1 GJV3074341R1
07EB62R1 GJV3074342R1
07EB90-S GJR5250900R0101
07EI60 GJV3074357R1
07KP60R101 GJV3074360R101
07KP62 GJR5240400R105
07KP64 GJR5240600R0101
07KR228 GJV3072401R1 07KR228R1
07KR2401 GJV3072402R1 07KR240b

厦门渤格电气技术有限公司电话:传真:联系人:

地址:主营产品:AB,ABB,GE,本特利,福克斯波罗,霍尼韦尔,英维斯,西...

Copyright © 2025 版权所有: 产品网店铺主体:厦门渤格电气技术有限公司

免责声明:以上所展示的信息由企业自行提供,内容的真实性、准确性和合法性由发布企业负责。产品网对此不承担任何保证责任。