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
Change RS232 connection on a dspic33
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Change RS232 connection on a dspic33
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.
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.
- 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
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.
Let me know how you get on.
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.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel