Search found 29 matches

by Brian Walsh
Thu Feb 07, 2013 12:01 am
Forum: E-blocks
Topic: Read Hex numbers to RS232
Replies: 20
Views: 14056

Re: Read Hex numbers to RS232

Hi,

Does anyone have a neat way of sending a string showing the binary representation of a byte? This would be handy for looking at register contents for comparison with PIC datasheets.

I don't see a NumberToBin$ function in flowcode 5.

TIA,

Brian Walsh.
by Brian Walsh
Mon May 28, 2012 2:29 am
Forum: Flowcode V5
Topic: Port-pin variables
Replies: 9
Views: 7222

Re: Port-pin variables

Hi Benj, OK, I get it. I can now see that the training video flowchart example updates Port A using the original Output Icon method and updates Port B using the new Port Variable assignment within a Calculation Icon method. Also thank you for confirming the .n bit access syntax. I have to say, that ...
by Brian Walsh
Fri May 25, 2012 1:45 pm
Forum: Flowcode V5
Topic: Port-pin variables
Replies: 9
Views: 7222

Port-pin variables

First on the list of new software features in V5 is 'Port-pin variables to directly reference individual ports or pins'. I can't find anything in help about this and the video on the subject just shows the V4 procedure. What I am expecting is a method whereby a variable can be associated with a port...
by Brian Walsh
Sat Dec 03, 2011 2:18 am
Forum: Flowcode 4 Bugs
Topic: String concatenation rules seem to have changed in v4.5
Replies: 7
Views: 10525

Re: String concatenation rules seem to have changed in v4.5

Hi Steve, Thanks for the explanation. I was aware that the original message would have to be preserved somehow for the a = b + a syntax to work and when it did, magically, in the Flowcode version used for the original application, I thought no more about it. I now understand your RAM economy reasons...
by Brian Walsh
Thu Dec 01, 2011 4:24 pm
Forum: Flowcode 4 Bugs
Topic: String concatenation rules seem to have changed in v4.5
Replies: 7
Views: 10525

Re: String concatenation rules seem to have changed in v4.5

Hi Ben, Your reply shows the obvious and straightforward way of building the string and I would have done it that way but it doesn't work. Line two of your solution has two functions ( + & FloatToString$ )on one line which is not allowed. The editor highlights the line as being faulty and won't acce...
by Brian Walsh
Wed Nov 30, 2011 8:39 pm
Forum: Flowcode 4 Bugs
Topic: String concatenation rules seem to have changed in v4.5
Replies: 7
Views: 10525

String concatenation rules seem to have changed in v4.5

I revisited a program written in an earlier version today. Two things didn't work when I recompiled it into a PIC18F4620 using v4.5. 1. The software USART produced garbage. Originally, I had to specify a strange custom baud rate to get 9600 to work. It is obvious to me now that Matrix have fixed the...
by Brian Walsh
Thu Oct 13, 2011 9:52 pm
Forum: Flowcode 4 Bugs
Topic: Analog I/Ps on 18F26K22 don't work
Replies: 2
Views: 6656

Re: Analog I/Ps on 18F26K22 don't work

Thanks Steve. That worked. I'll look there in future before cluttering the list.

Brian.
by Brian Walsh
Wed Oct 12, 2011 6:12 pm
Forum: Flowcode 4 Bugs
Topic: Analog I/Ps on 18F26K22 don't work
Replies: 2
Views: 6656

Analog I/Ps on 18F26K22 don't work

The attached adctest_26K22 simulates ok but doesn't convert properly in hardware. The result for the integer option is a (seemingly) random sequence of the values 0, 128, 256, 512 & 768. I tried another 18F26K22 chip and got the same result. I then recompiled the flowchart as adctest_2525 (also atta...
by Brian Walsh
Tue Oct 11, 2011 4:15 pm
Forum: Flowcode 4 Bugs
Topic: ADC(1) on 18F26K22 doesn't compile
Replies: 6
Views: 9690

Re: ADC(1) on 18F26K22 doesn't compile

HI Martin,

I have written a simple program reading ADC(0) - ADC(3) and it compiles. So the problem with my original program must lie elsewhere. Thanks for your help.

Brian Walsh.
by Brian Walsh
Sun Oct 09, 2011 4:27 pm
Forum: Flowcode 4 Bugs
Topic: ADC(1) on 18F26K22 doesn't compile
Replies: 6
Views: 9690

ADC(1) on 18F26K22 doesn't compile

When I try to use ADC(1) my program fails with the following message. 4ch_no_con_mon.c(1378:23): error: unknown identifier 'VCFG0' 4ch_no_con_mon.c(1378:23): error: invalid operand 'VCFG0' 4ch_no_con_mon.c(1378:18): error: failed to generate expression 4ch_no_con_mon.c(1378:18): error: invalid opera...
by Brian Walsh
Fri Jun 10, 2011 3:37 am
Forum: Flowcode 4 Suggestions
Topic: Deleting Variables.
Replies: 7
Views: 9934

Re: Deleting Variables.

Another problem with the deletion of variables is that even when you have removed all blatant references to the variable within icons and therefore satisfied the requirements of the nag box, it is still possible for references to the variable to remain as parameters to functions with no warning. If ...
by Brian Walsh
Wed May 25, 2011 1:11 am
Forum: Flowcode 4 Bugs
Topic: software uart baud rate changes
Replies: 5
Views: 9152

Re: software uart baud rate changes

Hi Martin,

I was actually dismissing baud rate as the culprit but focussing on string length as the somewhat bizzare villain of the piece. Are you saying that you can send my delinquent string lengths at 4800 baud?

Regards,

