Search found 14168 matches

by Benj
Mon Feb 25, 2008 10:16 am
Forum: Flowcode V2 & V3
Topic: 4x4 LED Matrix
Replies: 1
Views: 1167

Re: 4x4 LED Matrix

Hello

This example project may help.

http://www.larwe.com/zws/products/picxie2/index.html
by Benj
Mon Feb 25, 2008 10:15 am
Forum: Flowcode V2 & V3
Topic: quadrature encoders pic18f2331
Replies: 18
Views: 9757

Re: quadrature encoders pic18f2331

Hello

If you know your way around C then you can use a C code icon to control the quad encoder. There is a manual on the BoostC compiler available from the Flowcode V3/BoostC directory. The PICmicro device datasheet should have everything you need to get the encoder up and running.
by Benj
Mon Feb 25, 2008 10:13 am
Forum: C and ASM Programming
Topic: pic 18f1320
Replies: 8
Views: 5841

Re: pic 18f1320

Hello

It could be the capitalisation that it does not like. Try using all lower case or all upper case for your register names.
by Benj
Mon Feb 25, 2008 10:12 am
Forum: Flowcode V2 & V3
Topic: Compiling Error
Replies: 1
Views: 1296

Re: Compiling Error

Hello Alain

The answer to your problem can be found here.

http://www.matrixmultimedia.com/support ... .php?t=519
by Benj
Mon Feb 25, 2008 10:11 am
Forum: Flowcode V2 & V3
Topic: Flowcode and ICD2
Replies: 3
Views: 2213

Re: Flowcode and ICD2

Hello

Using the ICD2 you must program via MPLAB or change the programmer settings. I think that if you search this forum then you should find some ways to make it work correctly.
by Benj
Mon Feb 25, 2008 10:09 am
Forum: Flowcode V2 & V3
Topic: FLOWCODE V2 have EEPROM COMPONENT?
Replies: 5
Views: 2863

Re: FLOWCODE V2 have EEPROM COMPONENT?

Hello Basically the EEPROM is fairly straightforward. First add the EEPROM into your program and then add a macro icon to your program. Using the macro icon properties select the EEPROM component and then select write. Use the parameters 0, 50 This will store the value 50 into location 0 of the EEPR...
by Benj
Mon Feb 25, 2008 10:05 am
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 45256

Re: pwm examples needed

Hello In the PWM component properties you can select the period frequency. this controls how often the PWM runs through its cycle. Also in the properties is a count value. This is the maximum value that can be used for the PWM count. Eg if you use a count of 2 then using a parameter of 0 will equal ...
by Benj
Mon Feb 25, 2008 10:00 am
Forum: Flowcode V2 & V3
Topic: Delay and interrupt in example
Replies: 1
Views: 1365

Re: Delay and interrupt in example

All examples are provided on a as is basis and will not be supported unless there is a recognised problem with Flowcode itself.
The 10ms delay should have no effect on the interrupt and second count.
by Benj
Mon Feb 25, 2008 9:50 am
Forum: Flowcode V2 & V3
Topic: Connecting RS-232
Replies: 9
Views: 3333

Re: Connecting RS-232

Hello

The expert config screen is available from the Chip -> Configure menu of flowcode.

Make sure that your clock speed is correct in Flowcode and that you are using the XTAL or HS mode of operation.
by Benj
Mon Feb 25, 2008 9:47 am
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 14800

Re: NVM and DAC

Hello Ondra Try a parameter of 200 for the RS232 receive. This will allow the macro to wait longer for an incoming message before continuing. If the data is invalid then it will equal 255. You can therefore do a decision to check if the incoming data is less then 255. If it is then you know it is va...
by Benj
Fri Feb 22, 2008 2:05 pm
Forum: C and ASM Programming
Topic: pic16f8761 adc
Replies: 9
Views: 5455

Re: pic16f8761 adc

