Search found 14581 matches

by Benj
Fri Sep 05, 2008 3:07 pm
Forum: Programming Tips & Tricks
Topic: Controlling Motors With A Microcontroller
Replies: 12
Views: 20281

Controlling Motors With A Microcontroller

http://www.matrixmultimedia.com/images/Article_NoStudent.png Microcontroller devices are capable of supplying small amounts of current to drive small low power circuitry but are unable to provide the power to drive high voltage or high current devices. This document deals with taking signals from t...
by Benj
Fri Sep 05, 2008 2:53 pm
Forum: Flowcode V2 & V3
Topic: RS485 (DMX) PWM problem
Replies: 21
Views: 11593

Re: RS485 (DMX) PWM problem

Hello Wayne The LCD print routines are fairly slow so this could be causing the delays. That is why I suggested using the LEDs for troubleshooting as they will only require a couple of instruction cycles. Maybe also try reducing the timeout for the RS232 receive and making sure that the receive is c...
by Benj
Fri Sep 05, 2008 1:38 pm
Forum: Flowcode V2 & V3
Topic: RS485 (DMX) PWM problem
Replies: 21
Views: 11593

Re: RS485 (DMX) PWM problem

Hello Errors such as framing errors are detected and dealt with on the UART without the users knowledge. If you wanted to flag if the UART is receiving the framing errors then you could add a bit of code to the RS232 C code file inside the receive function to set / clear an output pin or something s...
by Benj
Fri Sep 05, 2008 11:13 am
Forum: Flowcode V2 & V3
Topic: GLCDs
Replies: 28
Views: 16631

Re: GLCDs

Hello

Ok I have ironed out the print string bug now too. Hopefully this should all be ok now. Let me know if there are any more bug spots.
by Benj
Fri Sep 05, 2008 9:33 am
Forum: Flowcode V2 & V3
Topic: GLCDs
Replies: 28
Views: 16631

Re: GLCDs

Hello Mikat I will look into the string problem for you as it should only print out the data held in the string. As for adding the degree sign. Have a look in the custom code .c file for the ASCII data array. Simply choose an ASCII character that you are unlikley to use and edit the data so that you...
by Benj
Thu Sep 04, 2008 12:24 pm
Forum: Flowcode V2 & V3
Topic: RS485 (DMX) PWM problem
Replies: 21
Views: 11593

Re: RS485 (DMX) PWM problem

Hello Wayne

Do you have access to a multimeter or an ossciloscope to test the voltages on the pins. This will make sure that your level converter chip is working as expected.
by Benj
Thu Sep 04, 2008 11:44 am
Forum: Flowcode V2 & V3
Topic: GLCDs
Replies: 28
Views: 16631

Re: GLCDs

Hello

Sorry I have spotted the bug and fixed the problem in the C code driver. Attached is the updated C code file.
by Benj
Thu Sep 04, 2008 9:34 am
Forum: Flowcode V2 & V3
Topic: Fading LED
Replies: 21
Views: 14797

Re: Fading LED

Hello Sorry by presetting the LED brightness I meant giving the LED PWM variables values Eg LED_Brightness = 0 LED_Brightness2 = 255 Before the decision in the timer0 interrupt service routine was making this decision. LED_Count > LED_Brightness //When LED brightness and LED count are 0 the decision...
by Benj
Thu Sep 04, 2008 9:27 am
Forum: General / Misc
Topic: Flowcode 3 demo - 16F627 Missing??
Replies: 3
Views: 3449

Re: Flowcode 3 demo - 16F627 Missing??

Hello Allan

Yes we have a danish retailer - http://www.eekit.dk/

The 16F627 is not part of the free demo version of Flowcode. You must buy a license for the full range of chips.
by Benj
Wed Sep 03, 2008 9:16 am
Forum: Flowcode V2 & V3
Topic: Fading LED
Replies: 21
Views: 14797

Re: Fading LED

Hello

Please can you try the attached program. It should allow for the LED to be turned off (PWM of 0) without still glowing slightly. Before the LED was getting switched on at index 0 but now the LED should remain off for index 0 if the preset pwm control is configured to 0.
by Benj
Wed Sep 03, 2008 9:12 am
Forum: Flowcode V2 & V3
Topic: RS485 (DMX) PWM problem
Replies: 21
Views: 11593

Re: RS485 (DMX) PWM problem

Hello Wayne Seems strange that your not receiving anything. Could it be something simple like the RS232 tx and rx connections connected the wrong way around. I have had a quick look at your program again and the RS232 does not use hardware flowcontrol so there should not be a problem getting the dat...
by Benj
Tue Sep 02, 2008 3:56 pm
Forum: Flowcode V2 & V3
Topic: 2 x 16 display
Replies: 1
Views: 2193

