If this real time is then resettable, you set a break point and time to zero at the start of a loop, and set a break point at the end of a loop,
and real time is displayed how long loop to take to complete
Search found 7716 matches
- Thu Feb 05, 2009 10:43 pm
- Forum: Suggestions
- Topic: Display real elapsed time.
- Replies: 0
- Views: 8238
- Thu Feb 05, 2009 4:25 pm
- Forum: General Programming
- Topic: PWM & Osc Frequency issues with 16F737
- Replies: 4
- Views: 4866
Re: PWM & Osc Frequency issues with 16F737
Thank you for your fast responce. Your solution did work. one minor correction osccon = 0x70; = 8MHz osc. and osccon = 0x60; = 4MHz osc. Is there a answer to 'Also is there a simple way of displaying SFR’s and values in flowcode simulator?' please. Would it be a good idea for a future flowcode upd...
- Thu Feb 05, 2009 2:40 pm
- Forum: General Programming
- Topic: PWM & Osc Frequency issues with 16F737
- Replies: 4
- Views: 4866
PWM & Osc Frequency issues with 16F737
I am probably missing something basic. My problem is I have set PWM at a frequency of 5KHz on a 16f737 with a clock (using internal clock ) frequency of 4MHz. This gives a period time of 200 microseconds. Flowcode simulator is displaying correct frequency and PWM. When chip is programmed (config 1 =...
- Wed Feb 04, 2009 6:51 pm
- Forum: General Programming
- Topic: Problem with entering two config settings for 16F737
- Replies: 2
- Views: 3413
Re: Problem with entering two config settings for 16F737
Great. Thanks for file. It now saves both configs.
- Tue Feb 03, 2009 9:58 pm
- Forum: General Programming
- Topic: Problem with entering two config settings for 16F737
- Replies: 2
- Views: 3413
Problem with entering two config settings for 16F737
I am having a problem with entering two config settings at address 0x2007 and 0x2008 Chip, config window. I have entered: 0x2007,0x3F98 0x2008,0x3FBD Then when I re-open configure box in flowcode, all that is shown is: 0x2007,0x3f98 also in expert config menu of ppp, only one address is shown for 16...
- Fri Jan 30, 2009 7:19 pm
- Forum: Components (Other)
- Topic: Help required running two PWM channels
- Replies: 19
- Views: 14802
Re: Help required running two PWM channels
You have made it easier to understand. Reason I was confused is I was looking and ADC Controlled PWM ,but had set the target chip for a chip which has only one PWM channel. So I wrongly thought you needed x and Y for each PWM. So I wrongly thought for two PWM channels, I will need: 1,dutyx + 2dutyy ...
- Fri Jan 30, 2009 1:05 pm
- Forum: Components (Other)
- Topic: Help required running two PWM channels
- Replies: 19
- Views: 14802
Help required running two PWM channels
I am a bit stuck with running two PWM channels. Target chip is 16F73. When I click on PWM icon PWM(0) appears at to left corner of dual display window. If I then click properties and label both PWM1 and PWM2, these labels both appear below each box of dual display window. The problem I have is when ...
- Wed Jan 28, 2009 5:47 pm
- Forum: Flowcode V2 & V3
- Topic: ADC Controlled PWM Only Works in Flowcode
- Replies: 5
- Views: 5453
Re: ADC CONTROLLED PWM ONLY WORKS IN FLOWCODE
Thank you Steve. I can see the logic in what you are saying. In the original program posted I should of sampled ADC0 then read as byte, stored as variable ADC0X Then sampled ADC1 then read as byte, stored as variable ADC1X But I am asking adc channel to be read twice when only once is necessary as i...
- Wed Jan 28, 2009 11:48 am
- Forum: Flowcode V2 & V3
- Topic: ADC Controlled PWM Only Works in Flowcode
- Replies: 5
- Views: 5453
Re: ADC CONTROLLED PWM ONLY WORKS IN FLOWCODE
Hardware is now working! :P Thank you for suggestions. Changing config to 30D4 did not solve problem, I did try that 1st, but programmer just changed config back to 00D4 Problem was as stated in previous post. ADC0 was stored at 0x29, then ADC1 was also stored at 0x29. This register was then used to...
- Tue Jan 27, 2009 6:04 pm
- Forum: Flowcode V2 & V3
- Topic: ADC Controlled PWM Only Works in Flowcode
- Replies: 5
- Views: 5453
Re: ADC CONTROLLED PWM ONLY WORKS IN FLOWCODE
I believe I worked out why Flowcode simulator is working, but actual hardware code is loaded into does not. Studying asm file that was compiled by flow it looks like several different variables are assigned to the same address i.e. 0x29 In this case both ADC0 and ADC1 plus quiet a few different vari...
- Mon Jan 26, 2009 7:41 pm
- Forum: Formula Flowcode
- Topic: Flowcode installation
- Replies: 3
- Views: 8936
Re: Flowcode installation
I also had a fatal error when installing on to PC with vista.
I got round problem by right clicking in install file, then selecting Run as administrator.
Installed 100% OK.
I got round problem by right clicking in install file, then selecting Run as administrator.
Installed 100% OK.
- Mon Jan 26, 2009 5:04 pm
- Forum: Flowcode V2 & V3
- Topic: ADC Controlled PWM Only Works in Flowcode
- Replies: 5
- Views: 5453
ADC Controlled PWM Only Works in Flowcode
This is how software works in flowcode: Start: A5 and A3 not pressed, Normal and boost ADC set on min, Duty cycle = 10% & A4 LED remains off Vary Normal ADC; duty cycle varies between 10% (ADC0=1%) and 42% (ADC0=100%) Vary Boost ADC; duty cycle not affected. A5 pressed. Vary Boost ADC; Duty cycle va...
- Fri Jan 23, 2009 9:21 am
- Forum: Flowcode V2 & V3
- Topic: Running ADC Controlled PWM from Flowcode Examples
- Replies: 4
- Views: 5501
Re: Running ADC Controlled PWM from Flowcode Examples
Update. I Have worked out how to make PWM Duty% = ADC% Since percentage adjustment ( or ratio) is required. Using Formula: ADC% / Duty% = Req% adjustment ADC%/Duty% = x / 100 = Req% adjustment Transposing for x x = ADC% * 100 / Duty% Therefore if Pot is turned so ADC% = 50 and Duty cycle = 64% using...
- Thu Jan 22, 2009 7:50 pm
- Forum: Flowcode V2 & V3
- Topic: Running ADC Controlled PWM from Flowcode Examples
- Replies: 4
- Views: 5501
Re: Running ADC Controlled PWM from Flowcode Examples
Thank you for answering 1st question. Is there an advantage to switching ADC off then straight-back on, rather then then just keep re-sampling ADC without changing to digital state, since latter works well in practice?
- Thu Jan 22, 2009 3:01 pm
- Forum: Flowcode V2 & V3
- Topic: Running ADC Controlled PWM from Flowcode Examples
- Replies: 4
- Views: 5501
Running ADC Controlled PWM from Flowcode Examples
Sorry if questions are basic, I have not been using flowcode Pro for long. Change Chip to p12f683 wanted PWM frequency at 5KHz Set: clock speed to 4MHz. Clock source to clk/1 period register Compile to hex load complied hex into a simulator Within simulator ran scope on port a,2 When simulator runni...
- Sat May 05, 2007 2:58 pm
- Forum: Flowcode V2 & V3
- Topic: Port bit test during a time delay
- Replies: 1
- Views: 2778
Port bit test during a time delay
Running Flowcode V3 with 12F675. I have the following working routine: Read ADC channel 0 (0 to 255) Convert ADC to time delay (1 to 10 Min's) Run macro A Start again. I would like to know how to do bitwise test of a port (it Could be a port without an interrupt) during timing period, and if port is...