hi everyone. my development kit has a microcontroller(18f4525) and a gsm module is attached to it. i have also incorporated an external UART and connect it directly to the PC. my question is if i use the interrupt #int_rda, is there a way of knowing where the available receive data in buffer 0 is coming from? is it coming from the GSM module or is it coming from the PC.. please help..
Matro Guest
Posted: Tue Apr 08, 2008 4:21 am
#int_RDA can only be triggered by the PIC built-in hardware USART module, but in no way by an external module.
Matro.
Ttelmah Guest
Posted: Tue Apr 08, 2008 4:42 am
If you are using an external UART chip, this will normally have an interrupt _output_. This will need to be connected to another interrupt input on the chip (INT_EXT normally). You will only receive an RDA interrupt for the internal UART, but with this extra connection, you will receive an INT_EXT, for the external UART.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum