| поискавой системы для электроныых деталей |
|
EB632 датащи(PDF) 105 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
EB632 датащи(HTML) 105 Page - Freescale Semiconductor, Inc |
|
105 / 112 page ![]() Bootloader Program Functional Differences Between MSC8101 (Mask 2K42A) and MSC8103 (Mask 2K87M), Rev. 2 Freescale Semiconductor 105 ;This routine will create 2 Tx BD and one Rx BD That receive the data ;Before enter these routine the registers must be setted as follow: ; d9 : IMMR ; d4 : Rx Buffer Pointer base (SRAM base) ; d5 : The address of EEPORM to be read (Shifted 1 byte) ; d14: Tx buffer address ; left, e.g add=$4 -> d5 = $0400) ; d7 : The lenght for RX BD ; r6 : IMMR + $1_0000 ; r5 : Rx Buffer Pointer offset ;Corrupted registers: ; d1,d3,d6 ,r0,r1,r3 ;************************************************** retry move.w #$0017,r1 move.b r1,(r6+I2CER) ;Clear all previous events ;Prepare the 2 TX & 1 Rx BD's to read 2 bytes from add8ess at d5 move.l #TBASEVAL,d1 ; d1<-TBASE nop ;due to restriction 6.4.4.a.2 add d9,d1,d1; d1<-TX BD ptr move.l d1,r0 ; r0<-TX BD ptr ;************************************************** ;Prepare 2 Tx & 1 Rx BD ;************************************************** ; First Tx BD move.l #$84000003,d1;BD STATUS(R=1,I=1,L=0,S=1)|DATA Lenght = 3 move.l d1,(r0) move.l d14,(r0+$4) ;Tx buffer address ; Write TX Buffer DATA move.l d14,r3 ;r3 receive the Tx Buffer ptr move.l #AWSLAVEADDRESS,d6 extractu #$20,#0,d6,d6;remove the extend bits add d5,d6,d6 ;d5=SLAVE ADDRESS | ADDRESS WORD move.l d6,(r3) ; 2nd TX BD move.l #$bc000001,d3;BD STATUS(R=1,I=1,w=1,L=1,S=1)|Lenght = 1 add d7,d3,d3;set Lenght = d7 + 1 move.l d3,(r0+$8) move.l d14,d6 add #$4,d6 ; d6<-2nd TX Buffer Pointer move.l d6,(r0+$c) ; Write TX Buffer DATA for second Buffer move.l #ARSLAVEADDRESS,d6 extractu #$20,#0,d6,d6;remove the extend bits move.l d6,(r3+4) ;Prepare the Rx BD move.l #RBASEVAL,d1 ; d1<- RBASE add d9,d1,d1; d1<- BD ptr nop ;due to restriction 6.4.4.a.2 move.l d1,r1 ; r1<- BD ptr nop ;due to restriction 6.4.4.a.2 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |