摘 要: TDC-GP22芯片是一款皮秒级高精度时间数字转换芯片,由于TDC-GP22内部寄存器种类繁多,所以芯 片编程操作相对较复杂。为此根据TDC-GP22的SPI接口特点,并结合AVR单片机主机优势,用高级语言编制符合SPI 接口协议程序,实现对TDC-GP22的两种主要操作,一种是按照SPI协议对芯片的寄存器进行读取数据操作,另一种 是根据SPI协议数据循环特点对芯片寄存器进行写入数据操作。TDC-GP22实验测试结果表明所编制程序运行完全稳 定可行。 |
关键词: 芯片;高级语言;单片机;接口 |
中图分类号: TP31
文献标识码: A
|
|
Research and Implementation of Key Programming Algorithm for the TDC-GP22 Time Digital Chip |
CHEN Yu
|
( Information Center, Business College of Shanxi University, Taiyuan 030031, China)
|
Abstract: The TDC-GP22 chip is a picosecond level high precision time-to-digital conversion chip,the programming of which is relatively complex because of the wide variety of internal registers in TDC-GP22.Therefore,based on the features of TDC-GP22's SPI interface,combined with the advantages of AVR microcontrollers,SPI interface protocol program is compiled with high-level language to implement the two main operations of TDC-GP22,one is to read data operations on the chip registers according to the SPI protocol,the other is to write data to the chip registers according to the data cycle characteristics of the SPI protocol.TDC-GP22 experimental results show that the program is stable and feasible. |
Keywords: chip;high-level language;microcontrollers;interface |