Microchip
直播中

h1654155275.5684

7年用户 174经验值
私信 关注
[问答]

PIC16F628与PIC16F628A不同

我是一个需要帮助的新手。我想用最初的这个.ASM文件来执行一个无线控制时钟(不是我的项目)。不幸的是,我不知道我得到的PIC16F628 A不适用。有人能帮助我详细地把MODS建议给这个文件,考虑到我不知道。知道大会吗?谢谢你

以上来自于百度翻译


      以下为原文

    I'm a newbie needing help.I would like to carry out a radiocontrolled clock (not my project) using originally this .asm file
Unfortunately I didn't know that the PIC16F628A that I got,doesn't work with it.
Can someone help me suggesting in detail the mods to this file,taking into account that I don't know the assembly?
Thank you


   Attachment(s)

dcf77.asm (14.01 KB) - downloaded 148 times

回帖(19)

tijing忽忽

2019-4-12 12:14:51
这张照片的两个版本只有几个不同之处。不起作用“真的没用,它什么也没告诉我们。请具体说明:PIC是做什么的?它不做什么?这里是迁移文档的链接:HTTP:/WW1.MICCHIP.COM/DeLooSs/En/DeVICEDC/O48A.PDF。

以上来自于百度翻译


      以下为原文

    There are only a few differences betwen the two versions of this pic. "doesn't work" really is useless, it tells us nothing. Please be more specific: what does the pic do? what does it NOT do? Here is a link to the migration document: http://ww1.microchip.com/downloads/en/DeviceDoc/40048a.pdf .
举报

陈鲜孰

2019-4-12 12:32:36
请参阅PIC16F62A/628 A/648 A迁移(DS400 48 A)。唯一的显著差异是,在代码中不能补偿的电子规格,以及配置比特,您必须改变这些配置比特:必须使用“628数据表”,然后使用其数据表,为“62A”写一个新配置。ND替换所有文本:16F628与16F628,这是一个FugLy*的方式来指定一个配置字。MPASM P16F….Inc包括文件,每个配置位都有有意义的名称,转到MMPASM文件夹,并在P16F628 A.Inc文件中查看参数和模板/代码/16F628 ATMU.ASM,以便在实际的Y-O.CONFIG指令中使用它们。

以上来自于百度翻译


      以下为原文

    See PIC16F627A/628A/648A Migration (DS40048A)
The only significant differences are electrical specs, which you cant compensate for in code, and the CONFIG bits, which you must change
 
You'll have to decode what:
  PROCESSOR 16F628
  RADIX DEC
  INCLUDE "P16F628.INC"
  __CONFIG 11110100010100B
means using the '628 datasheet then write a  new config for the '628A using its datasheet, and replace all text: 16F628 with 16F628A
 
That's one *FUGLY* way to specify a Config word.  The MPASM P16F....INC include files have meaningful names for each Config bit - goto your MPASM folder and look in the p16f628a.inc file for the parameters and in Template/Code/16F628ATEMP.ASM for how to use them in an actual __CONFIG directive.
举报

李兆峰

2019-4-12 12:46:00
是的,我几乎可以互换它们…配置设置有点不同,这会阻止它们启动。

以上来自于百度翻译


      以下为原文

    Yeah, I used them almost interchangeably...
CONFIG settings are a bit different and it would prevent them from starting
举报

李兆峰

2019-4-12 12:58:59
是的,Hth:

以上来自于百度翻译


      以下为原文

    Yeah, HTH:

#IFDEF __16F628                                ; sul 628 non ci sono analogici...
    list      p=16F628,r=dec       ; list directive to define processor, r=RADICE numerica di default (dec, hex...)
    #include         ; processor specific variable definitions

    __CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _HS_OSC  & _MCLRE_OFF & _LVP_OFF

; '__CONFIG' directive is used to embed configuration data within .asm file.
; The lables following the directive are located in the respective .inc file.
; See respective data sheet for additional information on configuration word.

    messg "*** Creazione programma per 16F628"

#endif
#IFDEF __16F628A                                ; sul 628 non ci sono analogici...
    list      p=16F628A,r=dec       ; list directive to define processor, r=RADICE numerica di default (dec, hex...)
    #include         ; processor specific variable definitions

    __CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _HS_OSC  & _MCLRE_OFF & _LVP_OFF

    messg "*** Creazione programma per 16F628A"

#endif

 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分