Re: 2 x 16 display

Hello Wayne How do you mean its gone wrong? Have you enabled the low voltage programming on your chip (PPP expert mode) as this can deactivate one of the PortB pins. also check the Jumper above the LCD is set to default and connected horizontally. Also a possibility that an IO pin on the chii has be...
by Benj
Mon Sep 01, 2008 9:25 am
Forum: Flowcode V2 & V3
Topic: Fading LED
Replies: 21
Views: 14797

Re: Fading LED

Hello

I have made some minor modifications to your program and both LEDs should be working as PWM now. Also the program should give a good indication of how to add more PWM output channels.
by Benj
Fri Aug 29, 2008 2:13 pm
Forum: Components (Comms)
Topic: SPI between two PIC
Replies: 5
Views: 6522

Re: SPI between two PIC

Ok let me know how you get on. I am fairly confident in the code but im afraid so far I have been unable to test it out.
by Benj
Thu Aug 28, 2008 3:52 pm
Forum: Components (Comms)
Topic: SPI between two PIC
Replies: 5
Views: 6522

Re: SPI between two PIC

Hello I have modified the custom_code file you have created to configure the SSP1CON1 register with the following value 0b00100101; This disables the slave select pin so that the device is always ready to transmit or receive data, I have also added a function that will check for a received byte in t...
by Benj
Thu Aug 28, 2008 1:53 pm
Forum: Suggestions
Topic: User Interface TABS
Replies: 1
Views: 6439

Re: User Interface TABS

Hi Matt

This functionality will be available in Flowcode V4 when it is released.
by Benj
Thu Aug 28, 2008 11:18 am
Forum: Flowcode V2 & V3
Topic: RS232 interrupt example
Replies: 1
Views: 2114

Re: RS232 interrupt example

Hello Wayne

Depends which interrupt you are wanting to use. The basic set of interrupts should work without problems.
by Benj
Thu Aug 28, 2008 11:18 am
Forum: Flowcode V2 & V3
Topic: Error while compiling code
Replies: 1
Views: 2211

Re: Error while compiling code

Hello Eric

Any chance you can attach your Flowcode program and the generated C code file to the forum or send direct to me via email.
by Benj
Thu Aug 28, 2008 11:16 am
Forum: Flowcode V2 & V3
Topic: GLCDs
Replies: 28
Views: 16631

Re: GLCDs

Hello Mikat Ok I will look into the problem of the numbers being repeated. I did not notice this during testing. In the latest version of Flowcode 3.4.7 there is custom code 2 that can be used. Therefore you can have the onewire code in your program too by renaming one of the custom_code.c files to ...
by Benj
Thu Aug 28, 2008 9:56 am
Forum: Flowcode V2 & V3
Topic: USB of PIC 18F4550
Replies: 5
Views: 6258

Re: USB of PIC 18F4550

Hello

Im not sure if the external usb_defs file is needed. I have attached it here just incase.
by Benj
Thu Aug 28, 2008 9:53 am
Forum: C and ASM Programming
Topic: Integrating flowcode boostC to MPLAB IDE
Replies: 2
Views: 5480

Re: Integrating flowcode boostC to MPLAB IDE

Hello

Sorry you cannot directly use the BoostC compiler with MPLAB as it was specifically designed for use with Flowcode. However you should be able to use the Assembler code generated by the Flowcode BoostC compiler inside MPLAB.
by Benj
Thu Aug 28, 2008 9:31 am
Forum: Flowcode V2 & V3
Topic: Embedded c-code
Replies: 9
Views: 11692

Re: Embedded c-code

Hi Mark

Sorry my mistake, the variable was named slightly wrong in the C-code.
by Benj
Wed Aug 27, 2008 5:24 pm
Forum: General / Misc
Topic: Preferences button not vissible
Replies: 2
Views: 3200

Re: Preferences button not vissible

Hello Rinie The Switch component seems to be big enough not to experience this problem (at least on my machine) however the problem does exist with the LED component. Luckily if you click the far left hand side of the LED component at the top it will bring up the hidden menu. Good spot though, I'll ...
by Benj
Wed Aug 27, 2008 5:18 pm
Forum: Flowcode V2 & V3
Topic: Embedded c-code
Replies: 9
Views: 11692

Re: Embedded c-code

Hello The attached program should generate and display random numbers. Remember if your not sure how something is working then keep it as simple as possible (less to go wrong :lol: ). Also you will need to add the specific statement to the linker parameters in the Chip -> Compiler options menu menti...