Search found 548 matches

by Sean
Wed Apr 06, 2011 1:47 pm
Forum: Flowcode V4
Topic: Newbie no contact with E-block
Replies: 16
Views: 8206

Re: Newbie no contact with E-block

Is the target chip the one that was supplied with the board? The EB019 should have been supplied with a 20MHz crystal. If you are using an alternative 10MHz crystal, can you confirm that it has the correct mode of oscillation (as specified in the Atmel data sheet)? Would you be able to use the suppl...
by Sean
Wed Apr 06, 2011 12:57 pm
Forum: Flowcode V4
Topic: Newbie no contact with E-block
Replies: 16
Views: 8206

Re: Newbie no contact with E-block

If the target chip has not been programmed yet, it should be running from its internal oscillator. If the chip has been programmed previously, it will be difficult to determine which clock option has been selected as the clock must be present for the device to be read. I have connfirmed that a missi...
by Sean
Wed Apr 06, 2011 11:49 am
Forum: Flowcode V4
Topic: MIAC with CAN
Replies: 21
Views: 10069

Re: MIAC with CAN

The CAN init macro should be outside the main loop. Possibly better to make it the first command in the program. Also, in addition to selection of the MIAC and CAN components, the target device must also be selected as MIAC (View -> Project Options -> Target). Termination (as mentioned in a previous...
by Sean
Wed Apr 06, 2011 11:03 am
Forum: Flowcode V4
Topic: MIAC with CAN
Replies: 21
Views: 10069

Re: MIAC with CAN

There are some issues with the parameters being used for the SetTxID macro: The first parameter is the TX buffer identification. The CAN controller in the MIAC has three TX buffers identified as 0, 1 and 2. The other two parameters are the high and low bytes of a 16-bit integer which is used to hold...
by Sean
Tue Apr 05, 2011 9:57 am
Forum: Flowcode V4
Topic: DSPic 30F3012 and EB-063-00-1
Replies: 14
Views: 6859

Re: DSPic 30F3012 and EB-063-00-1

The code is working again.

It will take a couple of days to get it into a releasable state.
by Sean
Mon Apr 04, 2011 5:16 pm
Forum: Flowcode V4
Topic: Newbie no contact with E-block
Replies: 16
Views: 8206

Re: Newbie no contact with E-block

The error message indicates that the PC is communicating with the programmer, and that AVRDUDE is receiving appropriate parameters. The problem seems to be with the target board or device. This error message is generated if the programmer is not able to establish communications with the target chip ...
by Sean
Fri Apr 01, 2011 10:44 am
Forum: Flowcode V4
Topic: DSPic 30F3012 and EB-063-00-1
Replies: 14
Views: 6859

Re: DSPic 30F3012 and EB-063-00-1

Hello Wolfgang,

We think we have found the source of the problems. Rebuild and test are planned for this weekend
by Sean
Thu Mar 24, 2011 12:04 pm
Forum: Flowcode V4
Topic: DSPic 30F3012 and EB-063-00-1
Replies: 14
Views: 6859

Re: DSPic 30F3012 and EB-063-00-1

Hello Wolfgang, I have tested your program, but have not been able to recreate the condition that prevents the LED from flashing (using the EB064 multiprogrammer and a dsPIC30F2011). Looking through the initialization macro code, with the software SPI option selected, there are no commands that caus...
by Sean
Sat Mar 12, 2011 11:43 am
Forum: Article Discussion
Topic: MX026 - RS485 using the EB062 E-Block
Replies: 27
Views: 45580

Re: RS485 using the EB062 E-Block

The drivers on the EB062 are also capable of operating at 500K baud (a requirement of the electrical specification). This is a theoretical maximum rate under ideal conditions which reduces with distance, loading, and cable quality. Unfortunately we can not always provide examples for Flowcode V3. In...
by Sean
Fri Mar 11, 2011 1:45 pm
Forum: Article Discussion
Topic: MX026 - RS485 using the EB062 E-Block
Replies: 27
Views: 45580

MX026 - RS485 using the EB062 E-Block

Article: http://www.matrixmultimedia.com/resourc ... php?id=437

Please discuss this article here.
by Sean
Mon Mar 07, 2011 11:48 am
Forum: C and ASM Programming
Topic: float2int
Replies: 13
Views: 12087

Re: float2int

Hello,

I have attached a new 'internals.h' file that should correct the name problems identified with 3 floating point function calls:

float to int
int to float
sqrt
internals.h
(2.16 KiB) Downloaded 643 times
The file should be copied into the FCD folder of the Flowcode AVR V4 installation (overwriting the original).
by Sean
Sun Mar 06, 2011 8:02 pm
Forum: C and ASM Programming
Topic: float2int
Replies: 13
Views: 12087

Re: float2int

I will look into the function naming problem. As a workaround. It is possible that the two functions to convert, in either direction, between floats and ints are not required in Flowcode for AVR. Their main purpose is to allow import/export compatibility with Flowcode for PIC. The compiler seems to ...
by Sean
Tue Mar 01, 2011 9:14 am
Forum: Flowcode V4
Topic: AVR Studio programming issues
Replies: 4
Views: 3616

Re: AVR Studio programming issues

I have attached a copy of a batch file that should work using COM3. avrc_stk500.zip The file should be extracted into the Tools\MX_bats folder of the Flowcode AVR installation This is the string that should be used for the programmer parameters: AVRDUDE %a %t "%D\%f.hex" "%f.hex" %cfg %c0 %c1 %c2 %c...
by Sean
Fri Feb 25, 2011 10:30 am
Forum: Flowcode V4
Topic: AVR Studio programming issues
Replies: 4
Views: 3616

Re: AVR Studio programming issues

Hello, The parameters being sent to the programmer are not compatible with the options available in Flowcode AVR V4. The default parameter string allows simple selection of the prefered programming utility (usually dictated by the USB driver selected for the AVRISPmkII programmer): AVRDUDE %a %t "%D...
by Sean
Thu Feb 24, 2011 4:54 pm
Forum: Flowcode V4
Topic: Interrupt
Replies: 8
Views: 5140

Re: Interrupt

The program in the Multiple Servo Control article uses tmr1 in conjunction with one of the CCP registers to reset and interrupt every 2.5ms. This could be modified for 10us. Unfortunately some of the values need to be calculated manually. Of more interest might be the TMR2 interrupt, which is suppor...
by Sean
Thu Feb 24, 2011 3:56 pm
Forum: Flowcode V4
Topic: Interrupt
Replies: 8
Views: 5140

Re: Interrupt

Timing errors will be caused by the finite time it takes to perform the 'tmr0l +=156' operation. The processor uses a read-modify-write operation to update the tmr0l value. Any clock counts received between the instant the timer is read, and the instant the modified value is written back, will effec...
by Sean
Thu Feb 24, 2011 9:56 am
Forum: Flowcode V4
Topic: ECIO
Replies: 3
Views: 3491

Re: ECIO

Hello, I have tested your program using a 4K7 potentiometer as a voltage source. The temperature displayed on the LCD corresponds correctly with the input voltage across the full range: 0.3V - Temp = 30.00 5V - Temp = 499.2V I also used an EB-061 ECIO Base Board to ensure that the port connections w...
by Sean
Thu Feb 24, 2011 9:29 am
Forum: E-blocks
Topic: Writing/reading with RFID E-block
Replies: 2
Views: 2896

Re: Writing/reading with RFID E-block

Hello, If you have the RFID solution, example program RFID ex4.fcf, reads and writes I-Code card data. The reading and writing of data is a 2-stage process. The 'Read_RFID_Block' and 'Write_RFID_Block' macros transfer blocks of data between the card and the local buffer. The 'Read_RFID_Buffer' and '...
by Sean
Thu Feb 10, 2011 11:15 am
Forum: C and ASM Programming
Topic: Incorrect interrupt frequency shown in FC 4 AVR for AVR chip
Replies: 1
Views: 4510

Re: Incorrect interrupt frequency shown in FC 4 AVR for AVR

The problem seems to caused by some missing information in the files that describe the target devices. Here is a modified version of the ATmega324P file. ATMEGA324P.fcd This file should be copied into the FCD folder of the Flowcode AVR V4 installation (with Flowcode not running). Details: The existi...
by Sean
Mon Feb 07, 2011 3:49 pm
Forum: Components (Other)
Topic: Quadrature Encoder
Replies: 9
Views: 13370

Re: Quadrature Encoder

Here is a program that reads a quadrature encoder. The program uses a timer interrupt to poll the selected inputs at regular intervals, so any available inputs can be used. Using a PIC16F877a, clocked at 19.6608MHz, the 19200Hz interrupt frequency allows for individual encoder channel frequencies of...
by Sean
Mon Feb 07, 2011 11:22 am
Forum: General Programming
Topic: The Burglar Alarm System
Replies: 9
Views: 9187

Re: The Burglar Alarm System

I have re-posted the alarm example program in the Custom Images thread of the rticles section of the forum.

A copy is also attached below:
CustomImageAlarm.fcf
(380.32 KiB) Downloaded 563 times
by Sean
Mon Feb 07, 2011 11:18 am
Forum: Article Discussion
Topic: MX025 - Custom Images in Flowcode
Replies: 5
Views: 17612

Re: Flowcode V4 custom images

Here is the example alarm program from the original article:
CustomImageAlarm.fcf
(380.32 KiB) Downloaded 1132 times
by Sean
Mon Feb 07, 2011 10:53 am
Forum: Bugs / Application Errors
Topic: ATTINY 261 vs ATTINY26
Replies: 2
Views: 7107

Re: ATTINY 261 vs ATTINY26

Hello, There is a patch available for Flowcode AVR V3 that includes a fix for the ATtinyx61 adc problem - and several other issues. If your copy of Flowcode has not been updated, the patch can be found at the link below: http://www.matrixmultimedia.com/software/AVR%20updates.zip It includes Componen...
by Sean
Sat Feb 05, 2011 7:42 pm
Forum: Flowcode V2 & V3
Topic: Suggestion for program flow
Replies: 1
Views: 2850

Re: Suggestion for program flow

Do you know the maximum frequency of the encoder pulses?

It might be possible to use a timer interrupt to force regular polling of the I/O, allowing the encoder signals to be connected to any available inputs.
by Sean
Wed Feb 02, 2011 1:54 pm
Forum: Components (Other)
Topic: pwm ATTiny 85
Replies: 2
Views: 7834

Re: pwm ATTiny 85

Hello. This is one of the problems that has been addressed in the V4 upgrade to Flowcode for AVR. In the case of the PWM component the changes seem to be backward compatible, so the V4 file is attached (re-named to comply with the V3 naming convention). PWM_Code.c This file should be copied into the...