Search found 429 matches

by echase
Fri Oct 19, 2012 5:42 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12566

Re: RS485 protocol

Thank you. The protocol is 2 way. If I decide to use both directions, rather than just send, can Flowcode handle this? E.g. Send the command Amplifier processes it and sets registers to say it has responded Read the registers back via RS485 to check it has been received and acted on. Turn LEDs on to...
by echase
Fri Oct 19, 2012 1:58 pm
Forum: Flowcode V5
Topic: RS485 protocol
Replies: 17
Views: 12566

RS485 protocol

I am thinking of building a wired remote control device for a PA amplifier. The commands to set volume, etc. on its RS485 interface are published as below. How easy is it in Flowcode with its RS485 component to use this data to write the code for a PIC? I am not familiar with serial protocol so need...
by echase
Mon Oct 01, 2012 1:56 pm
Forum: Flowcode V4
Topic: Tell us about your projects...
Replies: 29
Views: 61280

Re: Students projets at INSA LYON

benp wrote: Segway like vehicle monitoring on a wifi tablet.
Here is another Segway like project. No done by me and not using Flowcode as far as I know, but you could take their published C Code, put it into Flowcode and modify it. It uses a DSP PIC. http://www.scribd.com/doc/76661790/10/Microcontroller
by echase
Mon Sep 10, 2012 5:56 pm
Forum: Flowcode V5
Topic: Type of PC to use with Flowcode
Replies: 6
Views: 3585

Re: Type of PC to use with Flowcode

Forgot to mention, will Windows 8 be a problem?
by echase
Mon Sep 10, 2012 3:41 pm
Forum: Flowcode V5
Topic: Type of PC to use with Flowcode
Replies: 6
Views: 3585

Type of PC to use with Flowcode

My laptop is dying fast and needs replacing. It occurs to me that I could get a tablet or a netbook instead of current normal laptop. Are there any restrictions to running Flowcode on these? Presumably has to be MS Windows. The small screen could be a problem as I struggle even on my current 14” scr...
by echase
Tue Sep 04, 2012 12:43 pm
Forum: Flowcode V5
Topic: LCD speed
Replies: 4
Views: 4213

Re: LCD speed

1) Yes each character is around 60us and has its own delay while the enable line is being toggled. 4) This is basically a read / modify / write bug workaround. Basically the port register is being updated so fast that the next read comes in wrong causing the modify and write to be wrong leading to ...
by echase
Mon Sep 03, 2012 11:42 am
Forum: Flowcode V5
Topic: LCD speed
Replies: 4
Views: 4213

Re: LCD speed

