| Electronic Components Datasheet Search |
|
PT2000 Datasheet(PDF) 78 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PT2000 Datasheet(HTML) 78 Page - NXP Semiconductors |
|
78 / 148 page ![]() NXP Semiconductors 78 PT2000 Sending a control word with the parameter number set to zero and the parameter offset greater than zero is not allowed. This leads to data corruption in the registers or DRAM. For example, to initialize the values of 24 LS pre-driver diagnosis configuration registers, it is necessary to: • Select the communication interface as the target: this is done by writing the value 0100h at the address 3FFh. First send the data “0_1111111111_00001” (7FE1h) via the SPI. As the ASIC is in idle conditions, it uses this data as a command word. In particular, this specific command word of the example means: write (because of the initial 0) starting from address 3FFh (the ten bits immediately after) 1 word (the five bits at the end). The next data to send is 0100h. The SPI block is expecting a write to 3FFh, so write 0100h in the location 3FFh. As the number of word expected is arrived, the SPI block returns to the idle state; • Write the value of the 24 registers: the SPI block is waiting for a command word. The correct data to send is “0_0111000000_11000”. This means write (0) starting form address 1C0h (0111000000) 24 words (11000). The next 24 words are written to the communication interface registers. 8.2.3.2 Mode B Figure 31. SPI protocol mode B CSB, MOSI, and MISO For the duration of a burst of data, the SPI chip select must be asserted, even between data transfers. The first word after the chip select assertion is considered to be the command word and the following words are the data. If the number parameter is not zero, the SPI interface goes into error state if: • the chip select is de-asserted and the number of words transferred is lower than the number parameters required by the command word, • the number of word transferred is equal to the number parameter + 1. If the number parameter is zero, there is no check on the number of words transferred, and the length of the burst is decided only by the assertion of SPI chip select. It is not recommended to read from any register which is “reset on read” nor from any register which is located one address before such a register using a mode B burst with the number parameter set to zero. This may lead to the effect of a register reset, which is not a read out via the SPI. This problem does not occur if the number parameter is equal to the number of data words transmitted. Note: If one additional data word is sent it is detected, but also written. For example: • SPI write access mode B, parameter number set to 3 and 3 data words written with no error • SPI write access mode B, parameter number set to 3 and 4 data words written with a SPI frame error after the 4th data word, but the 4th data word is written to RAM or the register. • SPI write access mode B, parameter number set to 3 and 6 data words written with a SPI frame error after the 4th data word, but the 4th data word is written to RAM or the register. 5th and 6th data words are not written to memory. CSB MOSI (read) control word MISO (read) check byte error bits data 1 data n+1 MOSI (write) control word MISO (write) check byte error bits data 1 data n+1 check byte error bits check byte error bits |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |