Page 1 of 1

Change RS232 connection on a dspic33

Posted: Tue Apr 08, 2014 3:43 pm
by Marcel
Hello Ben,

How can I connect the Tx from the RS232 to another port on a dspic33. The Tx is now connected to portB.6 and I want to connect it to portB.9
I am using V6.

Thanks, Marcel

Re: Change RS232 connection on a dspic33

Posted: Wed Apr 09, 2014 12:39 pm
by Benj
Hello Marcel,

What dsPIC33 device are you using. Some of these devices have a feature called remappable peripherals and has pins labelled RP on the chip diagram in the datasheet. If the device has this then you can change the pins that the UART, PWM, SPI peripherals are connected to.

I would recommend using the latest release of Flowcode 6.0.7 and if the device supports it then you should get a property appear when you select the RS232 component on the panel and select a hardware channel allowing you to remap the TX and RX pins.

Software channels can always be set to any I/O pin but there are problems with using software UARTs (e.g. interrupts or constant data) so I would advise a hardware one if possible.

Re: Change RS232 connection on a dspic33

Posted: Thu Apr 10, 2014 2:06 pm
by Marcel
Hello Ben,

I am using 33FJ32MC204 and it has remappable peripherals. I am using Flowcode 6.0.7
It is not possible to remap the TX and RX pins in hardware channel.
When I try another dsPIC33 I can remap the TX and RX pins.

Re: Change RS232 connection on a dspic33

Posted: Thu Apr 10, 2014 2:40 pm
by Benj
Hi Marcel,

Please copy the attached file into your "C:\Program Files (x86)\Flowcode 6\FCD\PIC16" directory and restart Flowcode and the re-mappable pin selection properties should then appear correctly.
33FJ32MC204.fcdx
(27.38 KiB) Downloaded 207 times
Let me know how you get on.