Code to Sample ADC channel 1 as a 8-bit byte. char SampleADC(void) { char old_tris, cnt; old_tris = trisa; //Store Old Tris trisa = trisa | 0x02; //Convert Pin to Input adcon1 = 0x04; //Set RA1 to analogue mode adcon0 = 0x89; //turn ADC on and set to sample channel AN1 //wait the acquisition time cn...
by Benj
Fri Feb 22, 2008 1:57 pm
Forum: C and ASM Programming
Topic: pic16f8761 adc
Replies: 9
Views: 5455

Re: pic16f8761 adc

Hello Paul To retreive the output from the Potentiometer you first need to setup a sample for Analogue channel 1. This is done by configuring the ADCON0 and ADCON1 registers. You will also have to configure the appropriate tris register to make the I/O pin an Input. Make sure that the result of the ...
by Benj
Fri Feb 22, 2008 11:40 am
Forum: Flowcode V2 & V3
Topic: FLOWCODE V2 have EEPROM COMPONENT?
Replies: 5
Views: 2863

Re: FLOWCODE V2 have EEPROM COMPONENT?

Hello Vincent

Yes Flowcode V2 has an EEPROM component. However not all PICmicro devices have the onboard EEPROM.

As far as I know you can upgrade Flowcode V2 to V3 for 60% of the cost. However you would have to talk to our sales department to confirm this.
by Benj
Fri Feb 22, 2008 11:23 am
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 14800

Re: NVM and DAC

Hello Ondra Basically all you have to do is use a RS232 hardware macro to receive a byte from the RS232 port. Then you would load this byte into the transmit variable and run the transmit macro as shown in the above example. Then repeat. You may have to play around with the delays in the transmit ma...
by Benj
Fri Feb 22, 2008 11:19 am
Forum: C and ASM Programming
Topic: pic 18f1320
Replies: 8
Views: 5841

Re: pic 18f1320

Hello Saran

It will make it easier for you if you learn how to deal with the error messages.

Please can you tell me what error messages you are receiving when trying to compile your code.
by Benj
Thu Feb 21, 2008 5:33 pm
Forum: E-blocks
Topic: grounding issue
Replies: 1
Views: 2090

Re: grounding issue

Hello Jeff

Can you not just link all of the ground signals together.
by Benj
Thu Feb 21, 2008 10:41 am
Forum: Flowcode V2 & V3
Topic: Problem after Upgrade to 3.2.2
Replies: 2
Views: 1761

Re: Problem after Upgrade to 3.2.2

Hello Dirk

Does this file exist.
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib/libc.pic16.lib

Also check your settings for the linker parameters in the "Compiler Options" box. The "Restore Defaults" may solve this issue.

Also restarting the PC sometimes solves wierd problems like this.
by Benj
Wed Feb 20, 2008 6:45 pm
Forum: Flowcode V2 & V3
Topic: Variant to usual components in PIC designs
Replies: 6
Views: 2558

Re: Variant to usual components in PIC designs

Hello I have added a quick guide to the custom components to the Flowcode Beta Components Page. This can be accessed via the Downloads page of our website. Please note that we will not provide support for the coding of the custom component. If you get stuck then post on our forums and someone should...
by Benj
Wed Feb 20, 2008 10:57 am
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 14800

Re: NVM and DAC

Hello Ondra If you wanted to send more then one character then you would have to create an array or string variable and then step through the variable in a loop pulling out a byte of data and sending it then moving to the next byte. The string functions can help with doing this. maskdata = data & 0x...
by Benj
Tue Feb 19, 2008 4:56 pm
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 14800

Re: NVM and DAC

I have created an example bitbanging RS232 program here.

http://www.matrixmultimedia.com/softwar ... BRS232.fcf
by Benj
Tue Feb 19, 2008 4:46 pm
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 14800

Re: NVM and DAC

Hello Ondra Here is an example of the bit-banging algorythm for sending RS232 data. Receiving RS232 data would be very similar but you would read the pin rather then send out a bit. create 2 byte variables = data and maskdata calc - load data into byte variable output - send start bit - 0 delay - de...
by Benj
Tue Feb 19, 2008 4:23 pm
Forum: Flowcode V2 & V3
Topic: Variant to usual components in PIC designs
Replies: 6
Views: 2558

Re: Variant to usual components in PIC designs

Hello We have spent a large amount of time developing a custom component wizard in the past for previous versions of Flowcode but we have found that it doesn't get used very much and in the end we have to provide extra support for customers struggling to use it correctly. This cuts into other featur...
by Benj
Tue Feb 19, 2008 12:10 pm
Forum: Flowcode V2 & V3
Topic: Flowcode v3.2.2 is available
Replies: 7
Views: 5620

Re: Flowcode v3.2.2 is available

Hello Ramtec

Uninstall your version of Flowcode using Windows Add/Remove programs.

Then install the latest full download.

At the end of the install process select the do not enter a key option to retain your previous details.

This will mean that you will not have to re-register Flowcode.
by Benj
Mon Feb 18, 2008 12:31 pm
Forum: Flowcode V2 & V3
Topic: How to compile "modified" code
Replies: 4
Views: 2000

Re: How to compile "modified" code

Hello Jim The thermometer is a legacy component and is just in there for compatibility. It uses the same code as the ADC component. The ADC sample acquasition time is probably going to be implemented by Flowcode V4 so it is currently a while off. If you are sampling a single channel then you can rem...
by Benj
Mon Feb 18, 2008 12:27 pm
Forum: Flowcode V2 & V3
Topic: flowcode variable and W register
Replies: 1
Views: 1463

Re: flowcode variable and W register

Hello Electrobot In C code you can call Flowcode variables by capitalizing the name and adding the prefix FCV_. For example Flowcode variable count becomes C variable FCV_COUNT. If you are using assembler to transfer the C variable then you will need a further _ prefix so the variable name becomes _...