Search found 538 matches

Return

by LeighM
Tue Aug 28, 2012 2:35 pm
Jump to forum
Jump to topic

Re: MIAC Expansion modules.

Hello Thushara, I just thought I would update you about the changes we have made to the MIAC System in view of feedback we have received such as yours. The MIAC System and Expansion Modules are now much more easily customised so as to be compatible with an existing CAN Bus system. This applies to al...
by LeighM
Mon Oct 15, 2012 10:21 am
Jump to forum
Jump to topic

Re: MIAC based temperature controller

Thanks for that Enamul. That sounds like a very interesting project! Dylan, as your project develops let us know where you need any specific help. Also, do you have a time plan for the project? As we expect the GSM modules to be available in January, so we could provide any help prior to then ready ...
by LeighM
Tue Oct 16, 2012 3:23 pm
Jump to forum
Jump to topic

Re: MIAC based temperature controller

Thanks for your on-going comments and suggestions Enamul. Just to confirm that the Advanced Expansion Module does have a battery (Coin Cell) backed Real Time Clock, and also with the two sensor sockets this will be the easiest way to interface to the Temperature Probe, and any other Vernier devices....
by LeighM
Fri Oct 19, 2012 3:04 pm
Jump to forum
Jump to topic

Re: Initializing problem

Your Timer Interrupt only needs to be enabled once, so best to move it outside your “While 1” loop.
Also you might need to check the properties, as the Prescaler is currently set to 1:1 so has a very high interrupt frequency.
by LeighM
Mon Oct 22, 2012 10:23 am
Jump to forum
Jump to topic

Re: Zigbee Module - Customise Code

Hi Sefi,

Sorry, there is a bug in the component code, the 'char' should be 'MX_UINT8'


MX_UINT8 Receive_Char(MX_UINT8 nTimeout)
{
/*Macro_Receive_Char_Start*/

return %a_UART_Receive(nTimeout);

/*Macro_Receive_Char_End*/
}
by LeighM
Thu Nov 15, 2012 10:12 am
Jump to forum
Jump to topic

Re: Sending a break signal using 16F877 usart

It looks as though you need to determine what exactly the receiving equipment is expecting. What Enamul quoted is correct in terms of what most equipment understands to be a break, that is the sending of a continuous spacing value exceeding the normal data plus syncing bits. Your quote mentions two ...
by LeighM
Thu Nov 15, 2012 3:02 pm
Jump to forum
Jump to topic

Re: Sending a break signal using 16F877 usart

could you try something like the attached, sorry I have not had chance to test it
by LeighM
Wed Nov 21, 2012 12:06 pm
Jump to forum
Jump to topic

Re: TIMER produces the interrupt with no counting

In your Main macro, try adding the following C code, just before the call to “Enable TMR2”

IFS0bits.T2IF = 0;
by LeighM
Wed Nov 21, 2012 1:37 pm
Jump to forum
Jump to topic

Re: If Decision Fails Flowcode 5

Hi I am not totally sure what you are trying to do. If you were to somehow encode 8 selections onto PORTA bits 7,6,5 Then your formula would be SW = (($PORTA AND 224) >> 5) + 1 Where SW now has a value 1 to 8 If you are using all of PORTA for 8 separate switches, then you could have a Switch icon to...
by LeighM
Fri Nov 23, 2012 2:47 pm
Jump to forum
Jump to topic

Re: 5 X 5 matrix keypad

Hi
I have attached an idea as a flowcode macro, not tested it, but it should give you a starting point.
Leigh
by LeighM
Wed Dec 05, 2012 10:49 am
Jump to forum
Jump to topic

Re: MIAC based temperature controller

Thanks for all your input on this Enamul. I would just like to repeat what you said earlier about taking extreme care with Mains connections. Ensure the wiring up is done with the power removed and that it is suitably insulated against accidental contact. Also note that if you switch the Neutral sid...
by LeighM
Wed Dec 05, 2012 3:57 pm
Jump to forum
Jump to topic

