在线时间0 小时
UID2058306
注册时间2013-11-20
NXP金币0
该用户从未签到
新手上路
- 积分
- 1
- 最后登录
- 1970-1-1
|
发表于 2013-12-13 18:09:13
|
显示全部楼层
回复:有没有人用过freescale的K60中的UART的7816协议
回复第 2 楼 于2012-11-12 16:28:41发表:
请参考下面内容
1、ISO CLK的计算
One character is composed of 10 bits, and each bit is transmitted as I/O in one Elementary Time Unit (ETU). One ETU is
determined by the frequency of CLK (f), clock rate conversion integer (Fi), and baud rate adjustment integer (Di).
1 ETU = Fi / Di * (1/f)
2、K系列 ETU的计算
The ISO-7816 specification defines several wait time and guard time parameters. The
UART allows for flexible configuration and violation detection of these settings. On reset
the wait time (IS7816[WT]) defaults to 9600 ETUs and guard time (GT) to 12 ETUs.
These values are controlled by parameters in the WP7816, WN7816 and WF7816
registers. Additionally the value of C7816[TTYPE] also factors into the calculation. The
formulas used to calculate the number ETU for each wait time and guard time value are
shown in the following table.
我也在用这个 k 系列的 uart 7816协议, 我外接的是 TDA8034 ,我有个问题能不能问一下, 我设置的 CLK提供给卡的 时钟频率是 固定的 5MHZ, 那么在没做pps之前 1个etu = 372/5000000 = 75us, 波特率是 5000000/372 = 13440 bit/s ,请问 那么卡片发送 atr 给终端 是 用13440 波特率, 为什么不是 默认的 9600 ? |
|