Brian Walsh.
by Brian Walsh
Tue May 24, 2011 5:50 pm
Forum: Flowcode 4 Bugs
Topic: software uart baud rate changes
Replies: 5
Views: 9152

Re: software uart baud rate changes

Thanks Ben, I'll look forward to that.

Regards,

Brian Walsh.
by Brian Walsh
Mon May 23, 2011 4:08 pm
Forum: Flowcode 4 Bugs
Topic: software uart baud rate changes
Replies: 5
Views: 9152

software uart baud rate changes

I am aware that the preset baud rates don't work with the software uart and the user defined option has to be used to get usable bit times, however there is another strange problem. If I send a string of up to 31 characters plus crlf via the software uart everything works as expected. Uppercase U is...
by Brian Walsh
Sat May 15, 2010 9:56 am
Forum: Flowcode 4 Suggestions
Topic: Inversion for software RS232
Replies: 1
Views: 6167

Inversion for software RS232

Can we have a check box in the Ext Functions window to invert the output of the software uart? This would allow its use without level changing hardware. Also can the software uart be changed to allow it to compile with only the Rx or Tx connected to a pin? Currently both need to be connected which o...
by Brian Walsh
Thu Feb 18, 2010 4:58 pm
Forum: Flowcode V4
Topic: Labelling Macro Printouts
Replies: 3
Views: 3353

Re: Labelling Macro Printouts

Thanks Medelec35!

Brian.
by Brian Walsh
Wed Feb 17, 2010 11:51 pm
Forum: Flowcode V4
Topic: Labelling Macro Printouts
Replies: 3
Views: 3353

Labelling Macro Printouts

Hi, Is there any way to label macro flow chart printouts? Even the simplest example programs I've tried have half a dozen macros and, when I print them out to get an overview of the structure, the first thing I have to do is hand label them. How about the name of the macro above or to the right of t...
by Brian Walsh
Tue Feb 09, 2010 9:45 pm
Forum: Flowcode 4 Bugs
Topic: Auto clear watchdog problem
Replies: 13
Views: 12430

Auto clear watchdog problem

My next evaluation project with FC4 is interrupt on change to portb. This is used with an encoder on bits 4 & 5. There is a brief preamble followed by the main loop which outputs an integer value representing the encoder position via RS232. When a change in the relevant bits of portb occurs, the int...
by Brian Walsh
Wed Feb 03, 2010 5:41 pm
Forum: Flowcode 4 Bugs
Topic: LCD Commands @ 40MHz
Replies: 9
Views: 6492

Re: LCD Commands @ 40MHz

Steve, Here is a terminal program. It's not quite perfect but it exhibits the problem. If you setup the the project for 10MHz with a 10MHz xtal and HS osc it works. If you then setup the project for 40MHz using the same xtal and HSPLL osc it fails as described earlier. Benj, Quite a lot goes on in t...
by Brian Walsh
Mon Feb 01, 2010 4:32 pm
Forum: Flowcode 4 Bugs
Topic: LCD Commands @ 40MHz
Replies: 9
Views: 6492

LCD Commands @ 40MHz

The LCD commands don't work with a 40 MHz clock. Using an 18F4620 with a 10MHz xtal and HSPLL, I couldn't get the display (4 x 20) to intialise. Assuming there was a bug in the LCD Start routine, I got the data sheet out and wrote an initialiser as a macro in flowcode and it worked. I then went on t...
by Brian Walsh
Thu Jan 28, 2010 4:43 pm
Forum: Flowcode 4 Bugs
Topic: RX Interrupt Doesn't Work
Replies: 0
Views: 2465

RX Interrupt Doesn't Work

Rx int code enables global interrupts (intcon, GIE) & the USART Rx (pie1, RCIE) but not the peripheral interrupts (intcon, PEIE). I got round this placing a line of C after the interrupt box in the flow chart. st_bit(intcon,PEIE); Is there any way to edit the int box to fix this or am I stuck with t...
by Brian Walsh
Thu Jan 28, 2010 12:48 am
Forum: Flowcode V4
Topic: RS232 coponent rx character simulation
Replies: 4
Views: 3587

Re: RS232 coponent rx character simulation

Thanks for the replies guys. There is no RS232 receive in my main loop. The main loop simply flashes an LED. There is an RS232 receive in the preamble, which was suggested by one of you, to clear any error conditions. When I run the simulation it is this call to the component macro which moves the f...
by Brian Walsh
Tue Jan 26, 2010 1:40 am
Forum: Flowcode V4
Topic: USART Interrupt
Replies: 2
Views: 2870

Re: USART Interrupt

Ben, Thanks for the sample program. I've not got it working yet and, during my attempts to do so, I've come across some anomalies. These are noted below. When the simulation is started all port A leds are on, presumably indicating RCREG = 255, whereas the reset value for RCREG is 0 under all circums...
by Brian Walsh
Tue Jan 26, 2010 12:36 am
Forum: Flowcode V4
Topic: RS232 coponent rx character simulation
Replies: 4
Views: 3587

RS232 coponent rx character simulation

The RS232 component has three windows. The characters sent window seems self explanatory. Where can I find a comprehesive explanation of how to use the characters in queue / characters received windows? Using the + button when the simulation is running opens a window which adds characters to the que...
by Brian Walsh
Thu Jan 21, 2010 12:41 am
Forum: Flowcode V4
Topic: Software RS232 Baud Rate Problem
Replies: 1
Views: 2005

Software RS232 Baud Rate Problem

I've just tried the bit banged version of the RS232 component and the output on my terminal program (PuTTY) was garbled. Looking on the scope revealed that the bit time was only 89.5% of what it should be, i.e. the rate is high. This behaviour was consistent for 9600 and 19200 baud rates. Fooling th...