Search found 13640 matches

by Benj
Tue May 29, 2007 10:00 am
Forum: Flowcode V2 & V3
Topic: ADC support for 16F627A
Replies: 1
Views: 1508

The 16F627A does not have analogue inputs as such according to its datasheet. What it does have is a two pin analogue comparitor module. This means that you cannot use the pins as stand alone analogue inputs as the registers to hold the analogue reading do not exist on the chip. To obtain analogue r...
by Benj
Tue May 29, 2007 9:45 am
Forum: Flowcode V2 & V3
Topic: 12F675 Problem
Replies: 1
Views: 1816

Hello Jan This is due to a small bug in the FCD file which occurs when using the internal MCLR. I will email you the fixed FCD file. These fixed FCD files will be available with the next release of Flowcode which should be ready in a week or two. You should also use the default compiler and linker s...
by Benj
Tue May 29, 2007 9:42 am
Forum: Flowcode V2 & V3
Topic: Input Debounce
Replies: 3
Views: 2185

Hello Ron

If you add a switch component and then click on its properties then you can specify a debounce time in milliseconds.

The component macros will then use this debounce time when reading values from the switches.
by Benj
Tue May 29, 2007 9:40 am
Forum: Flowcode V2 & V3
Topic: Compiler Warning Message
Replies: 2
Views: 1661

Hi Ron The easiest way to do what you are describing is to add a while loop with a value of 1. This means it will loop forever. The compiler message is just saying that the program never returns to the main flowchart once it has entered the FCM_Halt_On_Error_Fault_Codes macro. This is not an issue b...
by Benj
Tue May 29, 2007 9:37 am
Forum: Electronics products
Topic: LCD with Demo Board V2
Replies: 1
Views: 3712

Hello Rob

B4 is the RS dataline and B5 is the Enable dataline.
by Benj
Sun May 27, 2007 6:20 pm
Forum: Flowcode V2 & V3
Topic: RS-232 Code sample needed
Replies: 6
Views: 3871

Hi Ron Pasted Your message into the forum to provide help for anyone else in the same position. A char and a byte both stand for an 8 bit number. The char is more commonly associated with ASCII but they are both essentially the same thing. I would use a baud rate of 9600 as this is a nice speed for ...
by Benj
Sun May 27, 2007 6:08 pm
Forum: Flowcode V2 & V3
Topic: RS-232 Code sample needed
Replies: 6
Views: 3871

Hi, You replied to my post about RS232 sample code needed..... I have never done any RS232 communications before. I see a box called ECHO and another called error % in the RS232 component properties box. What do these do? I will be communicating to a MS Windows based GUI Interface. If the PIC sends ...
by Benj
Fri May 25, 2007 10:56 pm
Forum: Flowcode V2 & V3
Topic: RS-232 Code sample needed
Replies: 6
Views: 3871

Hi Ron First add the RS232 component into your flowchart. Then you can use the hardware macros to do the following. Send char The value you send can be a variable, an element of a string, an entire string or a fixed constant. this can take the form of 0 - 255. To enter ASCII characters you can eithe...
by Benj
Fri May 25, 2007 5:58 pm
Forum: Flowcode V2 & V3
Topic: Flowcode v3.2
Replies: 9
Views: 4179

The patches that will be available from Tuesday 29th May are as follows: Master I2C Component Lin Master and Slave Component PWM Component Updated LCD Component Updated Keypad Component Updated EEPROM Component Updated Bluetooth Component Also a variety of bug fixes and run time tweaks Improved FCD ...
by Benj
Thu May 24, 2007 5:31 pm
Forum: Flowcode V2 & V3
Topic: Port RA4 ....16F84A
Replies: 4
Views: 2416

I think that with the pull up resistor RA4 can source and sink current.

Without the resistor you can only sink current.
by Benj
Thu May 24, 2007 9:37 am
Forum: Flowcode V2 & V3
Topic: Interfacing the Pic16F877A with the MCP3201 12-Bit ADC.
Replies: 4
Views: 2422

Referring to page 15 of the datasheet. It just takes two SPI_GetChar operations to perform a capture and clock out of the data. If you construct the program that i mentioned before then you should get the data. It may then take a bit of formatting. eg shifting one bit to the right. this can be done ...
by Benj
Thu May 24, 2007 9:26 am
Forum: Flowcode V2 & V3
Topic: ADC from a PIC 16f877a
Replies: 15
Views: 7668

Hello Henk To use the supplementary code you do the following. Insert your function into the function implementations box. void FCD_ADC0_SampleADC() { char ta, te, cnt; ... } Then in the definitions box enter the function prototype. void FCD_ADC0_SampleADC(); You can now call the function from flowc...
by Benj
Thu May 24, 2007 9:22 am
Forum: Flowcode V2 & V3
Topic: Port RA4 ....16F84A
Replies: 4
Views: 2416

