查看: 4885|回复: 4

[分享] 有没有人用过freescale的K60中的UART的7816协议

[复制链接]

该用户从未签到

1

主题

2

帖子

0

新手上路

Rank: 1

积分
8
最后登录
1970-1-1
发表于 2012-11-12 15:12:48 | 显示全部楼层 |阅读模式
 请问有没有人用过freescale的K60中的UART的7816协议啊!想知道波特率如何设置。哪位高手能指导 一下啊!
回复

使用道具 举报

  • TA的每日心情
    难过
    2021-12-15 16:01
  • 签到天数: 1 天

    [LV.1]初来乍到

    305

    主题

    4701

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    373
    最后登录
    2023-8-16
    发表于 2012-11-12 16:28:41 | 显示全部楼层

    RE:有没有人用过freescale的K60中的UART的7816协议

    请参考下面内容
    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.
    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    1

    主题

    2

    帖子

    0

    新手上路

    Rank: 1

    积分
    8
    最后登录
    1970-1-1
     楼主| 发表于 2012-11-12 18:04:34 | 显示全部楼层

    RE:有没有人用过freescale的K60中的UART的7816协议

    再问一下,IC卡的I/O口边到TXD,那如何来控制TXD的电平呢?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    难过
    2021-12-15 16:01
  • 签到天数: 1 天

    [LV.1]初来乍到

    305

    主题

    4701

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    373
    最后登录
    2023-8-16
    发表于 2012-11-13 09:04:33 | 显示全部楼层

    RE:有没有人用过freescale的K60中的UART的7816协议

    这个由模块自动控制。如果想了解更详细,去看一下ISO7816的协议就明白了。
    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    1

    帖子

    0

    新手上路

    Rank: 1

    积分
    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 ?  
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-5-8 08:44 , Processed in 0.122849 second(s), 22 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表