gprs_new 发表于 2014-4-24 14:46:07

谁能帮忙写一个小的51的汇编程序

谁能帮忙写一个51汇编程序

功能:是把RAM区的20H到28H的数据,以韦根26的格式单片机的P3.5(D0),P3.6(D1)输出。{:sweat:} 研究了一段时间还是不会韦根。所以只能悬赏看那位兄弟可以帮忙写。

主要用于用于学习通讯协议的转换。一直卡在这里过不去。谢谢了

wkman 发表于 2014-4-24 15:01:27

http://baike.baidu.com/view/557637.htm

发送程序:
//功能:把数组封包成韦根26的格式,并发送出去
// 原理是把每个字节的低4位取出,来计算这个字节的值
//入口:str=要封包的数组,
//出口:DATA0P3.0;DATA1=P3.1
//设计:大鹏,大鹏艾迪,2006/4/11

gprs_new 发表于 2014-4-24 15:03:52

wkman 发表于 2014-4-24 15:01
http://baike.baidu.com/view/557637.htm

发送程序:


先谢了兄弟,这个我找过,可不会C语言啊{:sweat:}

qtds67 发表于 2014-4-24 15:06:15

度娘
http://read.pudn.com/downloads162/doc/735411/wiegand_.pdf

gprs_new 发表于 2014-4-24 15:10:30

qtds67 发表于 2014-4-24 15:06
度娘
http://read.pudn.com/downloads162/doc/735411/wiegand_.pdf

谢了兄弟;这个也找过,这个是接收韦根的,我这边想要的是输出,的{:loveliness:}

lgg88 发表于 2014-4-24 15:41:09

你要意思意思 可能才有人帮你写   ,这个都是要时间的啊

lgg88 发表于 2014-4-24 15:41:50

你这个30莫元也太抠门了   ,,把你的莫元全部奉上   看看有没有人帮你

imfv 发表于 2014-4-24 19:44:33

楼主和我一样,金牌是灌水灌来的?{:titter:}

gprs_new 发表于 2014-4-24 20:16:53

imfv 发表于 2014-4-24 19:44
楼主和我一样,金牌是灌水灌来的?

单片机程序也是半桶水都不到,靠自己学的{:lol:} ,不会C。

wingerchen 发表于 2014-4-24 20:18:34

太抠门了。。。。。。。。

ksd 发表于 2014-4-24 20:26:31

你给的是20莫元,如果是20RMB或许会有人帮忙{:lol:}

xiaolaba 发表于 2014-4-24 21:04:16

本帖最后由 xiaolaba 于 2014-4-24 21:07 编辑

http://www.proxclone.com/images/wiegand_electrical.gif




The original Wiegand format had
1 parity bit,
8 bits of facility (or site) code (i.e. starting at the second bit in the sequence, and with a length of 8 bits),
16 bits of ID/user code (i.e. starting at the 10th bit with a length of 16 bits),
1 stop/parity bit for a total of 26 bits (see below).

The first parity bit (even) is calculated from the first 12 bits of the code and the trailing parity bit (odd) from the last 12 bits.
The original 26-bit wiegand format is depicted in the figure below.

http://www.proxclone.com/images/wiegand_protocol.gif

chengtina 发表于 2014-4-24 21:08:16

imfv 发表于 2014-4-24 19:44
楼主和我一样,金牌是灌水灌来的?

这话也是我想说的,哈哈
不过这个我还真会。。。。

sdxjgby 发表于 2014-4-24 21:58:40

握个爪,同样不会C。

enovo2468 发表于 2014-4-24 23:19:26

神马是韦根?

momo_li 发表于 2014-4-24 23:31:38

居然不会C,看来是老前辈啊

gprs_new 发表于 2014-4-25 02:00:11

还是继续研究吧,{:lol:}那天弄懂了在来威武一下

qiushui_007 发表于 2014-4-25 05:46:31

汇编威武

gprs_new 发表于 2014-4-25 08:35:28

xiaolaba 发表于 2014-4-24 21:04
The original Wiegand format had
1 parity bit,
8 bits of facility (or site) code (i.e. startin ...

是用定时器来产生它的脉宽?还是用个延迟程序啊?

xiaolaba 发表于 2014-4-25 23:11:36

gprs_new 发表于 2014-4-25 08:35
是用定时器来产生它的脉宽?还是用个延迟程序啊?

你真的會寫 51 ASM, 但是不會看C 和那些時序圖 ?

ywhbn 发表于 2014-4-25 23:39:35

gprs_new 发表于 2014-4-24 15:03
先谢了兄弟,这个我找过,可不会C语言啊

看看C编译出来的汇编再改改嘛,够懒的
页: [1]
查看完整版本: 谁能帮忙写一个小的51的汇编程序