How to implement a second RS232 communication ?

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
WalkOver
Posts: 65
Joined: Fri Nov 23, 2007 11:24 pm
Contact:

How to implement a second RS232 communication ?

Post by WalkOver »

Hello 8)

Someone knows how to implement a second RS232 communication in flowcode as we do put on some Big PIC in C language ? Same question to use all PWM from a PIC and not just 2. I already asked this question but I don't know the language C and the boostC documentation is very poor about PWM.

Thank you !

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: How to implement a second RS232 communication ?

Post by Benj »

Hello

Regarding a second UART you can bit bang a serial signal port by referring to the examples on our Flowcode example page.

http://www.matrixmultimedia.com/Flowcode_Examples.php

As for the PWM you can create as many channels as you want by a bit of clever use of the timer interrupt.

If you do want to use the PWM hardware then referring to the current generated PWM code and the Microchip datasheet should help you to get this up and running.

WalkOver
Posts: 65
Joined: Fri Nov 23, 2007 11:24 pm
Contact:

Re: How to implement a second RS232 communication ?

Post by WalkOver »

Thanks Benj,

I will try this last suggestion.

Use the Timer interrupt for PWM consume more resources than using hardware functions of the PIC ?

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: How to implement a second RS232 communication ?

Post by Benj »

Hello

Yes using the timer interrupt will consume more resources then using the specific PWM hardware but is probably much easier to acheive in practise.

Post Reply