| Electronic Components Datasheet Search |
|
AN3995 Datasheet(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3995 Datasheet(HTML) 22 Page - STMicroelectronics |
|
22 / 49 page ![]() e200z4d initialization and example code AN3995 22/49 Doc ID 022384 Rev 2 Figure 15. Startup file: XBAR configuration code(o) o. XBAR configuration not fully showed in this picture. #/**************************************************************************/ #/* Configure XBAR */ #/**************************************************************************/ #/* Configure Master Priority Register 0 */ e_lis r4, MPR0VALUE@h #/* MPR0 Conf. High Value */ e_or2i r4, MPR0VALUE@l #/* MPR0 Conf. Low Value */ e_lis r5, MPR0ADDR@h #/* MPR0 Address High Value */ e_or2i r5, MPR0ADDR@l #/* MPR0 Address Low Value */ se_stw r4,0x0(r5) #/* Store Value */ #/* Configure Slave General Purpose Control Register 0 */ e_lis r4, SGPCR0VALUE@h #/* SGPCR0 High Value High Value */ e_or2i r4, SGPCR0VALUE@l #/* SGPCR0 Low Value */ se_stw r4,0x10(r5) #/* Store Value (SGPCR0 address is 0x10 bytes after MPR0)*/ #/* Configure Master Priority Register 1 */ e_lis r4, MPR1VALUE@h #/* MPR1 Conf. High Value */ e_or2i r4, MPR1VALUE@l #/* MPR1 Conf. Low Value */ e_lis r5, MPR1ADDR@h #/* MPR1 Address High Value */ e_or2i r5, MPR1ADDR@l #/* MPR1 Address Low Value */ se_stw r4,0x0(r5) #/* Store Value */ #/* Configure Slave General Purpose Control Register 1 */ e_lis r4, SGPCR1VALUE@h #/* SGPCR1 High Value High Value */ e_or2i r4, SGPCR1VALUE@l #/* SGPCR1 Low Value */ se_stw r4,0x10(r5) #/* Store Value (SGPCR1 address is 0x10 bytes after MPR1)*/ #/* Configure Master Priority Register 2 */ e_lis r4, MPR2VALUE@h #/* MPR2 Conf. High Value */ e_or2i r4, MPR2VALUE@l #/* MPR2 Conf. Low Value */ e_lis r5, MPR2ADDR@h #/* MPR2 Address High Value */ e_or2i r5, MPR2ADDR@l #/* MPR2 Address Low Value */ se_stw r4,0x0(r5) #/* Store Value */ #/* Configure Slave General Purpose Control Register 2 */ e_lis r4, SGPCR2VALUE@h #/* SGPCR2 High Value High Value */ e_or2i r4, SGPCR2VALUE@l #/* SGPCR2 Low Value */ se_stw r4,0x10(r5) #/* Store Value (SGPCR2 address is 0x10 bytes after MPR1)*/ |
|
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 |