Search found 548 matches

by Sean
Mon Jan 24, 2011 9:35 am
Forum: Flowcode V4
Topic: How to receive/send RS232 Byte not Char
Replies: 10
Views: 8298

Re: How to receive/send RS232 Byte not Char

We have checked for this problem, but can not reproduce the fault.

The 10ms delay should not be required.

If you can send us a copy of the program, we will try to locate the cause of the second character.
by Sean
Fri Jan 14, 2011 9:26 am
Forum: MIAC
Topic: A/D Acquisition
Replies: 11
Views: 13577

Re: A/D Acquisition

The MIAC ADC clock is set to the RC option. This completes a conversion in approximately 20uS. In addition there is an initial sampling delay of approximately 20us. If necessary, both of these settings can be changed using the Custom Code feature in Flowcode V4. The settings can be accessed in the I...
by Sean
Wed Jan 05, 2011 3:25 pm
Forum: Programming Tips & Tricks
Topic: Programmable RC-5 Remote Control
Replies: 14
Views: 19834

Re: Programmable RC-5 Remote Control

If the definitions were being edited in the code customization window, Flowcode will have registered the edit and be including this version of the defines code along with the new version provided by the custom c file. You could try deleting the contents of the custom code window. This should force F...
by Sean
Wed Jan 05, 2011 1:39 pm
Forum: Programming Tips & Tricks
Topic: Programmable RC-5 Remote Control
Replies: 14
Views: 19834

Re: Programmable RC-5 Remote Control

Compilation succeeds if intedg0 is changed to INTEDG0. I am not able to do any hardware testing at the moment. If it's any help, the original MIAC RC5 article program contains the same basic receiver program (written in Flowcode) and compiled for the 18F4455. Timing and timer configuration details m...
by Sean
Wed Jan 05, 2011 10:02 am
Forum: Programming Tips & Tricks
Topic: Programmable RC-5 Remote Control
Replies: 14
Views: 19834

Re: Programmable RC-5 Remote Control

The 877 OPTION_REG is used to swap signal edge causing an INT interrupt (so every edge is detected). This feature is available in the INTCON2 register of the 4455. The timer values used in the state machine macro will depend on the clock frequency and prescaler being used with TMR0. the timer should...
by Sean
Tue Jan 04, 2011 10:02 am
Forum: E-blocks
Topic: AVR ISP Mk2 not found by AVR Studio 4
Replies: 5
Views: 8518

Re: AVR ISP Mk2 not found by AVR Studio 4

The driver required by AVR Studio is part of the AVR Studio installation. We are not able to re-distribute these files, but downloads and updates are available from the Atmel website: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725 After uninstalling the Libusb driver and re-connecting...
by Sean
Mon Jan 03, 2011 8:24 pm
Forum: E-blocks
Topic: AVR ISP Mk2 not found by AVR Studio 4
Replies: 5
Views: 8518

Re: AVR ISP Mk2 not found by AVR Studio 4

Hello, This appears to be a driver problem. There are two common drivers for the AVRISPmkII wihich we have found to be incompatible. Your information indicates that the AVRISPmkII programmer is using the Libusb driver. This is supplied with many 3rd party AVR development tools that use the AVRDUDE p...
by Sean
Fri Dec 24, 2010 9:06 am
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 62449

Re: pwm examples needed

The servo component in V4 versions of Flowcode (AVR,PIC and ARM) is an improved version of the original example program. It automatically adjusts to accommodate a wide range of target devices and clock speeds.
by Sean
Mon Dec 13, 2010 10:37 pm
Forum: Flowcode V2 & V3
Topic: How do "C Code blocks" work ?
Replies: 2
Views: 4251

Re: How do "C Code blocks" work ?

See this thread for a description of the naming convention used when accessing Flowcode variables from C (no simulation)

http://www.matrixmultimedia.com/mmforum ... cv_#p12745
by Sean
Mon Dec 13, 2010 9:01 am
Forum: Programming Tips & Tricks
Topic: Multiple Servo Control
Replies: 12
Views: 16860

Re: Multiple Servo Control

