| Moteur de recherche de fiches techniques de composants électroniques |
|
AN2399 Fiches technique(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2399 Fiches technique(HTML) 13 Page - STMicroelectronics |
|
13 / 22 page ![]() AN2399 Overview of RFID reader using STR710 13/22 Finally, I2C peripheral configuration has to be set as follows: ● data width: 8-bit ● Ack bit: enabled ● Speed config: the user must configure it via I2C_frequency define in device_RFID.h file. void init_CRX14_I2C(void){ u32 f_RFID=I2C_frequency; /*---------------------------------------------------------------------------------- ---------------------------------------- Configure the SDA And the SCL pin of the I2C0 and I2C1 to alternate function Open Drain ------------------------------------------------------------------------------------ ---------------------------------------*/ GPIO_Config (GPIO1,I2C0_SCL,GPIO_AF_OD); GPIO_Config (GPIO1,I2C0_SDA,GPIO_AF_OD); /*---------------------------------------------------------------------------------- ---------------------------------------- Configure I2C0 module ------------------------------------------------------------------------------------ ---------------------------------------*/ I2C_Init (I2C0); I2C_FCLKConfig (I2C0); I2C_OnOffConfig (I2C0, ENABLE);//Enable the I2C0 I2C_SpeedConfig (I2C0, f_RFID);//Configure the I2C0 speed I2C_AddressConfig (I2C0,0xA2, I2C_Mode7); //Configure the I2C0 address (to be used specially when this cell has to be adressed) I2C_AcknowledgeConfig (I2C0, ENABLE); //set str7 to send ack when receive data } |
|
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |