Page 1 of 1

How to implement a second RS232 communication ?

Posted: Fri May 23, 2008 9:05 am
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 !

Re: How to implement a second RS232 communication ?

Posted: Fri May 23, 2008 9:53 am
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.

Re: How to implement a second RS232 communication ?

Posted: Fri May 23, 2008 1:16 pm
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 ?

Re: How to implement a second RS232 communication ?

Posted: Fri May 23, 2008 1:57 pm
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.