Search found 14581 matches

by Benj
Wed Aug 27, 2008 12:49 pm
Forum: Flowcode V2 & V3
Topic: Flowcode for beginners :-)
Replies: 3
Views: 3469

Re: Flowcode for beginners :-)

Ok have you edited any of your FCD files? I have attached the current 16F877A FCD file just to make sure. Simply drop the file into your Flowcode V3/FCD directory. If this solves the problem then it may be worth uninstalling your version of Flowcode, Deleting all of your files from the Flowcode V3 f...
by Benj
Wed Aug 27, 2008 12:46 pm
Forum: Bugs / Application Errors
Topic: TMR0 interrupt on 16F886
Replies: 2
Views: 3641

Re: TMR0 interrupt on 16F886

Hello Mark In the Timer interrupt properties can you make sure that the clock sorce is set to CLKO and not T0CKI pin. The T0CKI is an external input that can act as a clock for the timer if you wish but the CLK0 is driven directly from the internal program frequency clock (Crystal Frequency / 4) / P...
by Benj
Wed Aug 27, 2008 12:42 pm
Forum: General / Misc
Topic: How to programatically exit while loop?
Replies: 2
Views: 3490

Re: How to programatically exit while loop?

Hello

You use the while loop like you would use a decision icon. Double clicking on the loop allows you to enter details such as the following.

1 - Loop foroever
x < 10 - Loop while variable x is less than 10
x = 255 - Loop while variable x is equal to 255

etc
by Benj
Wed Aug 27, 2008 9:34 am
Forum: Flowcode V2 & V3
Topic: Flowcode for beginners :-)
Replies: 3
Views: 3469

Re: Flowcode for beginners :-)

Hello

Your program seems to be compiling correctly here. Please can you tell me which version of Flowcode you are using? You can find the version by going to Help -> About.
by Benj
Tue Aug 26, 2008 9:11 am
Forum: Components (Other)
Topic: The sensor board and wireless heart rate monitor.
Replies: 3
Views: 4179

Re: The sensor board and wireless heart rate monitor.

Hello Here is the datasheet for the heart rate monitor. http://www2.vernier.com/booklets/ehr-bta.pdf Also here is the datasheet for the analogue board. http://www.matrixmultimedia.com/datasheets/EB003-30-2.pdf I would look at my frequency counter application available from the flowcode examples sect...
by Benj
Tue Aug 26, 2008 9:06 am
Forum: C and ASM Programming
Topic: USART programming
Replies: 3
Views: 5018

Re: USART programming

Hello

Here is the complete C program for the RS232 UART running at a baud of 4800.
by Benj
Fri Aug 22, 2008 5:39 pm
Forum: C and ASM Programming
Topic: USART programming
Replies: 3
Views: 5018

Re: USART programming

Hello

Which device are you using? Which clock speed? Which Baud rate required?

I will generate you the code to drive the particular device at the particular clock speed and baud.
by Benj
Fri Aug 22, 2008 5:33 pm
Forum: C and ASM Programming
Topic: Bit Manipulation
Replies: 1
Views: 3874

Re: Bit Manipulation

Hello Ok to start the microcontrollers use 8 bit variables as a minimum, So lets say you have 2 variables IN - contains the following bits Xxxxxxxx - We are interested in the large X bit OUT = IN & 0x80 - Masks IN to provide OUT with the value X0000000 If we want to shift this single bit to the leas...
by Benj
Fri Aug 22, 2008 11:14 am
Forum: Flowcode V2 & V3
Topic: Rally Computer
Replies: 28
Views: 23235

Re: Rally Computer

The Flowcode graphical LCD component is for another type of graphical display and will not work with the KS0108 LCDs. To get the KS0108 functions working you must visit this page: http://www.matrixmultimedia.com/Flowcode_Components.php Read the information at the top and then download the custom cod...
by Benj
Fri Aug 22, 2008 11:10 am
Forum: Components (Other)
Topic: More missing help files
Replies: 2
Views: 3397

Re: More missing help files

Hello Jim

I dont think that there are any help files for the custom components. However there is a guide detailing their operation available on the beta component sections of the support area. This is also available via the main Flowcode page of our website.
by Benj
Thu Aug 21, 2008 3:41 pm
Forum: C and ASM Programming
Topic: how to use RS485 communication and SPI expander
Replies: 3
Views: 5887

Re: how to use RS485 communication and SPI expander

Hello Saran

It depends which chip you are using. Some of the PIC micro devices share the SPI and UART on the same pins. If this is the case for your chip then you will not be able to implement the RS485 and the SPI without bit banging one of the busses.
by Benj
Thu Aug 21, 2008 10:14 am
Forum: Bugs / Application Errors
Topic: Prog offset for bootloader
Replies: 3
Views: 4019

Re: Prog offset for bootloader

Hello Jan

The Programming software ECIOprog handles all of this for you so you dont need to worry about it either in Flowcode or programming in C / Assembler.
by Benj
Thu Aug 21, 2008 10:13 am
Forum: Bugs / Application Errors
Topic: (1242:4): error: invalid operand 'SPI_NVM_EN_PORT'
Replies: 3
Views: 4056

Re: (1242:4): error: invalid operand 'SPI_NVM_EN_PORT'

Hello Jan

