Search found 14581 matches

by Benj
Fri Jun 22, 2007 4:53 pm
Forum: Flowcode V2 & V3
Topic: ADC from PIC18F442
Replies: 2
Views: 3180

Hello A #if statement is a preprocessor statement. The #if statement you are referring to is designed to only sample the correct channel of the ADC. The pic does not see all of the other if statements. It simply runs the correct one for the channel chosen. #if (0 == 0) //This code will be programmed...
by Benj
Thu Jun 21, 2007 3:08 pm
Forum: Flowcode V2 & V3
Topic: Flowcode v3.2 is available
Replies: 2
Views: 2942

Flowcode v3.2 is available

Flowcode v3.2 is now available. It fixes a number of bugs and adds a few minor features - the main ones being fixes to interrupt routines, Additional components including I2C and PWM, Improved help files and FCD files. Full details can be seen in the "history" document. We recommend that all users u...
by Benj
Thu Jun 21, 2007 11:15 am
Forum: Flowcode V2 & V3
Topic: Code for a standard PIC setup menu
Replies: 8
Views: 9484

OK thats huge.

Have a go at converting it yourself.
Im here if you get stuck.

Remember to use hardware and software macros where applicable as it will save you a lot of time.
by Benj
Thu Jun 21, 2007 9:17 am
Forum: Flowcode V2 & V3
Topic: Code for a standard PIC setup menu
Replies: 8
Views: 9484

If you post the C code then it should be fairly easy to convert it into a flowchart.
by Benj
Wed Jun 20, 2007 4:56 pm
Forum: C and ASM Programming
Topic: CODE WARRIOR PROBLEM!
Replies: 1
Views: 3814

Sorry I have never used Code Warrior before. Maybe you could try contacting the makers of the software.
by Benj
Wed Jun 20, 2007 4:55 pm
Forum: General Programming
Topic: RC Clock Diagram
Replies: 1
Views: 3359

Hello Mark

Email me if you still need this schematic and I will send it to you.
by Benj
Wed Jun 20, 2007 4:55 pm
Forum: Flowcode V2 & V3
Topic: Code for a standard PIC setup menu
Replies: 8
Views: 9484

Hello

Sorry I cant really help with this project. You should be able to learn how to do all of the functions from pulling bits of sample code of the internet.

Remember Google is a programmers best resource.
by Benj
Wed Jun 20, 2007 4:50 pm
Forum: Flowcode V2 & V3
Topic: Bluetooth flowcode - baby monitor
Replies: 1
Views: 2551

Hello

I have sent you some Bluetooth example files which should show you how to pair devices and connect services.
by Benj
Wed Jun 20, 2007 4:48 pm
Forum: Flowcode V2 & V3
Topic: Alarm component
Replies: 1
Views: 2591

Hello

There is a help file for the alarm component available from here,

http://www.matrixmultimedia.com/software/Alarm.hlp

I have never seen an example file for this component but that doesn't mean that there isn't one. I will have a look and see if I can find one for you.
by Benj
Wed Jun 20, 2007 4:04 pm
Forum: Flowcode V2 & V3
Topic: Multiple Servo Axis and Timed INT flowcode block
Replies: 3
Views: 3648

Hello Ron As soon as the Timer interrupts it will begin counting again. Or in simpler terms the timer once started will run and run. This can be changed by writing values to the timer using a C code icon tmr0 = 0; //Resets the timer So in answer to your question. If the macro that handles the interr...
by Benj
Wed Jun 20, 2007 10:09 am
Forum: Flowcode V2 & V3
Topic: use of registers ?
Replies: 7
Views: 5330

The Timer0 is only an 8 bit counter. This means that its maximum value is 255. The counter is fairly high speed and a delay of 200ms is probably more then enough time for it to have rolled over from 255 to 0 quite a number of times. It would be a much more reliable method to use either the timer1 wh...
by Benj
Wed Jun 20, 2007 10:00 am
Forum: Flowcode V2 & V3
Topic: Multiple Servo Axis and Timed INT flowcode block
Replies: 3
Views: 3648

Hello Ron I think you are correct in saying the servos need a 20ms frequency. However this would make your quick and dirty code something like this. turn on output delay 1.9ms (go to +45) turn off output delay 18.1 ms repeat to hold The INT block in Flowcode works to enable or disable interrupts. If...
by Benj
Mon Jun 18, 2007 9:39 am
Forum: Flowcode V2 & V3
Topic: servo pwm input
Replies: 3
Views: 3753

