TRF7970A IC Communication Interface




General Introduction
The communication interface to the reader can be configured in two ways:
with a eight line parallel interface (D0:D7) plus DATA_CLK, or
with a three or four wire Serial Peripheral Interface (SPI).
The SPI interface uses traditional Master Out/Slave In (MOSI), Master In/Slave Out (MISO), IRQ, and DATA_CLK lines.
The SPI can be operated with or without using the Slave Select line.
These communication modes are mutually exclusive; that is, only one mode can be used at a time in the application.
When the SPI interface is selected, the unused I/O_2, I/O_1, and I/O_0 pins must be hard-wired as shown in Table 5-9.
At power up, the TRF7970A samples the status of these three pins and then enters one of the possible SPI modes.
The TRF7970A always behaves as the slave device, and the microcontroller (MCU) behaves as the master device.
The MCU initiates all communications with the TRF7970A, and the TRF7970A makes use of the Interrupt Request (IRQ) pin
in both parallel and SPI modes to prompt the MCU for servicing attention.
Communication is initialized by a start condition, which is expected to be followed by an Address/Command word (Adr/Cmd).
The Adr/Cmd word is 8 bits long, and its format is shown in Table 5-10.
The MSB (bit 7) determines if the word is to be used as a command or as an address.
The last two columns of Table 5-10 show the function of the separate bits if either address or command is written.
Data is expected once the address word is sent.
In continuous-address mode (Cont. mode = 1), the first data that follows the address is written (or read) to (from) the given address.
For each additional data, the address is incremented by one.
Continuous mode can be used to write to a block of control registers in a single stream without changing the address;
for example, setup of the predefined standard control registers from the MCU non-volatile memory to the reader.
In non-continuous address mode (simple addressed mode), only one data word is expected after the address.
Address Mode is used to write or read the configuration registers or the FIFO. When writing more than 12 bytes to the FIFO,
the Continuous Address Mode should be set to 1.
The Command Mode is used to enter a command resulting in reader action
(for example, initialize transmission, enable reader, and turn reader on or off).
Examples of expected communications between an MCU and the TRF7970A are shown in the following sections.
The IRQ line is indeed the interrupt back to the MCU to indicate something has occurred. The reading of the IRQ status register is then the pointer to the logic of what to do next. For example, after transmitting out a command sequence to a tag, you will get an IRQ which needs to be serviced by reading the IRQ status register (which clears the IRQ), then most likely you would have an 0x80, telling you that the transmission was successful (we call EOTX (end of transmit) IRQ)...then you would next get an IRQ, which would for example be 0x40, indicating an EORX (end of recieve) has occured, then you would read the FIFO status for # of bytes to clock out, then read the FIFO for the data...you can see in the data sheet the descriptions of the IRQ register and and some examples, too. (see the TRF7970A DS, section 5.9.xx)
The ASK/OOK line in your case most likely can just be pulled to GND or you can connect it to a GPIO on your MCU like we have it shown in the reference schematics. MOD same thing, unless you are using any Mifare Classic tags, then you would need control of the MOD pin for Direct Mode 0, so then it would need to be connected to a GPIO.
Usually we are recommending connecting EN line to a GPIO, with a pulldown (needs to see low to high transition) so you can have control of some of the power modes...EN2 can also be connected to a GPIO or pulled high or low, depending on your need for even lower power consumption.
Correct about I/O_0, I/O_1 and I/O_2 being at GND potential for SPI w/o SS.
If it helps here is a schematic of SPI with SS, which you can modify for your own usage, since you say you want to do without SS. (I/O_3 and I/O_5 are connected in this drawing as well, and this is for Special Direct Mode, which you may or may not need, depending on which tags you are trying to use here - normally not needed, just FYI)
7183.TRF7970A_SPI_MSP430F2370_dongle_sch.pdf

