Search found 252 matches

by Mikat
Tue Feb 21, 2012 9:53 pm
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6259

Re: Help for the fat component on dsPIC

Ok. As usually, the problem was between the keyboard and the seat :P . I tested the slower spi speed yesterday, but then I notice thet there was old pwm component, which drives the 20KHz pwm at the cs pin, after I fixed that, I didn't remember that I play with the spi speed setting, and the fullspee...
by Mikat
Tue Feb 21, 2012 3:50 pm
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6259

Re: Help for the fat component on dsPIC

Hi.

The version of flowcode dsPIC is 4.4.13.69, and the hw is my own, spi at spi1 and cs at portD0, the level shifting is done at 680/1k resistor divider, and signal looks nice...
The fat init nicely every time after I lowered the handshaking spi speed (the chip is running at 100MHz :) )...


Mika
by Mikat
Tue Feb 21, 2012 10:09 am
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6259

Help for the fat component on dsPIC

Hi. I am trying to get fat component working at the PIC30f6012A, but I can't get it workig. I have 2 cards Canon 32Meg and Kingston 512Meg, the fat init fine with both cards and opens the root folder, but then I got rootfull error (0xEE) if try to create file and file not found error (0xEF) if I try...
by Mikat
Mon Feb 20, 2012 4:40 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Ok, little more research about the masks and filters.. For some reason it seems the the CAN component code don't write the mask and filter data, it seems that there is always last via c code written data or default values, if I set the mask and filter manually via code block, those works just fine, ...
by Mikat
Sun Feb 19, 2012 8:59 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Hi all. Little update for the component. Here is "new" version of the 16bit ssd1289 component, it has fixed bug for invert color print, and the port config allows now all configuration between one 16 bit wide to 1/15 and 15/ bit,all what it need is set 2 variables at the program start... The Port_hi...
by Mikat
Sun Feb 19, 2012 9:40 am
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Hi. Are you sure that you program runs fine? Because if I use that interrupt, my program hangs completely when the interrupt are called first time.... Does the mask and filters work with you? I can set both buffers to reject all messages, and still the messages goes at the buffer, like the filters a...
by Mikat
Thu Feb 16, 2012 8:35 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

No.
My pcb:s will arrive probably next week, then I can test the can with 30f devices...

Mika
by Mikat
Thu Feb 16, 2012 6:43 am
Forum: Flowcode V4
Topic: delays for nano seconds?
Replies: 12
Views: 5939

Re: delays for nano seconds?

Checked it benj, all woking fine except for the pulse delay is in milliseconds when i hook it to scope. I am trying to get 2 pwms 180 degrees out of phase. how can i invert the pwm? In hardware pwm you need eccp module and set the register via c-code, if you want full or half bridge configuration, ...
by Mikat
Tue Feb 14, 2012 9:52 am
Forum: Flowcode V4
Topic: delays for nano seconds?
Replies: 12
Views: 5939

Re: delays for nano seconds?

Hi.

Isn't that easier done at hardware pwm?
At dsPic30f you can get 300KHz pwm at 1% resolution ( I am not an expert, but is there any reason to use very high switching frequency, it just rises the switching loss)...

Mika
by Mikat
Sun Feb 12, 2012 6:22 am
Forum: Flowcode V4
Topic: delays for nano seconds?
Replies: 12
Views: 5939

Re: delays for nano seconds?

other members please correct me if im wrong, i dont think you can because of the clock speed limitations, at 32 Mhz clock it takes 1 microsecond to turn a output on and off, at 4Mhz it takes 8 microseconds thats straight time without any delays Yep, Brandon are right, but you can have 1 instruction...
by Mikat
Wed Feb 08, 2012 6:11 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Just check little bit at your code. Did you check the msg ID only the led at bits 0-3? Because when you set the id low at 33 your sent code, that is actually msg id 1 because the matrix code takes 3 msb at the id lo so the values are 1= 32=2,64,3=96 etc.. So far so good, that goes through the filter...
by Mikat
Tue Feb 07, 2012 6:38 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Ok.

I et my pcb:s probably at the next week, before that I can't test anything..
By the way, you say that you have can bus logic analyzer, does that show the id right?
So is the id right in the can bus, but not at the receive end?