Re: Webserver and HTTP to RS232

Ben has just brought to my attention that in fact our WiFi component already has the functionality you are looking for, via the Read_Swap_Variable macro.

So you would also just need to create an HTML web page that has a request url, see the attached example
by LeighM
Wed Dec 19, 2012 10:30 am
Jump to forum
Jump to topic

Re: Baud rate change inside the FC programm

You can test the baud rate changing by adding a C code icon.

To change to 9600 baud:
spbrg = (((MX_CLK_SPEED / 9600) - 16) / 16);

To change back to 100Kbaud:
spbrg = (((MX_CLK_SPEED / 100000) - 16) / 16);
by LeighM
Mon Dec 10, 2012 10:16 am
Jump to forum
Jump to topic

Re: MIAC Expansion modules.

Hi Thushara Just to confirm what Martin said, When set as inputs, the Terminals are very high impedance so will nominally float to some mid voltage value. That will give un-predictable results as a binary input. You will need to arrange your external circuitry to set the required voltage. So if your...
by LeighM
Fri Dec 21, 2012 1:46 pm
Jump to forum
Jump to topic

Re: webserver

Attached is a customised WebServer that has similar functionality copied from the WLAN component. Make a backup of the previous version for safety and copy the new FC5_PIC_WebServer_2.c into the components directory, e.g. C:\Program Files (x86)\Flowcode\v5\Components See that attached Flowcode examp...
by LeighM
Mon Jan 07, 2013 10:48 am
Jump to forum
Jump to topic

Re: CAN2 communication Miac module

Sorry, looks like we have a bug in our CAN2 code, please use the attached updated file FC5_PIC_CAN2.c
Replace the existing version in your component code directory (e.g. C:\Program Files (x86)\Flowcode\v5\Components)
Regards,
Leigh
by LeighM
Thu Mar 07, 2013 9:37 am
Jump to forum
Jump to topic

Re: RS485 protocol

Yes you are right, looks like you need %PVAL:0000<CR> to %PVAL:0CE1<CR> (without the 0x)
or as string "%PVAL:0CE1\r"

Just configure the component for 8 data bits, the stop bit will be appended automatically.
by LeighM
Wed Mar 27, 2013 10:09 am
Jump to forum
Jump to topic

Re: EB023v1 Webserver displaying variables

Hi
The limitation you are encountering in due to the internal Flowcode substitution array being a byte array (to conserve memory).
So not anything you are doing wrong.
Well done with your project.
Leigh
by LeighM
Thu Mar 28, 2013 1:35 pm
Jump to forum
Jump to topic

Re: Using both RS232 and CAN on ECIO40P

Hi I would suggest using the hardware UART (on the defined pins) and then use some other pins for the SPI CAN interface, using a software SPI. That is, use the RS232 Flowcode component set to UART1. Then get the CAN component to connect elsewhere by customising the code defines section. Example here...
by LeighM
Wed Apr 24, 2013 8:45 am
Jump to forum
Jump to topic

Re: RS232 Soft Mode

Hi
Thanks for uploading your code.
Yep. You have found a bug, thanks! :O)
Please replace PIC_CAL_UART.c with the fixed one I have attached.
in your installation directory …
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c

Regards,
Leigh
by LeighM
Fri May 31, 2013 1:38 pm
Jump to forum
Jump to topic

Re: SPI Legacy - Clock Idle State wont Change

C use example attached

Regards,
Leigh
by LeighM
Fri May 31, 2013 9:13 am
Jump to forum
Jump to topic

Re: 7 segment brightness.

Hi You probably need to check the forward voltage of the LED displays that you are having problems with. Most likely it is higher than for the Red one. If you are driving the displays directly from the PIC then you need to have a look at the data sheet to check the likely voltage drop for the pins t...
by LeighM
Tue Jul 16, 2013 8:32 am
Jump to forum
Jump to topic

You are not authorised to read this forum.
by LeighM
Tue Jul 16, 2013 10:43 am
Jump to forum
Jump to topic

You are not authorised to read this forum.