Search found 3087 matches
- Wed Nov 08, 2006 3:00 pm
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
- Wed Nov 08, 2006 10:19 am
- Forum: General Programming
- Topic: NEW Pic Basic Compiler
- Replies: 3
- Views: 5258
I've done a search for this and I found this post of the Basic Micros Forum: Well, ain't that interestin'?! I just tried going to this site tonight (8/28/06) to see if anything was available in English... and got blocked by my Zone Alarm Pro! Seems this is a 'known spy site', so is unavailable to me...
- Tue Nov 07, 2006 11:24 am
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
Hi Alan, We're still working on the I2C component and we've not totally decided its capabilities - hopefully it will allow both Master and Slave modes of operation, but at the moment I do not want to commit... A better approach would be to use the UART (i.e. the RS232 component within Flowcode) if i...
- Tue Nov 07, 2006 10:22 am
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
Hi goldwingers, Your apology is graciously accepted, but I can see where you're coming from. Flowcode is a tool that is primarily used by novice programmers with little or no experience of C or assembly - both as a teaching tool for learning C and as a tool for creating programs in its own right. Bu...
- Mon Nov 06, 2006 3:05 pm
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
goldwingers: I feel your last comment is a bit unfair, at least in the context of this thread. The SPI component was only ever designed to work in a "master" mode, and this is the first ever request we have had to allow it to work in "slave" mode. I have tried my best to offer a workaround to this. ...
- Mon Nov 06, 2006 10:26 am
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
Hi alan, I have no experience with using SPI in slave mode, so hopefully others may be able to offer help on this. Also, it could be a hardware problem rather that a software one, which makes it doubly tricky to solve. One quick thing to try is to turn the SPI unit off before your C code using this:...
- Mon Nov 06, 2006 10:20 am
- Forum: Flowcode V2 & V3
- Topic: copying macros to create slightly different macros within a
- Replies: 1
- Views: 2765
I have 3 solutions for you: 1) Upgrade to Flowcode v3 - this lets you rename macros which will give you a relatively simple way to replicate the macro. 2) Use a "hex" editor to edit the file and change *all* occurances of the macro name (a decent hex editor should allow you to do a global search-and...
- Fri Nov 03, 2006 5:36 pm
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
You originally had "_IntRC_OSC" in the list, but I don't think this is right. Try "_INTRC_OSC_NOCLKOUT" or "_INTRC_OSC_NOCLK" instead.
As for slowing down the compile time, there is a fix:
http://www.matrixmultimedia.com/mmforum ... c.php?t=36
As for slowing down the compile time, there is a fix:
http://www.matrixmultimedia.com/mmforum ... c.php?t=36
- Fri Nov 03, 2006 5:13 pm
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
Hi Iain, Good news that you've got the compiler time down. I've also made some inroads into that today and the final release of Flowcode will have an additional compilation-time improvement over the current demo version (on my PC, I've cut the time from 8 secs to 4 secs for a simple program). Onto y...
- Fri Nov 03, 2006 12:22 pm
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
- Fri Nov 03, 2006 11:28 am
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
The C compiler has changed and it is slower than the old one - but it is a much more fully-featured compiler that allows us (and you) to do much more. The makers of this compiler have told me they are working to get the compilation time down. Having said that, the time you say seems extremely long. ...
- Fri Nov 03, 2006 11:15 am
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
For each chip in Flowcode there is an "FCD" file ("Flowcode Chip Definition", I think). Each one should contain the appropriate code to turn off the a/d or comparitor modules as standard. For example, the 12F675.FCD file has the following: Initialise="ansel = 0x20;\ncmcon = 0x07;\n" So basically, Fl...
- Fri Nov 03, 2006 10:49 am
- Forum: Flowcode V2 & V3
- Topic: compiling/programming errors to 12f675
- Replies: 12
- Views: 9236
Hello Iain, This used to work, but it doesn't seem to anymore (or at least I've forgotten how to do it). But luckily, there is a very simple workaround. In your program, put the appropriate config data into a C icon within your program - this can be anywhere in your program, but I suppose it makes m...
- Thu Nov 02, 2006 6:21 pm
- Forum: C and ASM Programming
- Topic: could not launch sourceboost
- Replies: 3
- Views: 6566
Ok, here's a fix that seems to work here... You need to set the "ExePath" registry entries in *both* of these locations to the location of your "ide.exe" file: HKEY_CURRENT_USER\Software\MatrixMM\C4PICs3 HKEY_LOCAL_MACHINE\Software\MatrixMM\C4PICs3 ExePath=c:\Program Files\SourceBoost\ide.exe Or cre...
- Thu Nov 02, 2006 4:59 pm
- Forum: E-blocks
- Topic: Help needed with RS232 and 877A.
- Replies: 2
- Views: 5564
Hello Dave, Create an array (e.g. DATA[24]) within Flowcode (how big it is depends on the size of your expected input). Also create a variable (e.g. IDX) to keep track of the index and another (e.g. IN) to read rs232 data. Here's a suggested procedure: 1) IDX = 0 2) IN = read_rs232() 3) if data exis...
- Thu Nov 02, 2006 9:15 am
- Forum: General Programming
- Topic: PIC Development Board V2.1
- Replies: 6
- Views: 13271
Hi Andy, What might be happening is that some process within Windows is taking over the LPT output once the programming of the chip has finished, and this is seting the LPT pins in such a way that prevents the PICmicro from running. Changing the operating system may make a difference, but I wouldn't...
- Wed Nov 01, 2006 4:00 pm
- Forum: Flowcode V2 & V3
- Topic: FlowCode v3
- Replies: 72
- Views: 62145
- Wed Nov 01, 2006 3:48 pm
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
To add to Ben's reply - it is probably just the "init" function you need to replicate within your C code icon. The init function currently contains code similar to the following: //GetSPI_InitCode //SPI COMPONENT DEFINES #define SPI_DAC_EN 7 #define SPI_FRM_EN 6 #define SPI_SSPM 0 #define SPI_CKP 0 ...
- Wed Nov 01, 2006 3:35 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode
- Replies: 7
- Views: 6717
I've asked some of my colleagues to update the info on the website, so that should happen sometime today. We're still not completely ready for a proper launch, but the demo that is on the website is essentially the product you will receive. This demo is cut-down, but we can supply a 30-day full tria...
- Wed Nov 01, 2006 2:56 pm
- Forum: General Programming
- Topic: PIC Development Board V2.1
- Replies: 6
- Views: 13271
Hi Andy, That seems an odd problem - has it always behaved like this, or is it a recent problem? Also, does it work ok if the parallel port cable is removed? And what about different chips (if you have access to any)? We've not manufactured the v2 dev board for a few years now and I'm now more famil...
- Mon Oct 30, 2006 12:34 pm
- Forum: Flowcode V2 & V3
- Topic: SPI COMUNICATION
- Replies: 24
- Views: 20730
Hello Alan, Thnaks for your kind words about v3 - it's been a long time coming, but we're happy with the results. I think the SPI component only works as a master, so it will probably not work as planned. However, you may be able to "fudge" it. The SPI_Init macro essentially sets the mode of the SPI...
- Mon Oct 30, 2006 12:26 pm
- Forum: Flowcode V2 & V3
- Topic: timing an input pulse
- Replies: 2
- Views: 3339
To get a shorter delay, you could use a 'C' icon with one of the following lines in it: delay_us(10); //Use this for Flowcode v2 delay_10us(1); //Use this for Flowcode v3 As for the second part, maintain a variable that is increased for each 10us delay. When this variable has reached 140, this shoul...
- Mon Oct 30, 2006 12:18 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode
- Replies: 7
- Views: 6717
Samdel: This sounds like a similar problem to Goldwingers, but I think I know immediately what is going on. If you change the "include" directory entry in the "compiler options" window to the old "8.3" style of naming it should fix the problem - i.e. use "C:\Progra~1\Microc~1\MPASMS~1". Alternativel...
- Mon Oct 30, 2006 12:14 pm
- Forum: Flowcode V2 & V3
- Topic: Flowcode
- Replies: 7
- Views: 6717
Goldwingers: V1 of Flowcode is quite long in the tooth now, so I can't offer an immediate fix - but I think it's something to do with the compiler settings within Flowcode. For example, if you installed a new version of MPLAB, you may need to "point" Flowcode to it. I also think Ben's idea of trying...
- Mon Oct 30, 2006 12:07 pm
- Forum: Flowcode V2 & V3
- Topic: Help with a stop watch.
- Replies: 2
- Views: 4628
I suggest looking at the frequencies of crystals available. Many years ago, we opted for a 3.2768MHz crystal because this would divide down into milliseconds. We currently use the 19.6608MHz crystal as standard because this is ok at dividing to milliseconds, but also divides down well to provide com...