TRF7970A IC Communication Interface的更多相关文章
- USB组合设备 Interface Association Descriptor (IAD)
Communication Device Class,简称CDCUSB Compound Device,USB复合设备USB Composite Device,USB组合设备 摘要USB复合设备 Co ...
- (转)什么是CDC类(Communication Device Class)
全文地址:http://justmei.blog.163.com/blog/static/1160998532010321112522467/ 什么是CDC类 (Communication Devic ...
- Chrysler -- CCD (Chrysler Collision Detection) Data Bus
http://articles.mopar1973man.com/general-cummins/34-engine-system/81-ccd-data-bus CCD (Chrysler Coll ...
- 实验室项目.md
1 嵌入式操作系统 为什么要用嵌入式操作系统 普通的单片机编程:程序(软件)--单片机硬件: 嵌入式操作系统开发:程序(软件)--操作系统--嵌入式硬件(包括单片机等); 我们平时普通所学的单片机编程 ...
- Linux内核配置选项
http://blog.csdn.net/wdsfup/article/details/52302142 http://www.manew.com/blog-166674-12962.html Gen ...
- Smart internet of things services
A method and apparatus enable Internet of Things (IoT) services based on a SMART IoT architecture by ...
- Indexing Sensor Data
In particular embodiments, a method includes, from an indexer in a sensor network, accessing a set o ...
- 深入linux kernel内核配置选项
============================================================================== 深入linux kernel内核配置选项 ...
- Fedora 24中的日志管理
Introduction Log files are files that contain messages about the system, including the kernel, servi ...
随机推荐
- 未找到与约束 ContractName Microsoft.VisualStudio.Utilitues.IContentTypeRegistryService......
1.问题提出 用VS 2013 with Update5 开发项目,点击项目中的文件,发现打不开,抛出如下的错误. 错误提示: 未找到与约束 ContractName Microsoft.Visual ...
- 如何在Cent OS上安装和部署jdk与tomcat?
Cent OS是一款Linux系统.在商业应用中,Linux操作系统在服务器市场有着广泛的运用,这源于Linux系统的几大优点: 1.跨平台的硬件支持 由于Linux 的内核大部分是用C 语言编写的, ...
- C# 多线程多文件批量下载---子线程中更新UI 实例
代码1: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;usi ...
- mongo备份&恢复
1.备份数据: $mongodump -h 127.0.0.1 -u traderaccount -p kasumi -d traderaccount -o "/traderaccount& ...
- [你必须知道的.NET]第二十二回:字符串驻留(上)---带着问题思考
发布日期:2008.8.27 作者:Anytao © 2008 Anytao.com ,Anytao原创作品,转贴请注明作者和出处. 说在,开篇之前 走钢丝的人,在刺激中体验快感.带着问题思考,在问题 ...
- 用户代码未处理EntityCommandExecutionmException报错解决方案
原因可能是(1)没有编译好,清理解决方案,重新生成解决方案. (2)可能是WebSiteConfiguration.DbProviderName;中为DbProviderName属性 ...
- css3代码整理—弹性盒子篇
父级使用弹性盒子: #fu{ display:flex; } 父级中子级的对齐方式: 1.水平对齐方式:两端对齐 #fu { display:flex; justify-content:space-b ...
- day4递归原理及实现
递归 特定: 递归算法是一种直接或者间接地调用自身算法的过程.在计算机编写程序中,递归算法对解决一大类问题十分有效,它往往是算法的描述简洁而且易于理解. 递归算法解决问题的特点: (1)递归就是在过程 ...
- Web前端开发最佳实践(3):前端代码和资源的压缩与合并
一般在网站发布时,会压缩前端HTML.CSS.JavaScript代码及用到的资源文件(主要是图片文件),目的是加快文件在网络中的传输,让网页更快的展现.当然,CDN分发.缓存等方式也是加快代码或资源 ...
- c++ primer 10 关联容器
关联容器和顺序容器的本质差别在于:关联容器通过键(key)存储和读取元素,顺序容器则通过元素在容器中的位置顺序存储和访问元素 关联容器类型 map 关联数组:元素通过键来存储和读取 set 大小可变的 ...