Search found 548 matches

by Sean
Tue Sep 20, 2011 10:06 pm
Forum: Flowcode V4
Topic: Random() function
Replies: 5
Views: 4987

Re: Random() function

We will look into this problem.

A quick fix is to add the following line to the supplementary code section of Flowcode (View -> Project Options menu):

#include <rand.h>
by Sean
Tue Sep 20, 2011 12:31 pm
Forum: C and ASM Programming
Topic: Selectable CAN bus rate
Replies: 1
Views: 3658

Re: Selectable CAN bus rate

I have used a similar technique to reprogram the CAN receive filters and interrupt enable flags in a MIAC (after allowing standard initialization). The following code was used in a C code block. // Request config mode. FCD_CAN0_CAN_Config(REQOP_CONFIG); //Initialise all the CAN device registers //en...
by Sean
Wed Sep 14, 2011 10:00 am
Forum: Flowcode V4
Topic: No access to all 24FJ256GA110 pins
Replies: 5
Views: 4127

Re: No access to all 24FJ256GA110 pins

The oscillator on the PIC24 devices is particularly complicated. In addition to the CONFIG fuses, there are programmable registers that affect initial calculations and allow changes to be made during program execution. Your 4MHz estimation does not relate easily to the 10MHz xtal, but is one of the ...
by Sean
Mon Sep 12, 2011 1:01 pm
Forum: Flowcode V4
Topic: Get keypadnum_to lcd.
Replies: 8
Views: 4799

Re: Get keypadnum_to lcd.

If you are using the GetKeypadNumber keypad macro, the value returned can not be displayed directly using the PrintASCII macro, you will need to use the PrintNumber macro.

Using the GetKeypadAscii macro will return individual characters that can be displayed using PrintASCII
by Sean
Mon Sep 12, 2011 11:52 am
Forum: C and ASM Programming
Topic: Comparators
Replies: 4
Views: 5030

Re: Comparators

The selection of RA4 and 5 as comparator outputs is based on the CM2:0 mode bits. The modes listed as 'with Outputs' in the Comparator I/O Operating Modes table (Figure 12-1 in my copy of the 877 data sheet) control the I/O. The remaining modes leave the I/O unaffected. The multiplexers that control...
by Sean
Thu Sep 08, 2011 5:11 pm
Forum: Flowcode V4
Topic: No access to all 24FJ256GA110 pins
Replies: 5
Views: 4127

Re: No access to all 24FJ256GA110 pins

There was an error in the FCD file for the chip. Here is an update with the RC1 fault corrected:
24FJ256GA110.fcd
(15.74 KiB) Downloaded 322 times
The file should be copied into the FCD folder of your Flowcode installation - overwriting the original. Flowcode should be closed when you do this.
by Sean
Mon Sep 05, 2011 11:30 am
Forum: E-blocks
Topic: Use eb018 with ecio ARM
Replies: 6
Views: 5018

Re: Use eb018 with ecio ARM

The hardware SPI connections are on the following pins: SDO = RB5 = PIN 37 SDI = RB7 = PIN 39 SCK = RB0 = PIN 32 CS and INT can be selected from any other RBx pins (RB is fully available on pins 32 to 39). The connection options for the EB018 are detailed in its data sheet: http://www.matrixmultimed...
by Sean
Mon Sep 05, 2011 10:58 am
Forum: Flowcode V4
Topic: SPI & CAN interface
Replies: 4
Views: 2877

Re: SPI & CAN interface

Hello, We have recreated a slightly modified version of your program in Flowcode V4 and run it successfully. The program is attached. Removed The modified FCD file you were using is not available in V4, so a standard 16F88 target was used and configured appropriately. To match our test hardware: The...
by Sean
Mon Sep 05, 2011 9:24 am
Forum: E-blocks
Topic: Use eb018 with ecio ARM
Replies: 6
Views: 5018

Re: Use eb018 with ecio ARM

Yes, It should be possible to power the EB018 at 5V and use a bi-directional logic level shifter between the 3.3V ARM and 5V CAN circuits.

We use the MAX3002 on several E-Blocks for this purpose (usually for a 5V microcontroller and 3.3V peripheral).
by Sean
Fri Sep 02, 2011 5:21 pm
Forum: E-blocks
Topic: Use eb018 with ecio ARM
Replies: 6
Views: 5018

Re: Use eb018 with ecio ARM

Hello,

The EB018 CAN E-block is not recommended for 3.3V systems.

Even if it is powered from a separate 5V supply (required for the MCP2551), the logic thresholds of the MCP2515 will not be compatible with a 3.3V microcontroller.
by Sean
Fri Sep 02, 2011 4:59 pm
Forum: Flowcode V4
Topic: SPI & CAN interface
Replies: 4
Views: 2877

Re: SPI & CAN interface

I can confirm that the CAN component has changed since Flowcode V2, but we are not aware of any problems driving the CS pin.

Which build of Flowcode V4 are you using?

Can you post a copy of the .fcf and .c files generated by a non-working program?
by Sean
Thu Sep 01, 2011 6:13 pm
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

