读取智能卡(8 位还是 16 位?)
我正在开发一个用于读取智能卡 (PC/SC) 的驱动程序,并且我一直以强制 8 位方式读取数据,即使卡本身可能具有 16 位芯片。我有两个问题,一是如何判断该卡是符合16位还是8位架构,二是:将16位系统视为16位是否会有性能提升?
I'm working on a driver for reading smart cards (PC/SC), and I've been reading the data in a forced 8-bit manner, even if the card itself might have a 16-bit chip. I have two questions, one is: how would I tell whether the card conforms to a 16-bit or 8-bit architecture, and the other is: would there be a performance boost to treating the 16-bit system as 16-bit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不。CPU
内部是 8 位、16 位甚至 32 位。但当前所有处理器卡都通过 ISO 7816-3(接触式)或 ISO 14443(非接触式)接口运行。控制速度的是这个接口,而不是CPU。 CPU 为此使用外部时钟,但所有最新的智能卡都使用以更高速度运行的内部时钟。
只要接口不更新,8位或16位之间的“选择”就没什么关系了,更不用说8位了。我把“选择”放在引号之间,因为我看不出你在哪里有任何选择这。
No.
The CPU is internally 8, 16 or even 32 bit. But all current processor cards operate over either an ISO 7816-3 (contact) or ISO 14443 (contactless) interface. It's this interface that controls the speed, not the CPU. The CPU uses an outer clock for this, but all the latest smart cards use an internal clock that is running at much higher speeds.
As long as the interfaces are not updated, the "choice" between 8 or 16 bit doesn't matter a bit, let alone 8. I've put "choice" between quotes because I don't see where you have any choice in this.