Search found 14218 matches

by Benj
Mon Oct 08, 2007 5:32 pm
Forum: Flowcode V2 & V3
Topic: Comms again
Replies: 1
Views: 1394

Hello Ian Sounds like you need to get a single character sorted and then the rest will be easy. Eg if you can get one character sent out then you know it will work correctly. To do the rest you would just have to do a matrix of descision icons or you could use a C code switch statement. The logic ab...
by Benj
Mon Oct 08, 2007 9:43 am
Forum: Flowcode V2 & V3
Topic: LCD Component, can't seem to get it to work
Replies: 4
Views: 2350

Hello The LCDs require a certain frequency of input. Have you checked your clock settings in Flowcode. Also make sure that both your Flowcode Chip configuration and hardware configuration are in XTAL mode. If this is all correct then check your connections to the LCD are correct. Eg when you power u...
by Benj
Fri Oct 05, 2007 5:41 pm
Forum: Flowcode V2 & V3
Topic: I get error using 12f629 and RB0/INT
Replies: 5
Views: 3038

Hello Art I have found the problem in your code. The error is occurring on the following line of code. 0x0000000B.4=1; Now this is because the compiler is trying to write a value of 1 into bit 4 of register 0. The compiler is trying to do this because you entered 0x0000000B into the interrupt regist...
by Benj
Fri Oct 05, 2007 9:14 am
Forum: E-blocks
Topic: RS232 Test
Replies: 6
Views: 4512

Hello Chad You set the RS232 properties in the RS232 component. If you open up Flowcode and create a new file. Select your processor and then add the RS232 component. Next create a loop with a RS232 SendByte hardware macro with "Hello From E-Blocks" as a parameter and a delay of 5 seconds. Next clic...
by Benj
Thu Oct 04, 2007 2:25 pm
Forum: E-blocks
Topic: RS232 Test
Replies: 6
Views: 4512

Hello

If you are using Flowcode then you need to go into the component properties.

If you are programming your own routines then you will need to manually set up the baud rate etc in your code.
by Benj
Thu Oct 04, 2007 9:09 am
Forum: E-blocks
Topic: RS232 Test
Replies: 6
Views: 4512

Hello Chad

Your cable should be correct. Have you checked that the baud rate, hardware flow control, etc settings match on the Pic and the PC.
by Benj
Wed Oct 03, 2007 9:46 am
Forum: Flowcode V2 & V3
Topic: KEYPAD
Replies: 1
Views: 1675

Hello Wayne Yes this can be acheived. The easiest way is probably to convert the incoming numbers from the keypad into a string. To do this first create a string variable and two byte variables in flowcode. The variables should be named string_var, index_var and keypad_var. Firstly initialise the in...
by Benj
Mon Oct 01, 2007 9:36 am
Forum: Flowcode V2 & V3
Topic: Bit Banging Serial Comm's
Replies: 4
Views: 2734

