| 数据搜索系统,热门电子元器件搜索 |
|
CS494002 数据表(PDF) 56 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CS494002 数据表(HTML) 56 Page - Cirrus Logic |
|
56 / 100 page ![]() 56 The example shown in this section can be used for any control read situation. The generic function ‘Read_Byte_*()’ is used in the following example as a generalized reference to either Read_Byte_MOT() (Motorola byte read) or Read_Byte_INT() (Intel byte read). Figure 41 shows a typical read sequence. The protocol presented in Figure 41 will now be described in detail. 1) Optionally, FINTREQ going low may be used as an interrupt to the host to indicate that DSPAB has an outgoing message. Note that even with the use of FINTREQ, HOUTRDY must be checked to ensure that the current byte is readytobereadbythe hostduringthe read process. Please note that the state of FINTREQ is undefined during boot, and it is valid only once the application code is loaded. 2) The host reads the Host Control Register (FA[1:0] = 01b) in order to determine the state of the communication interface. 3) In order to determine whether DSPAB has an outgoing control byte that is valid, the host must check the HOUTRDY bit of the Host Control Register (bit 1, FA[1:0] = 01b). If HOUTRDY is high, then the Host Message Register contains a valid message byte for the host. If HOUTRDY is low, then the DSP has not placed a new control byte in the Host Message Register, and the host should poll the Host Control Register again. 4) Once the host knows that the DSP is ready to provide a new response byte, the host can safely read a byte from the Host Message Register (FA[1:0] = 00b) using the appropriate communication protocol (Motorola or Intel). 5) If the host expects to read any more response bytes, the host should once again check the HOUTRDY bit (return to step 1). Messages from the application code (post-download) on the DSP will always be 6 bytes, unless otherwise stated in the associated Application Note. 6) After the response has been read the host should wait at least 100 uS and check HOUTRDY one final time. If HOUTRDY is high once again this means that an unsolicited message has come during the read process and the host has another message to read (i.e. skip back to step 4 and read out the new message). It is the host’s responsibility to insure that any pending messages are read from the DSP. F I NT RE Q = 0 ? ( o p t ional) M O R E BYT ES T O RE A D ? F I N ISH ED R E AD _ B YT E _ * ( H O S T CO NT RO L R E G I S T E R) Y N R E AD _ B YT E _ * ( H O S T M E SS AG E R EG I S T E R ) HO U T RD Y = = 1 Y N Y R E AD _ B YT E _ * ( H O S T CO NT RO L R E G I S T E R) HO U T RD Y = = 1 W A I T 100 M IC R O S E C Y N Figure 41. Typical Parallel Host Mode Control Read Sequence Flow Diagram for DSPAB |
|
链接网址 |
| 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 |