Search found 7716 matches

by medelec35
Mon Apr 05, 2010 7:44 pm
Forum: Components (Other)
Topic: EVERBOUQUET - MC1604B-SBLW - LCD MODULE
Replies: 12
Views: 16932

Re: EVERBOUQUET - MC1604B-SBLW - LCD MODULE

You can still program via pickit2 with LVP disabled, since pickit2 can generate a high enough voltage to program in normal mode via ICSP. If you want to program in LVP mode on EB006, you need to move lower right jumper (LVP jumper) and USB/PSU jumper. Then you need to be careful since your supply fo...
by medelec35
Mon Apr 05, 2010 2:08 pm
Forum: Components (Other)
Topic: EVERBOUQUET - MC1604B-SBLW - LCD MODULE
Replies: 12
Views: 16932

Re: EVERBOUQUET - MC1604B-SBLW - LCD MODULE

8) Glad you now have a working LCD. Thanks for letting us know :)
by medelec35
Mon Apr 05, 2010 2:01 pm
Forum: Flowcode V4
Topic: Timer
Replies: 5
Views: 3851

Re: Timer

If you already used timer0, you know the frequentie on witch this timer0 works. That is a good point! You said your already using int0, here is how you can utilise timer 0 to have a 2, 3 and 5 minute timer simultaneously. I have also included a Minute variable to set for how ever minutes you like. ...
by medelec35
Sun Apr 04, 2010 8:18 pm
Forum: Flowcode V4
Topic: Programm size ?
Replies: 3
Views: 2901

Re: Programm size ?

You ran out of memory because of 7 lots of float variables, and two lots of string with 20 chars reserved. Floats variables take up If you can use bytes of int instead of float that will help, unless you require precision of float. You can reduce the string size from the default 20 if 20 are not nee...
by medelec35
Sun Apr 04, 2010 9:44 am
Forum: Components (Other)
Topic: EVERBOUQUET - MC1604B-SBLW - LCD MODULE
Replies: 12
Views: 16932

Re: EVERBOUQUET - MC1604B-SBLW - LCD MODULE

How do ypu Disable LVP ? Steve From top menu. Select 'Chip' 'Configure..' Then on new window that appears click on 'Switch to expert config screen' Change setting on 'Low Voltage Program. LVP is only used if not using an external power supply and only using usb connection. After you have disabled L...
by medelec35
Fri Apr 02, 2010 10:43 pm
Forum: Components (Other)
Topic: EVERBOUQUET - MC1604B-SBLW - LCD MODULE
Replies: 12
Views: 16932

Re: EVERBOUQUET - MC1604B-SBLW - LCD MODULE

Could it be you have LVP enabled in your configuration , which uses RB3. You have also got your LCD connected to port B which also includes RB3. So you need to disable LVP or change port your LCD is connected to. Also D0 to D3 of your LCD hardware should not be connected, only D4 to D7 is connected ...
by medelec35
Fri Apr 02, 2010 8:45 am
Forum: Flowcode V4
Topic: Timer
Replies: 5
Views: 3851

Re: Timer

Interrupts are used for a timer if your program is required to do other things whilst timing is carried out. If you want a 5 minute non-interrupt timer, so program justs waits until time period has elapsed then try this way: http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=26&t=6967 If it wa...
by medelec35
Wed Mar 31, 2010 8:20 pm
Forum: MIAC
Topic: MIAC Volt Meter
Replies: 6
Views: 8882

Re: MIAC Volt Meter

Errr...can we work around the computations to get another digit? I want to get figures like 1.234 volts? I have done that for you and I have changed resolution from 8 bit to 10 bit and used 79.872 as a value in the calculations. The only purpose of doing all of these is to demonstrate how it is ach...
by medelec35
Wed Mar 31, 2010 5:30 pm
Forum: MIAC
Topic: 10 Bit Resolution
Replies: 4
Views: 6763

Re: 10 Bit Resolution

Thanks Sean. That is very useful information!
by medelec35
Wed Mar 31, 2010 12:16 pm
Forum: MIAC
Topic: 10 Bit Resolution
Replies: 4
Views: 6763

Re: 10 Bit Resolution

Thanks Ben. I worked out min resolution is approx 12.5mV (1/80). That’s why min resolution of 20mV did not make sense. What you say about the amplifiers sounds logical and thanks for correction to 12.46mV. (I was not that far out :P )
by medelec35
Tue Mar 30, 2010 6:48 pm
Forum: MIAC
Topic: 10 Bit Resolution
Replies: 4
Views: 6763

10 Bit Resolution

Data sheet covers 8 bit ie Analogue conversions Analogue conversions have a resolution of 50mV (20 counts per Volt). This allows simple calculations to be used to convert the results of an analogue sample into a direct voltage representation - simply divide the input by 20. Analogue conversion of in...
by medelec35
Sun Mar 21, 2010 7:04 pm
Forum: MIAC
Topic: Accurate ( well fairly :p )Low frequency counter
Replies: 1
Views: 3851

Accurate ( well fairly :p )Low frequency counter

