2010-05-03 06:34 AM
2011-05-17 01:00 AM
do all uarts have same hw interface? i notice you have a 422 enable command. is it the same for all? we also use 3uarts, but two of them are half duplex rs485 need disable the driver to be able to receive data.
2011-05-17 01:00 AM
Can you please send me your configuration code. I have checked all the datasheets and application notes but no difference has been give for any of the UARTS.
2011-05-17 01:00 AM
Yes all have the same hardware. They use the same Drivers and the rx is through a 4 channel opto coupler, one channel for each UART.
The waveform when checked on oscilloscope was the same for all MCU rx pins.
2011-05-17 01:00 AM
yes i believe there is no difference. sorry our code will only confuse you since we dont use str9 standard library, all have been customized with special headers and data structures. also my company will not let me. but i can tell you our settings for specific registers if you want to know what we used.
i also notice now, so far we only used uart2 for TX and not yet for RX, although it is already programmed to do so. but i am sure it will work. we had previously many problems with receive interrupts when using simultaneously UART0/1/2, and we had to change our IRQHandler. you may want to see AN2593.2011-05-17 01:00 AM
By using simultaneously UART 0/1/2 - does this mean, when all had the rx interrupt enabled?
I have all the interrupts enabled at all times and am using the standard 91x_it.c file to access IRQ.
2011-05-17 01:00 AM
that source file has been updated 01/19/2009 include DAISY_VIC/IENABLE/IDISABLE macros. are you using latest one? however, our problem may be specific to our silicon revision. you can check str application notes for more information.