Hello
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 !
How to implement a second RS232 communication ?
- 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 ?
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.
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.
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: How to implement a second RS232 communication ?
Thanks Benj,
I will try this last suggestion.
Use the Timer interrupt for PWM consume more resources than using hardware functions of the PIC ?
I will try this last suggestion.
Use the Timer interrupt for PWM consume more resources than using hardware functions of the PIC ?
- 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 ?
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.
Yes using the timer interrupt will consume more resources then using the specific PWM hardware but is probably much easier to acheive in practise.
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