1) Having successfully reduced the A/D time it now gives me nearly 90us between samples to write to the LCD. Based on my limited understanding of C Code the basic LCD write command in the C listing is: FCD_LCDDisplay0_RawSend(MX_UINT8 in, MX_UINT8 mask) This has about 25 lines and five10us delays (i...
by echase
Fri Aug 31, 2012 12:55 pm
Forum: Flowcode V5
Topic: The star
Replies: 2
Views: 2590

The star

What is the star for that appears next to a v5 Flowcode component/icon when it is first placed or copied? Is it a warning that it has not been edited to complete all the details? Also I think there may be more than one colour of star. Significance? I expect is says somewhere in the help files but I ...
by echase
Thu Aug 30, 2012 10:48 pm
Forum: Flowcode V5
Topic: A/D speed
Replies: 4
Views: 3147

Re: A/D speed

I tried it quickly and it did return a value for the voltage. It was not the correct one but I think though that is a bug in my software . It was my bug. Now all OK. Changing from Flowcode v3 and a 20Mhz clock speed to 64Mhz in v5 and its additional options of ADC clock speed and the simplified RAW...
by echase
Thu Aug 30, 2012 10:27 am
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Re: Best way to do nested IFs

Thank you for all the suggestions and offers of help. In the end I concluded that there was little difference in the C Code/ASM between nested IFs and a SWITCH statement but the SWITCH was much quicker to write in Flowcode so is really neat and thanks for suggesting that. Both do take variable times...
by echase
Wed Aug 29, 2012 11:03 pm
Forum: Flowcode V5
Topic: A/D speed
Replies: 4
Views: 3147

Re: A/D speed

Thank you, that looks promising. I tried it quickly and it did return a value for the voltage. It was not the correct one but I think though that is a bug in my software and not a fault with your suggested change. In the PIC_CAL_ADC file for my type 19 PIC it says:- MX_UINT16 FC_CAL_Sample_ADC (MX_U...
by echase
Wed Aug 29, 2012 1:46 pm
Forum: Flowcode V5
Topic: Clock will not start
Replies: 46
Views: 25072

Re: Clock will not start

I am trying to get something into the FCDs to fix this issue so the fix is coming. However this is a fairly huge amount of work to get it right and there is a lot on here at the moment so the official fix will probably not be for a while. Did you ever get this fixed? What release is it in? I am OK ...
by echase
Wed Aug 29, 2012 1:39 pm
Forum: Flowcode V5
Topic: A/D speed
Replies: 4
Views: 3147

A/D speed

As previously reported here http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=5&t=8622 and http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=46&t=10725&p=38967#p38967 I had been struggling to get an interrupt triggered A/D on a PIC to speed up. Was partly solved with your help, v5 and ...
by echase
Fri Aug 03, 2012 5:07 pm
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Re: Best way to do nested IFs

I think the SWITCH statement basically creates a set of nested IFs in assembly code. If you wanted efficiency of code, the switch is probably as good as you're going to get in C. If you want it better, then you'll need to resort to assembly. Thanks, I feared that was the answer. But assembly is wel...
by echase
Fri Aug 03, 2012 2:43 pm
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Re: Best way to do nested IFs

Thank you for all the good ideas. When I look at the ASM files from all your helpful examples each Switch decision is listed as something like: MOVLW 0x28 CPFSEQ gbl_FCV_COUNT_SWITCH BRA label39 BRA label48 I don’t know ASM well but I interpret this as: Read the index number we are now on Compare it...
by echase
Fri Aug 03, 2012 12:04 am
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Re: Best way to do nested IFs

hi Does the attached flowchart help Flowcode1.fcf Regards Dazz Thank you, something like that Switch Count may well work. Never used that function before. What happens though if the count exceeds the max number that it allows which is 10? I see you are reseting it to zero at count =10. I want it to...
by echase
Thu Aug 02, 2012 5:48 pm
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Re: Best way to do nested IFs

Hello, Not sure i understand entirely what you want to do, ive just given it a quick cursory read, but would a switch statement on count do? GO TO MACRO(count2) but not aware that macro names can include a variable in them. Im not sure what you mean by this but you can pass parameters to a macro Wh...
by echase
Thu Aug 02, 2012 2:16 pm
Forum: Flowcode V5
Topic: Best way to do nested IFs
Replies: 11
Views: 6748

Best way to do nested IFs

I have a routine that goes like: Main Loop; Do some simple things (takes about 4msec) Wait about 6 msec till 10msec gone by, using TMR0 interrupt to time it Repeat 100 times (One sec has now gone by) Go to Pause Macro Pause Macro; Pause TMR0 Do some serious things for 50 msec, such as write to LCD a...
by echase
Sun Jul 29, 2012 11:07 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

Thank you for all the ideas but I think this all too difficult for me even if a smaller PIC is used. Unless someone comes up with a cheap ready build RTC PCB with all the CAN/I2C software I will have to use Plan B, which is to just battery back the MIAC and use Ben’s software RTC. I can build into B...
by echase
Fri Jul 27, 2012 5:32 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

A diagram would be useful. A DS1305 RTC has an SPI interface as does the MCP 2515 CAN controller. So could one miss out the PIC and send the data straight through the SPI and CAN interfaces via the MCP 2551 Can transceiver with no code needed? Or do you need the PIC and code to tell the MCP 2515 wha...
by echase
Fri Jul 27, 2012 3:33 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

If you need code for the RTC and CAN controller chip end and MIAC end, please let me know...as I am currently working on that. Enamul Thanks, that code could be very useful as I know nothing about CAN. Where does your code actually sit? Is it within the MIAC or programmed into these exterior chips?...
by echase
Fri Jul 27, 2012 1:55 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

Very disappointed at the pricing structure for the add on modules I am afraid. There is no way my project can afford to pay 90% of a MIAC cost to add the Advanced Expansion Module, whose only purpose in my case would be for the real time clock. So I am going to have to think of a different way to do...
by echase
Fri Jun 29, 2012 11:51 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

If your setting FC up for advanced expansion module and that's the only thing you want CAN for, then you need to remove the CAN component. You are right, all the half dozen references to CAN interface need to be deleted and the component. No idea what adverse impact it will have on the running of B...
by echase
Thu Jun 28, 2012 11:56 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

If that's the issue, to enable it to compile just right click CAN component on control panel and select Custom code. Select top row (Defines) then click Edit Code. In the New window click Revert to Default. Select OK when it asks about reverting to Default. The standard underfloor programme gives o...
by echase
Sat Jun 23, 2012 10:00 pm
Forum: MIAC
Topic: MIAC as cental heating programmer
Replies: 41
Views: 36432

Re: MIAC as cental heating programmer

3) Please can you explain the purpose of the full stop ............ in the following syntax from Ben’s underfloor programme? Full stop is automatically generated if your using local variables. Local variables save precious memory since space taking variables are destroyed one the macro is exited. 5...