Hello Yes the PIC can receive the PWM signal as long as its frequency is not too high. The easiest way to monitor it would be to start the tmr0 running tmr0 = 0; Then wait until the pulse goes high. while (porta & 0x01 == 1); Once it goes high you would collect the value in the tmr0 register FCV_MYV...
by Benj
Mon Jun 18, 2007 9:26 am
Forum: Flowcode V2 & V3
Topic: use of registers ?
Replies: 7
Views: 5330

Hello Jack

Thanks for posting your progress. Seems like you have it sorted now.
by Benj
Fri Jun 15, 2007 11:36 am
Forum: Flowcode V2 & V3
Topic: Flow code
Replies: 8
Views: 7410

Here are a few pointers to get you started. The hardware timer interrupt / TMR0 / TMR1 is a good way of measuring time. What you would need to do is. 1: wait for pin to go high 2: set the timer running 3: wait for pin to go low 4: wait for pin to go high 5: stop the timer running 6: collect the time...
by Benj
Fri Jun 15, 2007 9:32 am
Forum: Flowcode V2 & V3
Topic: Flow code
Replies: 8
Views: 7410

Hello I cannot help with developing applications. But I can help with errors or unexpected results. In simple terms I cannot write the program but I will help when you get stuck. An integer value can only go between 0 and 65536 or -32767 and 32768. A 32 bit float value can have 4294967296 different ...
by Benj
Fri Jun 15, 2007 9:29 am
Forum: General Programming
Topic: Help On Project. Using the LDR on the DEV Board PIC16F88
Replies: 4
Views: 5337

Hello All you need is an ADC sampling routine to sample AN0 which is connected to the LDR. This routine is fairly common so you should be able to pick up an example in the language you are using fairly easily. Also the datasheet for the PICmicro will point you in the right direction when writing the...
by Benj
Tue Jun 12, 2007 10:56 am
Forum: Flowcode V2 & V3
Topic: delay_us error
Replies: 6
Views: 5266

The Mobile phone example updates now available from the Download section.

Alternativly you can visit this link.

http://www.matrixmultimedia.com/faq_ans ... b08bc2c83f
by Benj
Mon Jun 11, 2007 9:27 am
Forum: Flowcode V2 & V3
Topic: Flowcode v3.2
Replies: 9
Views: 7829

Hello Tibor

Currently there are only two PWM outpout options for Flowcode. This should increase in the future but is not likely to be for a little while. For the moment you could always emulate the third PWM by creating a timer interrupt that turns a pin on or off at a specific frequency.
by Benj
Mon Jun 11, 2007 9:18 am
Forum: Flowcode V2 & V3
Topic: Flow code
Replies: 8
Views: 7410

Hello

Flowcode is capable of handling 32 bit floating point numbers. Here is an example of how to use install the library into Flowcode and also how to use the 32 bit functions.

http://www.matrixmultimedia.com/support ... .php?t=505
by Benj
Thu Jun 07, 2007 9:12 am
Forum: General Programming
Topic: 16F886
Replies: 2
Views: 3918

Hello Ron

Yes that should about cover it.

You also should be able to set the configuration bits in Flowcode.

Also you should probably have a verification at the end of programming to make sure the code on the PICmicro is correct.
by Benj
Wed Jun 06, 2007 4:18 pm
Forum: General Programming
Topic: Safety switch relay thingy?
Replies: 5
Views: 6372

Glad to be of help.

Let us know how you get on with your project.
by Benj
Wed Jun 06, 2007 3:34 pm
Forum: General Programming
Topic: Safety switch relay thingy?
Replies: 5
Views: 6372

Here is a little sample project where someone is using a relay for the purpose you are describing. You need to scroll down to the title The Latching Relay Circuit. http://www.eleinmec.com/article.asp?24 This should help you to get started. If the power is lost the relay will become unlatched. To get...
by Benj
Wed Jun 06, 2007 10:15 am
Forum: Flowcode V2 & V3
Topic: RS232 help
Replies: 1
Views: 2811

Hello Wayne

There is a topic on the forum that should answer your questions.

http://www.matrixmultimedia.com/mmforum ... php?t=2661
by Benj
Wed Jun 06, 2007 10:14 am
Forum: General Programming
Topic: Safety switch relay thingy?
Replies: 5
Views: 6372

Hello You can use a normal relay with a PICmicro by using a NPN transistor to boost the current from the PICmicro I/O. The circuitry would be something similar to the following. 5v-------------Relay Coil --------------NPNcollector PICmicro I/O Pin ----1K Resistor---- NPNbase GND---------------------...