| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 43 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 43 Page - Microchip Technology |
|
43 / 283 page ![]() 2013 - 2014 Microchip Technology Inc. DS00001587C-page 43 SEC2410/SEC4410 7.3 Bit-banding The processor memory map includes two bit-band regions. These occupy the lowest 1MB of the SRAM and Peripheral memory regions respectively. These bit-band regions map each word in an alias region of memory to a bit in a bit-band region of memory. The memory map has two 32-MB alias regions that map to two 1-MB bit-band regions: • Accesses to the 32-MB SRAM alias region map to the 1-MB SRAM bit-band region. • Accesses to the 32-MB peripheral alias region map to the 1-MB peripheral bit-band region. A mapping formula shows how to reference each word in the alias region to a corresponding bit, or target bit, in the bit- band region. The mapping formula is: bit_word_offset = (byte_offset x 32) + (bit_number ´ 4) bit_word_addr = bit_band_base + bit_word_offset where: • Bit_word_offset is the position of the target bit in the bit-band memory region. • Bit_word_addr is the address of the word in the alias memory region that maps to the targeted bit. • Bit_band_base is the starting address of the alias region. • Byte_offset is the number of the byte in the bit-band region that contains the targeted bit. • Bit_number is the bit position (0-7) of the targeted bit. 7.3.1 DIRECTLY ACCESSING AN ALIAS REGION Writing to a word in the alias region has the same effect as a read-modify-write operation on the targeted bit in the bit- band region. Bit [0] of the value written to a word in the alias region determines the value written to the targeted bit in the bit-band region. Writing a value with bit [0] set writes a 1 to the bit-band bit, and writing a value with bit [0] cleared writes a 0 to the bit-band bit. Bits [31:1] of the alias word have no effect on the bit-band bit. Writing 0x01 has the same effect as writing 0xFF. Writing 0x00 has the same effect as writing 0x0E. Reading a word in the alias region returns either 0x01 or 0x00. A value of 0x01 indicates that the targeted bit in the bit- band region is set. A value of 0x00 indicates that the targeted bit is clear. Bits [31:1] are zero. 7.3.2 DIRECTLY ACCESSING A BIT-BAND REGION You can directly access the bit-band region with normal reads and writes, and writes to that region. |
|
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 |