Hello You can call functions from the supplementary code by doing the following. In the Suplementary code window first place your function prototypes. eg char addvars(char x, char y); Then in the implementation window add the C code for the function. eg char addvars(char x, char y) { return (x + y);...
by Benj
Mon Oct 01, 2007 9:31 am
Forum: Flowcode V2 & V3
Topic: rb0/int
Replies: 15
Views: 5649

Hello Wolfgang

Please can you send me your new code. I will see why the ADC is not working.
by Benj
Mon Oct 01, 2007 9:26 am
Forum: C and ASM Programming
Topic: Example of a simple lcd program
Replies: 6
Views: 6071

There should be hundreds of examples of how to code a LCD available online.

Simply choose which compiler you wish to use and then get googling.

eg search term = BoostC LCD PIC code
by Benj
Mon Sep 24, 2007 4:04 pm
Forum: Flowcode V2 & V3
Topic: UDP over serial or Modem connection
Replies: 16
Views: 6097

Hello Ondra

Sorry I dont think that there are any plans to implement PPP into the TCP/IP at the moment.
by Benj
Mon Sep 24, 2007 4:02 pm
Forum: Flowcode V2 & V3
Topic: TMRO
Replies: 7
Views: 3136

Hello Ondra The previous program printed this is a test every time the Seconds variable was at 30. eg once a minute at 30 seconds. You will need to modify the program so that this message is printed at the start before entering the main loop. If you wanted to output the time via the RS232 then this ...
by Benj
Mon Sep 24, 2007 10:40 am
Forum: Flowcode V2 & V3
Topic: UDP over serial or Modem connection
Replies: 16
Views: 6097

Hello Ondra

The channel is a virtual or time spliced channel rather then an individual port.

The Flowcode component communicates to the E-Block TCP/IP module via I2C so the hardware port that is used is normally portC. This depends on the PICmicro you are using.
by Benj
Mon Sep 24, 2007 10:27 am
Forum: Flowcode V2 & V3
Topic: TMRO
Replies: 7
Views: 3136

I have had a go with your program and this should work a lot better. I have changed the Timer0 prescalar so that it produces an integer frequency. The program would work better if the prescalar could be lower. Maybe you could use a different crystal to achieve a better timeout value. eg a 19.6608MHz...
by Benj
Mon Sep 24, 2007 10:06 am
Forum: Flowcode V2 & V3
Topic: Bit Banging Serial Comm's
Replies: 4
Views: 2734

Hello Pinto Can you not just use transistors to do the repeating and amplification? For the bit banging you will need to do something like this. Remember that timing is fairly crutial. for your required baud you will need to first collect a time period eg. Baud 9600 Time period = 1 / 9600 = 104.16us...
by Benj
Mon Sep 24, 2007 9:54 am
Forum: General Programming
Topic: Pic 16F87 compatible
Replies: 4
Views: 3347

Remember that code can be optimised by using things like macros and loops.

Doing things like this can greatly improve the amount of memory taken up by your program.
by Benj
Thu Sep 20, 2007 1:53 pm
Forum: Flowcode V2 & V3
Topic: Frequency Counter
Replies: 10
Views: 5873

Hello Yes that would be a perfect solution. To create the 12 bit variable first you will have to create two byte variables and an int variable in flowcode. b1 - Byte b2 - Byte I1 - Int Then if you read the 8 least significant bits into b1. eg Input icon b1 = portB Then you will need to read in the r...
by Benj
Thu Sep 20, 2007 9:59 am
Forum: Flowcode V2 & V3
Topic: Frequency Counter
Replies: 10
Views: 5873

Hello If you are using a 4MHz crystal to drive your PICmicro then it will have a operating frequency of 1MHz. The frequencies you are able to acheive will be much less then this. Even if you had a 20MHz crystal you would not be able to count the 10MHz signal as the operating frequency would be 5MHz....
by Benj
Wed Sep 19, 2007 5:07 pm
Forum: Flowcode V2 & V3
Topic: RS232 help
Replies: 1
Views: 1506

Hello You can send characters or strings with the send macro. characters can be defined as 'A' or 'a' or the ASCII equivalent. strings can be defined as "Hello" or "World" or an array of the ASCII equivalent. You can only receive a single character at a time. So to build up a string you would have t...
by Benj
Wed Sep 19, 2007 4:55 pm
Forum: General Programming
Topic: LCD control lines in Version 2 development board.
Replies: 9
Views: 5471

Hello Keith Two line alphanumeric displays all have an 80 character buffer. On a top line you have locations 0 - 39 On the bottom line you have locations 40 - 79 When you write to the display you start at location 0 and then each subsequent write will be placed into the next location. Therefore you ...
by Benj
Wed Sep 19, 2007 4:50 pm
Forum: Flowcode V2 & V3
Topic: Interupts
Replies: 6
Views: 3140

Hello It depends on the interrupt frequency of TMR0. If you set the prescalar to something like 1:256 then the interrupt will occur something like this. instruction 1 timer enable instruction 2 instruction 3 instruction 4 ... instruction 257 Interrupt service routine instruction 258 instruction 259 ...
by Benj
Wed Sep 19, 2007 2:52 pm
Forum: Flowcode V2 & V3
Topic: TMRO
Replies: 7
Views: 3136

Hello Ondra

If you send me your program then I will give it a going over and see if I can spot whats going wrong.

My email is ben@matrixmultimedia.co.uk
by Benj
Wed Sep 19, 2007 2:50 pm
Forum: Flowcode V2 & V3
Topic: Interupts
Replies: 6
Views: 3140

Hello Disabling the interrupt routine is a good idea if you are not bothered about the frequency of the TMR0 being precise. If you disable the interrupt the the value in the TMR0 gets overwritten when re enabling the interrupt. The PICmicro returns to the point after the last instruction that was ex...
by Benj
Wed Sep 19, 2007 2:43 pm
Forum: Flowcode V2 & V3
Topic: Frequency Counter
Replies: 10
Views: 5873

Hello I happen to have an example of this that I will email to you. It origionally was designed for a 19.6608MHz crystal as that gave precise frequencies. With the 4MHz crystal the most accurate I can achieve is displayed freq * 1.07 Hz but as long as the accuracy is not too vital then this is not a...
by Benj
Wed Sep 19, 2007 1:22 pm
Forum: Flowcode V2 & V3
Topic: rb0/int
Replies: 15
Views: 5649

Hello Wolfgang I think that if you want to detect both edges you must do the following. 1) start the interrupt to detect the rising edge 2) when interrupt starts 3) disable the rising edge interrupt 4) start the interrupt to detect the falling edge 5) when interrupt starts 6) disable the falling edg...