| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN4035 bảng dữ liệu(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4035 bảng dữ liệu(HTML) 32 Page - STMicroelectronics |
|
32 / 42 page ![]() Nexus Read/Write access block AN4035 32/41 Doc ID 022669 Rev 2 4.2 Single memory write access The steps to perform a single memory write access via the Nexus R/W access block are: 1. Initialize RWA with the address to be written using Nexus register index 0x9. 2. Initialize RWCS using Nexus register index 0x7. a) Access Control (AC) = 0b1 (to indicate start access) b) Map Select (MAP) = 0b000 (primary memory map) c) Access Priority (PR) = 0b00 (lowest priority) d) Read/Write (RW) = 0b1 (write access) e) Word Size (SZ) = 0b000 (8-bit) or 0b001 (16-bit) or 0b010 (32-bit) f) Access Count (CNT) = 0b00_0000_0000_0000 or 0b00_0000_0000_0001 (single access) g) Burst Control (BST) = 0b0 (burst disabled) 3. Initialize RWD using Nexus register index 0xA with the data to be written to the address in RWA. The endianess of the data needs to be right-justified little endian. - 8-bit value of 0xDE to be written to memory: RWD = 0x000000DE - 16-bit value of 0xDEAD to be written to memory: RWD = 0x0000ADDE - 32-bit value of 0xDEADBEEF to be written to memory: RWD = 0xEFBEADDE 4. The Nexus block then arbitrates for the system bus and transfer the data value from RWD to the memory mapped address in RWA. When the access has completed without error, then RWCS[ERR] = 0 and RWCS[DV] = 0. This indicates that the device is ready for the next access. Nexus also asserts the RDY pin when the transaction has completed without error. The external tool can use this as an alternative to polling the RWCS status bits. 4.3 Burst block memory write access The steps to perform a burst block memory write access via the Nexus R/W access block are: 1. Initialize RWA with the first address to be written using Nexus register index 0x9. The address needs to be aligned on an 8-byte boundary. RWA[2:0] are ignored on a burst write. 2. Initialize RWCS using Nexus register index 0x7. a) Access Control (AC) = 0b1 (to indicate start access) b) Map Select (MAP) = 0b000 (primary memory map) c) Access Priority (PR) = 0b00 (lowest priority) d) Read/Write (RW) = 0b1 (write access) e) Word Size (SZ) = 0b011 (64-bit) f) Access Count (CNT) = 0b00_0000_0000_0100 (four double-words)\ g) Burst Control (BST) = 0b1 (burst enabled) 3. Write all 32 bytes of data to be burst to RWD using Nexus register index 0xA, 32-bits at a time, starting with the first 32-bit word to be written to the address in RWA. This data |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |