Search found 429 matches
- Fri Jun 22, 2012 5:02 pm
- Forum: MIAC
- Topic: MIAC as cental heating programmer
- Replies: 41
- Views: 36439
Re: MIAC as cental heating programmer
Apologies for last post, I later found the MIAC Add-on Help file and it answered some of previous queries. It says the component does not simulate. That seems to include even loading the RTC with a time and reading it straight back again; it always reads as 00:00:00. Leaves though some queries:- 1) ...
- Mon Jun 18, 2012 12:47 pm
- Forum: MIAC
- Topic: MIAC as cental heating programmer
- Replies: 41
- Views: 36439
Re: MIAC as cental heating programmer
Tried to add the RTC module to Ben’s underfloor programmer. Some problems: 1) Does RTC increment time under simulation? Mine does not. 2) What is format of years? Years in bytes since 1990? 3) In the “Variables” box under simulation only shows about 30 variables and not the ones I really want like m...
- Thu Jun 14, 2012 2:57 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Don't worry too much. I can wait for a couple of months as long as am sure now that all parts of the A/D function other than this speed setting function are working fine.
- Wed Jun 13, 2012 3:11 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Benj wrote:
I will have a look into this and see if there is anything we can do about it. Might have to be a new section in the FCD to detail how this ADC setting is populated.
I know I said I didn’t have to have a fix but are you likely to release one?
- Thu Jun 07, 2012 9:28 pm
- Forum: MIAC
- Topic: MIAC as cental heating programmer
- Replies: 41
- Views: 36439
Re: MIAC as cental heating programmer
Hello, For the MIAC add-ons to work I think you must select the MIAC System as your target in the project options rather then just the MIAC. The MIAC System target is included with release update v5.2 which is hopefully on the way in the next few days. I have set up a simple RTC using the Flowcode ...
- Thu Jun 07, 2012 10:15 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Hello, You've probably already said but which device are you using and I will have an investigation. 18F14K22 but might also use the 18K13K22. For my current purposes OSC/4 or 64 seem to work so I possibly don’t need a fix. But I have a niggling doubt that as there is an apparent bug here that it m...
- Sun Jun 03, 2012 11:52 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
I find that when the datasheet is not being clear the best way is to experiment and find out for yourself what you can get away with. see how fast you can run the ADC before your readings start going a bit screwy or inaccurate. Very wise. I tried this and got the following results for every one of ...
- Fri Jun 01, 2012 11:28 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
ADC0 -> ADC_RAW_Configure_Channel Then call one of the following functions inside the interrupt routine depending on what resolution you require. ADC0 -> ADC_RAW_Sample_Channel_Int With your raw sample option it cuts my nominal 3 sec test loop from 17 real sec to 4.5. Using the options in the A/D s...
- Wed May 30, 2012 2:08 pm
- Forum: MIAC
- Topic: MIAC as cental heating programmer
- Replies: 41
- Views: 36439
Re: MIAC as cental heating programmer
Any update on this? I need something that will get a RTC connectedBenj wrote: Add-on expansion's are being manufactured and nearly ready, hopefully release them around June/July time.
- Wed May 30, 2012 11:53 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Hello, I wonder.... The ADC channel you are sampling in your interrupt. Are you regularly sampling any other channels in your program. If you are then not sure I can help much but if your not then I might be able to help speed up the ADC routines for you by removing the setup, pre-charge and cleanu...
- Tue May 29, 2012 11:59 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Excellent news, both your LCD fixes work at 64MHz. So hopefully this is the end of my clock problems. On the interrupt, in my simple test routine, if I enable the interrupts with the usual macro it calls, the LCD works OK with no corruption, but the LED flash speed has slowed down by a factor of 5. ...
- Tue May 29, 2012 5:21 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Please don't slow it down too much. It is already too slow to me (when working)! Do you have a view as to what the effect of an interrupt is on the new code? As reported elsewhere I have a TMR0 interrupt that might fire 100 times during one LCD clear or write routine. I previously found that this ca...
- Tue May 29, 2012 1:26 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
#ifdef _BOOSTC #define %a_DELAY delay_10us(20) #endif This should hopefully be enough to get the display working. Let me know how you get on. As I posted on Sunday I already tried that (unless there is some subtle difference between this code and that posted in viewtopic.php?f=29&t=10258&p=32636)an...
- Tue May 29, 2012 9:39 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
I wonder if one possible fix may be to change the OSCON to slower speed just before the LCD write and back up again at end. But: 1) Will the clock speed seamlessly change? 2) All the delays and other maybe vital timing info in the LCD code will be too slow as presumably can’t also reissue the line #...
- Mon May 28, 2012 11:41 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
I wonder if there is any issue with GLCD? At 64MHz if they do work then refreshing display should be nice a fast. I will check that out also. : Based on previous input from Ben I believe the LCD has to be written to quite slowly to work. That is probably true for GLCD as well as my text LCD. So the...
- Mon May 28, 2012 12:51 pm
- Forum: Flowcode V4
- Topic: LCD not working at frequence High speed
- Replies: 7
- Views: 6361
Re: LCD not working at frequence High speed
I have a similar LCD problem, see http://www.matrixmultimedia.com/mmforum ... 25&p=35439 . I can't get the solutions here to work for me.
- Mon May 28, 2012 12:07 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Have you noticed the PLL is only available for the internal 8/16 MHz frequencies (table 2-4 and figure 2-1)? I think that would explain what you are seeing in 1). Best regards, Jac Thanks, I see you are right. I had been confused by “If using a low-frequency external oscillator and want to multiple...
- Mon May 28, 2012 10:03 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
My understanding is that CLKOUT comes from before the PLL thus 1MHz is correct for 1).medelec35 wrote:Re 1)
Odd that LCD worked since clockout is = osc/4 it appears that PLL was not increasing fosc to 16MHz.
- Mon May 28, 2012 12:03 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
I added a LED as well as LCD as you suggest. Now 1) At 4Mhz (set wth OSCCON) x4 for PLL(set wth PPP) = 16MHz: LCD works even if I slow down the delays as in http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=10258&p=32636 . CLKOUT is 1MHz. But LED flash rate is 4 times too slow. 2) At 8Mh...
- Sun May 27, 2012 12:10 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock misset
Setting OSCON gets the frequency right for 16Mhz and below. But there are still a number of clock problems. 1. If I increase the clock speed above 16MHz using the PLL the LCD will not display characters at all even if I delete all other code and just have a print Hello command and a delay loop. It’s...
- Tue May 22, 2012 11:56 pm
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
Clearing the LVP cures it thanks. Only problem is that CLKOUT frequency is only 250KHz measured on 'scope when it should be Internal Oscillator/4 = 4MHz, or 16MHz if PLL is in the CLKOUT circuit, but I assume it is not. What is going on there? Maybe oscillator is not really 16MHz as intended, plus 4...
- Tue May 22, 2012 11:29 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
I need 64Mhz i.e. 16Mhz internal or external oscillator and PLL set by PPP.
Do I enter 64Mhz or 16Mhz in the menu and do I have to write this bit of C code for the PLL or has Flowcode done it for me? If I need to, what is the Code?
Do I enter 64Mhz or 16Mhz in the menu and do I have to write this bit of C code for the PLL or has Flowcode done it for me? If I need to, what is the Code?
- Tue May 22, 2012 9:37 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Re: Clock will not start
You could be right, will try it later. I have an LCD connected to the LVP pin so it’s not actually floating but the LCD could be forcing it high. The time I had it vaguely working may have been before the LCD was plugged in. I am using PPP and a PICKit 2 to programme. What Flowcode generated file ar...
- Tue May 22, 2012 12:00 am
- Forum: Flowcode V5
- Topic: Clock will not start
- Replies: 46
- Views: 25119
Clock will not start
I have switched my code/hardware from a 16F690 to a 18F14K22. No real changes apart from config file. Can not get the clock to start no matter that oscillator configuration I use: internal, HS, clock out or not, 1 or 16MHz, PLL on or off, Primary Clock Enable on or off, 2 different PIC samples, with...
- Mon May 21, 2012 10:38 am
- Forum: Flowcode V5
- Topic: PIC Errata sheets
- Replies: 3
- Views: 3069
Re: PIC Errata sheets
My impression of Microchip is that they rush out impressive product after product to the market with little QA going on, so there are numerous things that don’t work very well. Although they do release bug fixes, e.g. new versions of the silicon, they don't clear all the problems and it looks as if ...