Change RS232 connection on a dspic33

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Marcel
Flowcode V4 User
Posts: 23
Joined: Wed Aug 24, 2011 1:22 pm
Has thanked: 2 times

Change RS232 connection on a dspic33

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Change RS232 connection on a dspic33

Post 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.

Marcel
Flowcode V4 User
Posts: 23
Joined: Wed Aug 24, 2011 1:22 pm
Has thanked: 2 times

Re: Change RS232 connection on a dspic33

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Change RS232 connection on a dspic33

Post 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 197 times
Let me know how you get on.

Post Reply