Enabling flow control causes the RS232 component to automatically test the pin allocated to the CTS function before each character transmission. If flow control is disabled, the CTS signal (as seen by the microcontroller) from an external device can be connected to any available pin and read as a ba...
by Sean
Thu Sep 01, 2011 3:18 pm
Forum: E-blocks
Topic: UART Issues
Replies: 11
Views: 7539

Re: UART Issues

I have downloaded your program to a 16F88 and it appears to be working.

The chip is configured correctly
The transmit signal can be seen on RA1 using an oscilloscope.
The correct text is displayed in Hyperterminal when transmitted via an EB015, RS232 E-block.
by Sean
Thu Sep 01, 2011 10:47 am
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

The flow control for the RS232 component is character based, so transmission of a long message will stop within 1 character of CTS being de-asserted. If you need flow control to be message based (allowing a full message to be transmitted after the first character has been accepted), the component fl...
by Sean
Wed Aug 31, 2011 5:07 pm
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

By "remove CTS during transmission" I simply meant de-asserting CTS (as seen by the Flowcode code) during transmission of a data stream. This usually happens conveniently between bytes, but has been seen to happen in the middle of a byte with some devices. The Flowcode RS232 component code (with flo...
by Sean
Wed Aug 31, 2011 2:06 pm
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

All the devices we have tested seem to be capable of dealing with the occasional character that gets transmitted at the instant the CTS is removed. Most devices seem to be simply managing their input queues, and remove CTS during transmission of the character that causes the buffer to become full (p...
by Sean
Wed Aug 31, 2011 10:55 am
Forum: Flowcode V4
Topic: RC5 on a 16F88
Replies: 11
Views: 8234

Re: RC5 on a 16F88

Your program, using the RC5 component, should work. Generating a 1ms pulse every time a valid signal is received. If you are using the EB060 RC5 E-Block, or similar hardware, the received signal will be inverted. The 'Invert signal' check box in the component property panel needs to be checked to co...
by Sean
Wed Aug 31, 2011 9:49 am
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

You can use the input icon in its 'Single Bit' mode (using the radio buttons below the port selector) to isolate the CTS pin (Port C, Pin 4 in this case) and return the logic level directly (1 or 0). The same result can be achieved by using a switch component connected to the pin. The time delay bet...
by Sean
Tue Aug 30, 2011 2:16 pm
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

With hardware flow control enabled, the RS232 component confirures the selected CTS line as an input.
The input can also be read at any point in the flowchart by using an input icon or switch component connected to the same pin.
Neither will cause a conflict with RS232 component.
by Sean
Tue Aug 30, 2011 10:54 am
Forum: Flowcode V4
Topic: [solved] RS232 Serial - EB015 RTS / CTS Error - Help Needed
Replies: 19
Views: 8311

Re: RS232 Serial - EB015 RTS / CTS Error - Help Needed

When hardware flow control is enabled, the RS232 component controls the RTS pin - asserting the line when waiting for a received character, and releasing it then a character is received or the timeout period has elapsed. When transmitting, the program waits for the CTS line to be asserted before sen...
by Sean
Fri Aug 19, 2011 4:21 pm
Forum: E-blocks
Topic: UART Issues
Replies: 11
Views: 7539

Re: UART Issues

Hello, The Flowcode RS232 component can be used in hardware and software mode. Software mode uses general purpose I/O and delays to create a bit-banged UART. The TX and RX pins are allocated in the component Connections panel. Flow control and other properties are supported. Multiple software RS232 ...
by Sean
Fri Aug 19, 2011 3:29 pm
Forum: Flowcode V4
Topic: CAN Messaging and CAN Buffers
Replies: 2
Views: 2081

Re: CAN Messaging and CAN Buffers

Hello, The following assumes you are using the CAN E-Block as the interface hardware. When a Flowcode program calls the CAN component CheckRX macro, if the hardware buffer being referenced in the CAN control chip has received a new message, the contents are read back to a local software buffer in th...
by Sean
Fri Aug 19, 2011 2:31 pm
Forum: General Programming
Topic: RS232 BAUD Rate Problem
Replies: 8
Views: 5716

Re: RS232 BAUD Rate Problem

The register values for the hardware uart Baud rate are calculated by the RS232 component and defined in the C code (9600 Baud): #define RS232_2098342_TXSTA_VAL 4 #define RS232_2098342_SPBRG_VAL 127 Note: RS232_2098342_ is a unique component ID that changes with each compilation. The values are load...
by Sean
Thu Aug 18, 2011 12:35 pm
Forum: E-blocks
Topic: Problem with EB063
Replies: 13
Views: 12623

Re: Problem with EB063

Hello Andreas, I have checked both of your programs, and there still seems to be a problem with the connections. The correct pins are being used for Jumper A with the 16F88, and Jumper B with the 16F877A. But in both cases the SDI and SDO pins have been swapped. The connections displayed by Flowcode...
by Sean
Wed Aug 17, 2011 10:55 am
Forum: E-blocks
Topic: Problem with EB063
Replies: 13
Views: 12623

Re: Problem with EB063

Hello, The RF component help file information appears to be out of date. As there was no definitive way to detect successful initialization of the RF module, the initialization macro now returns an integer value containing the module's status register contents. The returned value is dependent on the...