Frequency range approx 0 - 8KHz (only for an i/p of approx 200 mV - 1.5V at 6000Hz display is within 10Hz If using 1.6V or above then max recommended frequency is 4KHz. Testing with real hardware, Lower frequencies are more accurate. At the mid end e.g 4KHz display shows 3998 Hz Just press Red key t...
by medelec35
Sat Mar 20, 2010 8:02 pm
Forum: Flowcode 4 Suggestions
Topic: Message Box "Simulation has ended"
Replies: 5
Views: 4694

Re: Message Box "Simulation has ended"

If there is a reason why you must show this box, let it dissapear within 3 seconds or so. It does Disappear automatically after about 4 seconds with V4.2.3.58. This was first sorted with version v4.1.1.55 Installation version = 4.1.1 ---------------------------- Release date = 14th August 2009 Flow...
by medelec35
Wed Mar 17, 2010 7:04 am
Forum: Flowcode V4
Topic: Timing issues using HitechC as a compiler
Replies: 3
Views: 2709

Re: Timing issues using HitechC as a compiler

I believe these chips will require a C box with OSCCON set for correct internal osc speed I think it will be osccon = 0x3E;. Only problem is the max internal osc speed is 16MHz. So the clock speed in flowcode must also be set for 16MHz, not 20 MHz hence timing issues. So I'm surprised the timing was...
by medelec35
Mon Mar 15, 2010 4:07 pm
Forum: Flowcode V4
Topic: Watchdog Time-out.
Replies: 4
Views: 2511

Re: Watchdog Time-out.

Also, putting the clrwdt into the ISR for a timer interrupt might actually negate any benefit from having the watchdog on. Your main-loop code could still get "stuck" somewhere. The ISR would then keep firing periodically, but would always jump back to the same stuck point. Thanks Steve. That’s a g...
by medelec35
Mon Mar 15, 2010 1:47 pm
Forum: Flowcode V4
Topic: Watchdog Time-out.
Replies: 4
Views: 2511

Re: Watchdog Time-out.

Ben, Thanks for your reply. Do you mean add clear_wdt(); to the start and end of interrupts, If so, already did that before posting. Or do you mean reset something else?
Not quiet sure what you ment. Sorry
by medelec35
Mon Mar 15, 2010 11:36 am
Forum: Flowcode V4
Topic: Watchdog Time-out.
Replies: 4
Views: 2511

Watchdog Time-out.

With ‘Auto clear watchdog’ selected and a quiet a few clear_wdt(); C boxes. I have also added option_reg = 0x4F; //Enable port B weak pull-ups and set WDT prescaler at 1:128 at the beginning. But still Flowcode resets every so often (47 resets in 2 hours) I have noticed that increased port B interru...
by medelec35
Sun Mar 14, 2010 11:21 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

Depends on how programmer will work. Normally to program a micorontroller, MCLR/Vpp has to be raised to about +13V. Usually if just usb there is a pump charge circuit, which takes 5V from USB and converts to +13V. Other programmers have a separate 13V supply which has to be plugged in. So if your pr...
by medelec35
Sun Mar 14, 2010 11:08 pm
Forum: Flowcode V4
Topic: Synchronious servo throttle control
Replies: 3
Views: 2317

Re: Synchronious servo throttle control

This C code might work.Not tried it my self. Just place C code block before Read ADC. This code was suppose to be used with Flowcode V3 in place of sample ADC. Since Flowcode V4 does not have sample, perhaps someone who would know if this or a different Solution word work? char ta, te, cnt; adcon1 =...
by medelec35
Sat Mar 13, 2010 8:28 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

The last two don't really matter. The LVP uses RB3 to program chip. So you are tying up a pin since if use for LVP, can't be used for general use. this makes programs more difficult to develop. Best to use HVP. There are plenty of references around about LVP and brown out etc. Glad your up and runni...
by medelec35
Fri Mar 12, 2010 10:51 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

I'm no expert, but it looks to me like your programmer config is overwriting the config within the hex file. E.g LVP and Debug should be off. It also looks like your watchdog timer is enabled so that should be unselected as well, otherwise If you not got a several c code icons with with clear_wdt();...
by medelec35
Fri Mar 12, 2010 9:00 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

scorpy77 wrote: did u have a look at screen shots of programmer configuration window? i also sent u the config details for the programmer.

Best Regards.
Can't see any screen shots or attachments.
Nothing in my inbox either.
Can you also upload the the circuit + component values you are using please.
by medelec35
Fri Mar 12, 2010 7:39 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

Loaded your hex in mplab, and config data is definitely being saved, and is correct. So either is down to your programmer, or go with what Ben suggested and change oscillator setting. But that would not account for the config warning message. Can you borrow a different programmer to try? Also is you...
by medelec35
Fri Mar 12, 2010 4:42 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

When i load the file into the programmer it gives me a message no configuration word in hex file. do i have to manually enter the code for clock etc? . This is the bit that appears to be the issue. The config settings are not being transferred to the programmer. You can always try the following: Go...
by medelec35
Thu Mar 11, 2010 8:04 pm
Forum: E-blocks
Topic: Want to use different programmer
Replies: 28
Views: 13476

Re: Want to use different programmer

quote="scorpy77"]When i load the file into the programmer it gives me a message no configuration word in hex file. best regards.[/quote] If using flowcode V3 then install ppp 1st go to chip menu then select compiler options. (just as a once off, click on ''Restore Defaults') Then make sure 'Use exte...