没有合适的资源?快使用搜索试试~ 我知道了~
i2c的一个说明文档 sequencer
资源详情
资源评论
资源推荐
1.1 I
2
C master sequencer
The I
2
C master sequencer is designed to run through a set of instructions programmed
beforehand into an instruction FIFO. For read operations the read data is written into a FIFO for
later retrieval.
Figure 1. I
2
C Byte Stream Code
The byte stream code is shared with the I
2
C snooper module. Entries marked with x in the EX
column are valid for the sequencer. Opcodes and immediates are 4-bits.
The sequencer supports burst operation by specifying the immediate value N. N = 0 is the
default 1 byte transfer, N = 15 is the maximum supported 16 byte transfer.
A one-byte read operation has the instruction code 0x80, while a 5-byte read operation has the
code 0x84. A one byte write operation has the instruction sequence 0x80 0xXX, where XX is
the data to be written. Similarly, a 3 byte write operation has the instruction sequence 0x82
0xXX 0xYY 0xZZ.
The sequencer can be paused. The duration is specified in units of 32 ticks, with each tick
being ¼ of the SCL clock width. So 32 ticks equal the time of an 8-bit data transfer (sans ack).
You can delay up to 16 units per instruction.
The sequencer supports event triggering. Opcode 0xC instructs the sequencer to wait for a
trigger event, as specified by the immediate value M. The sequencer won’t advance until the
trigger event happens or until you issue an abort command.
Both the instruction and readback FIFOs are 256 bytes deep.
Table 1. I
2
C master sequencer registers
Addr
Name
R/W
Description
Default
0x30 CTL R/W CTL[2]: clear the FIFOs
CTL[1]: abort the sequencer
CTL[0]: arm the sequencer
0x00
0x31 STAT R/O STAT[7:1]: reserved
STAT[0]: busy indicator
0x00
0x32 THROTTLE R/W Use this to adjust the target SCL speed.
Throttle = Fsys/Fi2c/4
The default value generates 100KHz from
24MHz source clock: 24E6/100E3/4 = 60.
60
cj2667012
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0