| Electronic Components Datasheet Search |
|
STA369BWS Datasheet(PDF) 82 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STA369BWS Datasheet(HTML) 82 Page - STMicroelectronics |
|
82 / 89 page ![]() Register description STA369BWS 82/89 Doc ID 16861 Rev 4 6.23.6 Description STA369BWS implements an automatic CRC computation for the Biquad and MDRC / XOver coefficient memory (Table 71). RAM memory cell contents from address 0x00 to 0x27 are bit XORed to obtain BQCHKE checksum, while cells from 0x28 to 0x31 are XORed to obtain the XCCHKE checksum. Both checksum (24-bit wide) are exported on I2C registers from 0x60 to 0x65. The checksum computation starts as soon as the BCGO (for biquad RAM bank) or the XCGO bits (for MDRC / XOver coefficients) are set to 1. The checksum is computed at the processing sample rate if IR bits equal to 01 or 10, otherwise the checksum is computed to half processing sample rate. When BCCMP or XCCMP are set to 1 the relative checksum (BQCHKE and XCCHKE) is continuously compared with BQCHKR and XCCHKR respectively. If the checksum match with its own reference value, the respective result bits (BCRES and XCRES) are set to 0. The compare bits have no effect if the respective GO bit is not set. In case of checksum errors (that is, the internally computed didn’t match the reference), an automatic device reset action can be activated. This function is enabled when BCAUTO or XCAUTO bits are set to ‘1’. The automatic reset bits have no effect if the respective compare bits are not set. The suggested procedure for Automatic reset activation is the following one: 1. Download coefficients set (RAM locations 0x00…0x27) 2. Download externally computed biquad checksum into registers BQCHKR 3. Enable checksum of biquad coefficients by setting BCGO bit. Checksum starts to be automatically computed by STA369BWS and its value written in registers BQCHKE. 4. Enable checksum comparison by setting BCCMP bit. Internally computed checksum will start to be compared with the reference one and result will be exposed on the BCRES bit. Following operation will be executed on each audio frame: if (BQCHKE == BQCHKR) { BC_RES = 0; } // Checksum is ok, reset the error bit else { BC_RES = 1; } // Checksum error detected, set the error bit 5. Wait until the BCRES bit goes to 0, meaning checksum result bit has started to be updated and everything is ok. Time out for this operation (for example, >1 ms) indicates checksum failure, MCU will handle this event. 6. Enable automatic reset of the device in case of checksum error by setting the BCAUTO bit. The BCRES bit will then be automatically checked by STA369BWS, on each audio frame, and reset event will be triggered in case of checksum mismatch. 7. Periodically check BCRES status. A value of 1 indicates a checksum mismatch has occurred and, therefore, the device went through a reset cycle. The previous example is intended for biquad CRC bank calculations, but it can be easily extended to MDRC / XOver CRC computation. |
|
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 |