Mika
by Mikat
Tue Feb 07, 2012 5:33 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Hello, Maybe you could try using check rx with the parameter 1 instead of 0. In your CAN component properties buffer 1 is set to accept all messages whereas buffer 0 only accepts two unique IDs. Not sure why the data is coming through correctly at the moment though. Agree with that, it's easier to ...
by Mikat
Fri Feb 03, 2012 7:39 am
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

I am checking the ID by a logic analyzer with CAN reading . I am able to read the data, but the RX ID low always = 0 So the id_lo is always 0 at the can bus, not just the software at the rx end? How about the id_hi. Yep looked the set tx id code, and it seems that it goes wrong... Ben correct me if...
by Mikat
Thu Feb 02, 2012 12:45 pm
Forum: Flowcode V4
Topic: Can interrupt in dsPIC
Replies: 30
Views: 15486

Re: Can interrupt in dsPIC

Hi. Do you get any data at the msg id bits? Because the msg id is quite complicated, just look at you code, and it seems that you sent id_lo 33... If you receive id lo = 1, flowcode shows it id_lo value 32 and 2 64 etc... if you don't convert the data... But I don't remember anymore how exactly flow...
by Mikat
Fri Dec 30, 2011 8:42 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Okay, I promised you some video, so here is 30F4013 running tha code at 33MIPS......[/youtube]
And here some action with the touchscreen, 18F6680 @ 10MIPS...[/youtube]



Mika
by Mikat
Tue Dec 27, 2011 7:07 pm
Forum: Flowcode V2 & V3
Topic: Rally Computer
Replies: 28
Views: 24068

Re: Rally Computer

I didn't connect the reset pin on the lcd. You thinbk that maybe the problem? I think you will probably have to at least connect the reset pin to the +ve power rail for the display to work, otherwise it may simply sit in reset mode. Some models at KS108 displays are needs to connect the reset via 1...
by Mikat
Wed Dec 21, 2011 7:29 am
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Hello. Here is both of the custom components, the 8bit and 16bit. Unfortunately the 16bit works only at the devices which are pin to pin compatible at 30f4013, and connected data port b and d command port f(if I remember right, the port should be like my example/test file above)... The problem at 16...
by Mikat
Tue Dec 20, 2011 6:38 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Yep, maybe later, and maybe in the Tell us about your projects tread more about the tft, and the touchscreen, I update my projects there when I have time... But now the ssd1289 code works bot the 8bit and the 16 bit devices, but the 16bit are little bit problematic because the style of the ports... ...
by Mikat
Tue Dec 20, 2011 4:18 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Yep..
Id like to upload video but the board won't allow load the avi file....
But the text is the same which is in the earlier pictures, and the refresh is about 18 fps, and that is at 33MIPS, think about 24F ep series 80MIPS :P .

Mika
by Mikat
Tue Dec 20, 2011 3:45 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Here is the result....
255 frames at 14 sec = 18 frames per second@33MIPS...
So the 16bit runs that code abut double speed/MIPS vs. 8bit..

Mika
by Mikat
Tue Dec 20, 2011 2:11 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Sorry I have messed with the files...
The file what I post to you was directly imported at flowcode for pic, and has wrong port assigns...
Lets try again, this should be right version...And the port assign shoul be ok, just change the target processor to 30f4013...


Mika
by Mikat
Tue Dec 20, 2011 10:57 am
Forum: Flowcode V4
Topic: Tell us about your projects...
Replies: 29
Views: 64595

Re: Tell us about your projects...

HI. Maybe I should tell something about my projects too. I have done many projects with Flowcode 3 and 4.. The car trip computer: The Pic reads data at ELM327 by rs232, and calculates fuel consumption by the map iat and rpm values, and reads data for spark adv, speed, rpm, engine temp, load, tps pos...
by Mikat
Tue Dec 20, 2011 7:07 am
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Martin, did you change the target processor at 30f4013?
Because the c file has line:
#define P30F2011
The warning about undefined and unused variables can ignored, I remove those later...
But all the errors seems to be at port a...

Mika
by Mikat
Mon Dec 19, 2011 2:30 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 43506

Re: Again wishes for the Glcd..

Hi. There is the flowchart and the custom component.. Just change the target processor at 30f4013... By the way, there is bug in the original ssd1289 custom component, the Set back color has the color shifting wrong, it should be like Set Fore color eg. red and green should switch place, and then th...