The PIC16F690, and other similar devices, can not be used for this method of servo signal generation because they only have one CCP module connected to TMR1. There are probably alternative methods of generating servo signals using the timing facilities available in the 16F690 (especially if fewer th...
by Sean
Thu Dec 09, 2010 9:57 am
Forum: E-blocks
Topic: Need help with software
Replies: 3
Views: 3593

Re: Need help with software

Hello, WinAVR is not part of AVR Studio, so it must be installed separately. AVR Studio then needs to locate WinAVR so it can be used as an external tool. To make sure AVR Studio has located WinAVR, the path can be located in the following menu: Project -> Configuration options -> Project options ->...
by Sean
Wed Dec 08, 2010 4:55 pm
Forum: Flowcode V4
Topic: Starting with PIC18Fxxxx
Replies: 13
Views: 6171

Re: Starting with PIC18Fxxxx

I have downloaded your program and sent it to several devices. All worked when configured correctly. 1. One common problem, especially with string functions, is the Extended CPU Enable option available with some devices. This regularly causes problems when enabled and should be disabled unless the t...
by Sean
Sun Dec 05, 2010 6:36 pm
Forum: MIAC
Topic: CAN2 component in flowcode V4
Replies: 3
Views: 4803

Re: CAN2 component in flowcode V4

Here is a new version of the PIC_CAN2.c file used by Flowcode for PIC V4. The extended address commands now operate correctly with MIAC.
PIC_CAN2.c
(43.39 KiB) Downloaded 522 times
This file needs to be copied to the Components folder of the Flowcode V4 installation - overwritting the original file.
by Sean
Thu Dec 02, 2010 5:43 pm
Forum: MIAC
Topic: CAN2 component in flowcode V4
Replies: 3
Views: 4803

Re: CAN2 component in flowcode V4

We have been able to reproduce your results and are looking into the problem.
by Sean
Fri Nov 26, 2010 3:27 pm
Forum: Flowcode 4 Bugs
Topic: IRQ1 doesn't work on AT91SAM7S321?
Replies: 5
Views: 8410

Re: IRQ1 doesn't work on AT91SAM7S321?

Thanks for the feedback on the patch. I will make sure all the other device files are updated correctly.

Yes, I was at Elektor Live. I hope you enjoyed the show.

All our avatars have now been changed to photos (I hope they don't deter other forum users).
by Sean
Fri Nov 26, 2010 12:09 pm
Forum: Article Discussion
Topic: MX001 - USB mouse control
Replies: 3
Views: 14404

MX001 - USB mouse control

Article: http://www.matrixmultimedia.com/article.php?a=48

If you have any questions for the author or comments on the article, please post them below.
by Sean
Wed Nov 24, 2010 5:35 pm
Forum: C and ASM Programming
Topic: Problems with Eblocks, AVR, AVRATAVRISP MKII and AvrStudio
Replies: 6
Views: 8937

Re: Problems with Eblocks, AVR, AVRATAVRISP MKII and AvrStud

Hello, The error mesage you included indicates that Flowcode is unable to locate the batch that controls compilation. As a result, the compilation process is being terminated before Flowcode attempts to access the AVRISPmkII driver. The batch file in question (avra.bat) should have been installed in...
by Sean
Wed Nov 24, 2010 2:56 pm
Forum: C and ASM Programming
Topic: Problems with Eblocks, AVR, AVRATAVRISP MKII and AvrStudio
Replies: 6
Views: 8937

Re: Problems with Eblocks, AVR, AVRATAVRISP MKII and AvrStud

The file does seem to have been corrupted. Here is a fresh copy: avrispmkii driver.zip Flowcode V4 AVR does support the different programming tools better than V3 did (when the original download was posted). Installation of this driver might not be necessary if the current default drivers are workin...
by Sean
Tue Nov 23, 2010 9:00 am
Forum: General Programming
Topic: SPI latch
Replies: 3
Views: 3512

Re: SPI latch

The latch signal for the WM8716 should be a single pulse at the end of the 16-bit data transmission (2 x byte transmissions). The latch signal is normally high, and pulsed low for a short period to latch the data. Various SPI devices have different requirements for the 'strobe/latch/chip select' lin...
by Sean
Mon Nov 22, 2010 1:41 pm
Forum: Flowcode V4
Topic: Simulation OK realtime fail
Replies: 3
Views: 2601

Re: Simulation OK realtime fail

There is another point to consider when using the default BoostC compiler for the PIC devices. Floating-point calculations are handled by function calls, so the calculation will need to be re-written into the following form: Calculate = fmul(int2float(adc1), 2048.0) Calculate = fdiv(Calculate, 1024....
by Sean
Mon Nov 22, 2010 1:17 pm
Forum: E-blocks
Topic: ECIO base board question
Replies: 1
Views: 2577

Re: ECIO base board question

Hello,

The changes to the ECIO base board have been made to improve the distribution of the power supply voltage for all possible options: External PSU, USB power, 5V microcontroller, 3.3V microcontroller (ECIO ARM).
by Sean
Mon Nov 22, 2010 12:54 pm
Forum: General Programming
Topic: SPI latch
Replies: 3
Views: 3512

Re: SPI latch

Hello, The latch signal appears to be similar to the standard Chip Select (/CS) used with most SPI devices. the Flowcode SPI macros for the devices supported by the EB-013 SPI board (DAC and NVRAM) contain the appropriate chip select control. All other devices can have this function provided by simp...
by Sean
Mon Nov 22, 2010 12:17 pm
Forum: Flowcode V4
Topic: Simulation OK realtime fail
Replies: 3
Views: 2601

Re: Simulation OK realtime fail

Hello. There are some differences between the representation of variable and calculations in the PC simulation and the C code downloaded to the microcontroller. The main calculation illustrates two issues with the way programs handle calculations. 1. A C compiler sometimes needs to be forced to use ...
by Sean
Thu Nov 18, 2010 2:44 pm
Forum: Flowcode V4
Topic: AT-Mega 1281
Replies: 1
Views: 1601

Re: AT-Mega 1281

Hello,

The device illustrated is an atXmega128A1.

The Xmega range of devices are not compatible with the mega range, and are not currently supported by Flowcode.
by Sean
Wed Nov 17, 2010 10:45 am
Forum: Flowcode 4 Bugs
Topic: IRQ1 doesn't work on AT91SAM7S321?
Replies: 5
Views: 8410

Re: IRQ1 doesn't work on AT91SAM7S321?

Here is a new FCD file for the AT91SAM7S321. The original seems to contain an error in the initialization of the IRQ1 interrupt.
AT91SAM7S321.fcd
(13.17 KiB) Downloaded 437 times
If you copy the attached file into the FCD folder of your Flowcode installation (overwriting the original) it should solve the IRQ1 problem.