Here is an updated SPI component code file that should fix your problem. Simply drop the file into your Flowcode V3/Components folder and restart Flowcode.
by Benj
Thu Aug 21, 2008 9:57 am
Forum: Components (Other)
Topic: Missing gLCD Help File
Replies: 2
Views: 4862

Re: Missing gLCD Help File

Hello

Yes here is a copy of the help file for the graphical LCD.
by Benj
Thu Aug 21, 2008 9:56 am
Forum: Flowcode V2 & V3
Topic: Can Flowcode use external subroutines of Flowcode?
Replies: 6
Views: 6009

Re: Can Flowcode use external subroutines of Flowcode?

Hello Jim

If you make macros in Flowcode then these can be exported like subroutine functions using the Macro -> Export menu. Then functions can be brought into programs using the import method.
by Benj
Thu Aug 21, 2008 9:54 am
Forum: Flowcode V2 & V3
Topic: Rally Computer
Replies: 28
Views: 23235

Re: Rally Computer

Hello You must use the custom component combined with the gLCD custom_code.c file with the KS0108 LCDs. The actual Graphical LCD component in Flowcode is designed for use with another display. If this is what you are already doing then what are your pin connections to the display and how are you pow...
by Benj
Fri Aug 08, 2008 12:25 pm
Forum: Announcements
Topic: Articles on the forums
Replies: 0
Views: 12688

Articles on the forums

We are pleased to introduce the articles section of our Forum, This will include application notes, programming techniques, general workarounds and detailed help on certain aspects of our hardware and software. We encourage users to help us add to our article repository so if you have something that...
by Benj
Fri Aug 08, 2008 9:53 am
Forum: Components (Comms)
Topic: led matrix
Replies: 4
Views: 4811

Re: led matrix

Hello Teo First I would try to do a single character and then take it from there. To do this you will need to create an array of 5 bytes. At the start of your program initialise these bytes with the binary to display your character. Then send byte 0 in the array to portb and switch on all of porta e...
by Benj
Fri Aug 08, 2008 9:30 am
Forum: C and ASM Programming
Topic: Debugging in MPLABIDE
Replies: 5
Views: 7416

Re: Debugging in MPLABIDE

Hello

Im afraid that BoostC is not directly compatible with microchips C18 compiler.

Do a block find and replace to change the following values.

adcon1 -> ADCON1
ucfg -> UCFG
trisc -> TRISC
portc -> PORTC
trisd -> TRISD

Your program should hopefully compile correctly after these mods.
by Benj
Thu Aug 07, 2008 5:28 pm
Forum: Programming Tips & Tricks
Topic: Data Logging with a MMC/SD card
Replies: 29
Views: 30173

Data Logging with a MMC/SD card

http://www.matrixmultimedia.com/images/Article_NoStudent.png One use for an embedded system is for it to sit off somewhere recording values from sensors or other external sources. An example of this would be a weather station where rain fall, wind speed and cloud cover etc can be monitored. A usefu...
by Benj
Thu Aug 07, 2008 5:19 pm
Forum: Programming Tips & Tricks
Topic: Communicating with a PC
Replies: 23
Views: 34524

Communicating with a PC

http://www.matrixmultimedia.com/images/Article_NoStudent.png When working with an embedded system it is often useful to connect the system up to a computer to allow for external monitoring of the system or to integrate an aspect of the embedded functionality into the PC itself. One of the simplest ...
by Benj
Thu Aug 07, 2008 5:04 pm
Forum: Programming Tips & Tricks
Topic: Printing Hexadecimal Numbers onto an LCD
Replies: 3
Views: 13435

Printing Hexadecimal Numbers onto an LCD

http://www.matrixmultimedia.com/images/Article_AllVersions.png On a microcontroller numbers can be represented by variables in memory. The size of memory allocated for storing the numbers are defined by the maximum size of the number you wish to use. A byte variable otherwise known as a char or 8-b...
by Benj
Thu Aug 07, 2008 9:55 am
Forum: Suggestions
Topic: A bootloader Please
Replies: 1
Views: 6601

Re: A bootloader Please

Hello You can create a Bootloader to program your hardware via the serial UART using the PIC TINY bootloader. Please refer to this topic for help setting this up. http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=5&t=4647&p=8626&hilit=bootloader#p8626 Programming via USB then you can always u...
by Benj
Thu Aug 07, 2008 9:45 am
Forum: Flowcode V2 & V3
Topic: RS485 (DMX) PWM problem
Replies: 21
Views: 11618

Re: RS485 (DMX) PWM problem

Hello Wayne Yes your program looks great, Using the 20MHz clock means that there is no error in your RS232 baud rate approximation. Have you tested your program on the hardware yet? Yes Pin 8 (RB2) is the receive pin for the hardware serial UART. No other configuration setup should be required. Mayb...
by Benj
Thu Aug 07, 2008 9:38 am
Forum: C and ASM Programming
Topic: Rs 485 communication status
Replies: 4
Views: 6539

Re: Rs 485 communication status

Hello Saran The UART will lock up if the buffer gets full. Performing a receive should remove the block and allow the UART to function again. Here are things to look out for. 1) Is there any data going to the Master, Maybe you could do a dummy RS232 read somewhere through your program loop to avoid ...