Hello

Try connecting a 4.7K <-> 10K pullup resistor between pin RA4 and +5V. It is possible that pin RA4 is missing the internal pullup resistor and therefore cannot drive its output high by itself.
by Benj
Tue May 22, 2007 3:38 pm
Forum: Flowcode V2 & V3
Topic: EEPROM - Reading from & writing to (beginner)
Replies: 4
Views: 2297

Hello Ron To begin with the EEPROM component first click the EEPROM icon to include the component into your flowchart. When you have done this you can use component macros to call the EEPROM related functions. There are two functions. EEPROMRead Input the address of the byte you want to read Outputs...
by Benj
Tue May 22, 2007 3:33 pm
Forum: Flowcode V2 & V3
Topic: Interfacing the Pic16F877A with the MCP3201 12-Bit ADC.
Replies: 4
Views: 2422

Hello Muxer Can you just use the Flowcode SPI component. You will need a PICmicro with SPI hardware capability. You will also need to select a output pin to use as the Chip Select Pin. This enables the ADC module. You will then need to create a flowchart with the following hardware macro calls. SPI_...
by Benj
Mon May 21, 2007 9:40 am
Forum: Flowcode V2 & V3
Topic: Decision process query
Replies: 3
Views: 1950

Hello Nick

You are correct. The hardware works correctly but there is a problem with the simulation. I will pass on this information and see if we can fix the problem for the next update.
by Benj
Mon May 21, 2007 9:29 am
Forum: Flowcode V2 & V3
Topic: pic18f252 and rb2 interrupt
Replies: 9
Views: 3226

Hello

What PICmicro are you using and how are you setting up the interrupt.
by Benj
Mon May 21, 2007 9:24 am
Forum: Flowcode V2 & V3
Topic: Macros - How Many levels deep can your go?
Replies: 2
Views: 1788

Hello Ron The absolute maximum subroutine levels in a PICmicro is 8. However it is always good practise to leave at least two of these levels free incase an interrupt or something similar occurs. If a interrupt did occur that went over the 8 levels of return adress stack then the PICmicro would beco...
by Benj
Mon May 21, 2007 9:22 am
Forum: Flowcode V2 & V3
Topic: Version Number ?
Replies: 3
Views: 2046

Hello Jerry

Im afraid the latest patch is not quite available yet.

This is taken from the Flowcode V3 history file.


Installation version = 1.3.5
----------------------------
Release date = 22nd January 2007
Flowcode exe version = v3.1.0.31
by Benj
Mon May 21, 2007 9:20 am
Forum: Flowcode V2 & V3
Topic: ADC from a PIC 16f877a
Replies: 15
Views: 7668

Hello Henk To do this you will have to create your own ADC routine which enables these registers on the PIC. the easiest way todo this is to create a flowcode program with an ADC sample routine and then compile it to C and copy / change the parts that need editing (refer to the PICmicro datasheet fo...
by Benj
Fri May 18, 2007 5:46 pm
Forum: C and ASM Programming
Topic: yet more help needed
Replies: 1
Views: 2859

There is a project on Mircochipc.com that uses a PICmicro's USB as a virtual serial port. This may give you the kick start you need.
by Benj
Fri May 18, 2007 5:44 pm
Forum: Flowcode V2 & V3
Topic: Flowcode math problem 32/64 bit vs 8/16bit
Replies: 2
Views: 2037

Thanks for the info Nolan. We will see what we can do about this problem.
by Benj
Fri May 18, 2007 3:16 pm
Forum: Flowcode V2 & V3
Topic: Reading EEPROM from a beginner
Replies: 1
Views: 1486

The easiest way to achieve this is to do the following. Start the hardware timer TMR1 running. Perform the read or write operations. Collect the value in the timer register. One thing to look out for is to make sure that the timer is not rolling over. ie going from its max value back to 0. This coul...
by Benj
Tue May 15, 2007 9:50 am
Forum: C and ASM Programming
Topic: PIC16F84A
Replies: 1
Views: 2500

A simple program to do this would look like the following. Input parrallel - PORT B Pins 0 - 2 Output serial - PORT A pin 0 While (1) //Endless loop { Read PortB pins 0 - 2 and save in variable IN loop 3 times { Test bit 0 of IN if (IN.0 = 1) output 1 PORTA else output 0 PO...
by Benj
Mon May 14, 2007 9:32 am
Forum: Flowcode V2 & V3
Topic: Using Flowcode to pgm an atari style joystick
Replies: 36
Views: 14865

The X and Y axis will probably be represented by a analogue signal. Eg when the joystick is centered both x and y signals will be around 2.5V. It is therefore simply a case of measuring the analogue voltage and working out the position. As for the buttons these should be standard digital inputs. Dep...