Search found 209 matches

by mikn
Mon May 26, 2014 12:42 am
Forum: Flowcode V6
Topic: Config settings for ADC
Replies: 8
Views: 5608

Re: Config settings for ADC

It's easier for me as I have working hardware with another firmware. Chip is pic24fj. Just wondering if I am on the right way. Now I set up the timer to 8khz and capture the data with adc.GetByte function then write it to sd card as raw data. But the problem for me now is that when I set timer frequ...
by mikn
Sun May 25, 2014 11:41 pm
Forum: Flowcode V6
Topic: Config settings for ADC
Replies: 8
Views: 5608

Re: Config settings for ADC

If I need to capture analog signal from the microphone at 16khz which settings should be better for the adc component?
by mikn
Sun May 25, 2014 4:24 pm
Forum: Flowcode V6
Topic: adc and pic24
Replies: 5
Views: 5361

Re: adc and pic24

Some more troubles.
I've added cal_adc to my project.
Pressed twice on current macro block, changed it from adc_base.getbyte to cal_adc.sample.
Then when I press to field Sample I get error and FC closes.
sc-adc-dead1.GIF
sc-adc-dead1.GIF (18.79 KiB) Viewed 5335 times
sc-adc-dead.GIF
(106.71 KiB) Downloaded 598 times
by mikn
Sun May 25, 2014 1:42 am
Forum: Flowcode V6
Topic: adc and pic24
Replies: 5
Views: 5361

adc and pic24

Hi When I set interrupt frequency to 8khz and use adc base to catch analog input then save it to file, it works. But when I try to set interrupt to more frequent value (16khz or faster) it reboots the controller. Even I am not using save to file function (just accumulate values and calculate the ave...
by mikn
Fri May 23, 2014 1:48 am
Forum: Flowcode V6
Topic: Flowcode v6.0.7 Live
Replies: 9
Views: 7409

Re: Flowcode v6.0.7 Live

kersing wrote:There is only one 6.0.7 release, so it is 100% the same. Its availability was not announced on the forum, that has now been corrected.
Understand now. Well then we're waiting for 6.0.8 :) Since a lot of bugs were fixed according to forum posts.
by mikn
Thu May 22, 2014 11:01 pm
Forum: Flowcode V6
Topic: Flowcode v6.0.7 Live
Replies: 9
Views: 7409

Re: Flowcode v6.0.7 Live

Does current 6.0.7 contain new bug fixes found since it was published first time 2 months ago?
by mikn
Mon May 19, 2014 9:06 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Hello, The max baud with software mode is therefore currently fixed at around 500Kbps yet significantly faster than the previous 1.9Kbps. Tested with same Atmega168 at 8mhz (without CKDIV) and i2C at 1mhz Software mode. Wrote pages by 128 bytes 4000 times . It took around 60 seconds to write the me...
by mikn
Thu May 15, 2014 5:25 pm
Forum: Flowcode V6
Topic: Think i have found the Base Timing Bug ...
Replies: 11
Views: 8032

Re: Think i have found the Base Timing Bug ...

SHORTCIRCUIT wrote: Just about when is the next release due to be released?
+1
Also waiting for new release with bug fixed. No need for new features while there are so many current bugs. :-(
by mikn
Wed May 07, 2014 5:52 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Thanks, Benj! I will test them on Monday and report here if there will be any issues.
by mikn
Tue May 06, 2014 6:48 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Benj wrote:The pins in hardware mode should not be configurable
External memory is located on C0/C1 pins, but hardware channel1 is C4/C5. In software it's very slow and I'm wondering how does original firmware work fast as usual?
by mikn
Tue May 06, 2014 1:43 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

The difference between your and mine project is that you create it by yourself and I have already running hardware with another firmware and just change the firmware to my version. So I am 100% sure the hardware works ok. Just need to sort up the software part. I hope Matrix will do the update soon....
by mikn
Mon May 05, 2014 9:36 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

I've tried this already but it didn't help. Still waiting for the news from Matrix. This project is stuck on the last step with FAT.
Other project is stuck with I2C pin remap, same problems.
:-(
by mikn
Sat Apr 26, 2014 7:47 am
Forum: Flowcode V6
Topic: Clock speed
Replies: 11
Views: 6111

Re: Clock speed

Thanks. Changed fuses during programming in Codevision and it depends on them. However if I change config in FC and program it, it doesn't play any role. Will wait for FC update. Hope they will fix this.
by mikn
Fri Apr 25, 2014 12:51 pm
Forum: Flowcode V6
Topic: Clock speed
Replies: 11
Views: 6111

Re: Clock speed

both enabled and disabled ckdiv8 bit doesn't play any role, nothing changes. medelec35, I program firmware with codevision's tool. Anyway I could not speed up the uart port at least to 9600. 4800 was the maximum. Also I can't initialize memory chip on i2c Ch1. Only software mode. It's ok for me even...
by mikn
Thu Apr 24, 2014 11:23 pm
Forum: Flowcode V6
Topic: Clock speed
Replies: 11
Views: 6111

Re: Clock speed

Yeah, I tried most of settings from 128khz to 8mhz. Changed clock speed also to different values. Played with CKDIV8 bit. Also changed UART speed from 1200 to 57600. The only stable config is Int. 8mhz / Clock speed 1mhz / UART speed 1200bps. All other sets of settings either won't run or give unrea...
by mikn
Thu Apr 24, 2014 10:39 pm
Forum: Flowcode V6
Topic: Clock speed
Replies: 11
Views: 6111

Re: Clock speed

Sounds to me like the internal osc is not running at the correct speed of 8MHz? Hm. Do you think I need to do some additional operations to run atmega168 at 8mhz rather than just setting it in Config tab? It's not so smart chip if compared to pic24f where I've got same problems. What config can you...
by mikn
Thu Apr 24, 2014 9:57 pm
Forum: Flowcode V6
Topic: Clock speed
Replies: 11
Views: 6111

Clock speed

I've got atmega168 running with int. oscillator at 8mhz but to have normal 1s delay I need to set Clock speed in General optons to 1mhz. When I set clock speed to 8mhz as it must be I meet problems with UART speed, on bitrate over 1200bps I have unreadable symbols. When I set back to 1mhz, everythin...
by mikn
Wed Apr 23, 2014 5:59 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Any updates?
by mikn
Wed Apr 23, 2014 5:27 pm
Forum: Flowcode V6
Topic: array index not showing
Replies: 0
Views: 1805

array index not showing

Hi, Just a small bug with array index in flowcode. When I use arrays in While loops, it shows me only array name in expression and not name with index. But when I use some calculation in expression, it shows ok. Don't know if it's a feature. Looks like a bug. Screenshot is below. I use buf in first ...
by mikn
Wed Apr 16, 2014 5:04 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Any news on these issues? I've bought FC Pro version for a month ago, almost finished with two projects but can't complete them because of these two issues with fat and i2c pin remaps. :? Do you have any support channel where we can talk closely and do fix-test-fix-test rounds to get this running? T...
by mikn
Mon Apr 14, 2014 12:32 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Benj, Don't know if it matters or not, but same problem I've met with cal_i2c component. Chip is Atmega168 running at 8mhz internal RC. While I work in Software mode with PortC0 and PortC1 pins, it works and connects to external eeprom but it reads memory with big delays (around 1byte per 200ms). Wh...
by mikn
Fri Apr 11, 2014 11:28 am
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Now it's passing by and rotating in the loop "while retval>0". Changed two cards, none of them was initialized. Also lots of warnings: D:\flowcode\PIC24T~1>pic30-gcc -c -mcpu="24FJ64GA002" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~2\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGR...
by mikn
Thu Apr 10, 2014 3:28 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

The whole project is big, so I left only the problem place. Here's the code:
by mikn
Wed Apr 09, 2014 5:40 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Which looks correct. Hope that helps.
But it doesn't work anyway. In Software mode - it's ok. In Channel1/2 with same pins - doesn't work. What's wrong?
by mikn
Tue Apr 08, 2014 9:51 pm
Forum: Flowcode V6
Topic: FAT: faster way to write data
Replies: 76
Views: 40910

Re: FAT: faster way to write data

Benj, any news on this issue?

Reviewed the generated C code. Isn't it a mistake with remappable pins? According to datasheet of my pic, RPs must be different.