| Electronic Components Datasheet Search |
|
DFR0627 Datasheet(PDF) 5 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0627 Datasheet(HTML) 5 Page - DFROBOT |
|
5 / 16 page ![]() 2023/10/12 10:51 Gravity: IIC to dual UART module Wiki - DFRobot https://wiki.dfrobot.com/Gravity: IIC to Dual UART Module SKU: DFR0627 5/16 1 1 1 1 The 4th bit: fixed, 1. The 3rd bit: fixed, 0. The 2nd and 1st bits: C1/C0 represents the sub UART channel number, for example. 00 for UART1, 01 for UART2. The 0 bit: represents the operation object, 0 for register, 1 for FIFO. Construct Object When construct IIC to dual UART object, it is required to specify the sub UART(UART1 or UART2) and the value of IA2 and IA0. The constructor is shown below: DFRobot_IIC_Serial(TwoWire &wire = Wire, uint8_t subUartChannel = SUBUART_CHANNEL_1, uint8_t IA1 = 1, uint8_t IA0 = 1); For operating UART1, pass the parameter SUBUART_CHANNEL_1; for UART2, pass SUBUART_CHANNEL_2; If the status of the DIP switch on the module is A1(1),A2(0), then we should pass parameters 1 and 0 to the formal parameter IA1 and IA0. For example, turn the DIP switch A1 to 1, A0 to 0; Construct object, UART1; DFRobot_IIC_Serial iicSerial(Wire, SUBUART_CHANNEL_1, /*IA1=*/1, /*IA0=*/0);//consctruct object UART1 Construct object, UART2; DFRobot_IIC_Serial iicSerial(Wire, SUBUART_CHANNEL_2, /*IA1=*/1, /*IA0=*/0);//construct object UART2 Baud Rate Configuration |
|
|
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 |