| 数据搜索系统,热门电子元器件搜索 |
|
NOIP1FN016KA-GDI 数据表(PDF) 25 Page - ON Semiconductor |
|
|
|||||||||||||||||||||||||||||
NOIP1FN016KA-GDI 数据表(HTML) 25 Page - ON Semiconductor |
|
25 / 87 page ![]() NOIP1SN025KA, NOIP1SN016KA, NOIP1SN012KA, NOIP1SN010KA www.onsemi.com 25 Serial Peripheral Interface The sensor configuration registers are accessed through an SPI. The SPI consists of four wires: • sck: Serial Clock • ss_n: Active Low Slave Select • mosi: Master Out, Slave In, or Serial Data In • miso: Master In, Slave Out, or Serial Data Out The SPI is synchronous to the clock provided by the master (sck) and asynchronous to the sensor’s system clock. When the master wants to write or read a sensor’s register, it selects the chip by pulling down the Slave Select line (ss_n). When selected, data is sent serially and synchronous to the SPI clock (sck). Figure 21 shows the communication protocol for read and write accesses of the SPI registers. The PYTHON XK sensor uses 9-bit addresses and 16-bit data words Data driven by the system is colored blue in Figure 21, while data driven by the sensor is colored yellow. The data in grey indicates high-Z periods on the miso interface. Red markers indicate sampling points for the sensor (mosi sampling); green markers indicate sampling points for the system (miso sampling during read operations). The access sequence is: 3. Select the sensor for read or write by pulling down the ss_n line. 4. One SPI clock cycle (100 ns) after selecting the sensor, the 9-bit address is transferred, most significant bit first. The sck clock is passed through to the sensor as indicated in Figure 21. The sensor samples this data on a rising edge of the sck clock (mosi needs to be driven by the system on the falling edge of the sck clock) 5. The tenth bit sent by the master indicates the type of transfer: high for a write command, low for a read command. 6. Data transmission: - For write commands, the master continues sending the 16-bit data, most significant bit first. - For read commands, the sensor returns the requested address on the miso pin, most significant bit first. The miso pin must be sampled by the system on the falling edge of sck (assuming nominal system clock frequency and maximum 10 MHz SPI frequency). 7. When data transmission is complete, the system deselects the sensor one clock period after the last bit transmission by pulling ss_n high. Note the maximum frequency for the SPI interface needs to scale with the LVDS input clock frequency as described in Table 5. Consecutive SPI commands can be issued by leaving at least two SPI clock periods between two register uploads. Deselect the chip between the SPI uploads by pulling the ss_n pin high. Figure 21. SPI Read and Write Timing Diagram .. A1 A0 `1' A8 D15 D14 .. .. .. .. D1 D0 sck mo si ss_n SP I − W R ITE miso A7 .. .. .. A1 A0 `0' A8 sck mo si ss_n SPI − REA D miso A7 .. .. D15 D14 .. .. .. .. D1 D0 ts_mosi th_mosi t_sssck t_sc ks s ts _mi so th_mi so t_sc ks s t_sssck ts _mos i th_mosi ts ck ts ck |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |