| Electronic Components Datasheet Search |
|
AN3975 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3975 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 26 page ![]() AN3975 24/26 Doc ID 022170 Rev 1 Appendix A In order to enable or disable close loop test function PLM_To_RS485UART_Send_Data in the function.c file in the PMeter_RS485_to_PRIME project must be updated accordingly. Function that avoids close loop test Void PLM_To_RS485UART_Send_Data(unsigned char* data_buffer, unsigned short Nb_bytes) { GPIO_SetBits(nRE_port, nRE_pin); //Receiver input disable GPIO_SetBits(DE_port, DE_pin); //Driver output enable ComWrt_direct (0, data_buffer, Nb_bytes, RS485); while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); GPIO_ResetBits(DE_port, DE_pin); //Driver output disable GPIO_ResetBits(nRE_port, nRE_pin); //Receiver input enable } Function that enables close loop test Use only for this test, do not use when communicating with the RS485 device. Void PLM_To_RS485UART_Send_Data(unsigned char* data_buffer, unsigned short Nb_bytes) { GPIO_ResetBits(nRE_port, nRE_pin); //Receiver input enable GPIO_SetBits(DE_port, DE_pin); //Driver output enable ComWrt_direct (0, data_buffer, Nb_bytes, RS485); while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); |
|
|
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 |