Search found 252 matches

by Mikat
Wed Oct 10, 2012 5:57 am
Forum: Flowcode V5
Topic: I2C communication problems with EEPROM
Replies: 7
Views: 4755

Re: I2C communication problems with EEPROM

Thanks, Enamul I dont still understand meaning of "last" in that component. I will check it tomorrow how it works. That is basically the ack byte that the master sends, if it's 0, the transmission will continue, but if it's 1 the slave device knows that it was last byte of the transmission.. Mika
by Mikat
Tue Oct 09, 2012 12:33 pm
Forum: Flowcode V5 Issues
Topic: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPIC.
Replies: 14
Views: 11047

Bugs (maybe fix), and suugestiong for Flowcode5 for DsPIC.

Hi. There is bug in the DsPIC internal CAN component, then component can never set the baudrate,rx mask or filters, because the reqop config mode value is wrong.. The REQOP bits are CiCTRL 10-8 and the config mode is 100, so when requestin config mode, the CiCTRL register value should be 0b100000000...
by Mikat
Fri Oct 05, 2012 12:38 pm
Forum: Flowcode V5 Issues
Topic: One-Wire Bus Problem
Replies: 1
Views: 2478

Re: One-Wire Bus Problem

Hi. You have pull up resistor at the onewire pin? The busreset returns value 1 if the bus don't get the precence pulse at the onewire device, so the value should be 0 -> precence ok, device detected or 1-> bus remains high, no precence pulse.. If I am right, the get device count needs first tha scan...
by Mikat
Thu Oct 04, 2012 2:45 pm
Forum: Flowcode V5 Suggestions
Topic: KS0108 64 x 128 graphical LCD component
Replies: 5
Views: 8830

Re: KS0108 64 x 128 graphical LCD component

The ks108 component works on the Flowcode4 fine, so it might work at the ver5 , at least my ssd1289 component, which is written at ver4 works straight at ver5.. Unfortunately I don't have the hardware to test at dspic, and I don't have the software to test at 8bit pic, which I have the hardware :? ....
by Mikat
Mon May 28, 2012 6:21 am
Forum: Flowcode V4
Topic: Dspic30F6010A
Replies: 4
Views: 3649

Dspic30F6010A

Hi. Any change to get Flowcode support that processor? I modified the 5016 fcd file to 6010A, but it gives error something like "Error configuration '__FGS sec not valid in 30F6010A processor." at asm compiler about the configuration words if I change the processor config data at PPP, but if I leave...
by Mikat
Wed May 23, 2012 5:48 pm
Forum: Flowcode V4
Topic: dsPIC and internal CAN
Replies: 12
Views: 8126

Re: dsPIC and internal CAN

Ben.
There was some thing wrong about the file, I don't remember what, but I need to change something before the port was ok...
And other thing is that the internal can don't work at 100MHz chip clock, probably the fcan is too high..

Mika
by Mikat
Tue May 15, 2012 1:53 pm
Forum: Flowcode V4
Topic: dsPIC and internal CAN
Replies: 12
Views: 8126

Re: dsPIC and internal CAN

Hi.

Neither does set rx mask or filter...
By the way guys, where is the port C low input and output at the 30F6012A chip? There is only portC H option...


Mika
by Mikat
Wed Apr 25, 2012 8:19 pm
Forum: Flowcode V4
Topic: dsPIC and internal CAN
Replies: 12
Views: 8126

Re: dsPIC and internal CAN

Ben, does that component fix the problem with rx filters and mask WITH 30F6012A? Because those was broken too, as I say out at some other topic...

Mika
by Mikat
Wed Apr 25, 2012 1:26 pm
Forum: Flowcode V4
Topic: dsPIC and internal CAN
Replies: 12
Views: 8126

Re: dsPIC and internal CAN

Hi.

You are using CAN1? The can hi and can lo connected right (it isn't one or two times when I have mixed the can hi and lo :oops: ..)?
I'll try test the can transmit at dspic when I have some time, but it might go at next week... Have you use that optoisolation before at 18F?


Mika
by Mikat
Wed Apr 25, 2012 5:31 am
Forum: Flowcode V4
Topic: dsPIC and internal CAN
Replies: 12
Views: 8126

Re: dsPIC and internal CAN

Hi. I have used the internal CAN at 30F6012A, but I don't remember have I used it to send data or just receive at the moment... I take quick look at your code, and only difference what I see the code that I use is that you use very slow speed, mine is 250Kb/s, and at the set tx data, you set that da...
by Mikat
Sat Apr 21, 2012 4:56 am
Forum: Flowcode V4
Topic: Measure Time
Replies: 3
Views: 4097

Re: Measure Time

Hi Wayne, What I would do is on the first INT interrupt I would reset my count variable and set a timer interrupt going. On the second INT interrupt I would disable the timer interrupt. With a normal PIC running at 19.6608MHz you can get a timer interrupt rate of 19200Hz which equates to 52us. Ben ...
by Mikat
Fri Apr 13, 2012 7:24 pm
Forum: Flowcode V4
Topic: Again wishes for the Glcd..
Replies: 65
Views: 41967

Re: Again wishes for the Glcd..

Little update for the project, I just managed to get the Ilitek ILI9325 (used most of the 2.4 inc tft displays) driver working, so far it's only at the 16bit, but I post the updated file here soon as I managed to combine both drivers at the same component.. Ben what is the schedule of the flowcode5 ...
by Mikat
Sat Mar 31, 2012 7:07 pm
Forum: Flowcode V4
Topic: Setting Filters in CAN without init for CAN
Replies: 8
Views: 5086

Re: Setting Filters in CAN without init for CAN

Hi.
You need to check the use internal can box in the can ext properties menu...
Then the code compiles fine...

Mika
by Mikat
Thu Mar 29, 2012 7:15 am
Forum: Flowcode V4
Topic: Setting Filters in CAN without init for CAN
Replies: 8
Views: 5086

Re: Setting Filters in CAN without init for CAN

Hi. So are you looking way to change RX filters and masks without init? Because the TX "filter"(ID) has macro to change... If you are try this: C1CTRLbits.REQOP = 4; //request to config mode while( C1CTRLbits.OPMODE != 4 ); //loop untill config mode NOT TESTED!! C1RXF2SID = 472 << 2; //filter 2 472 ...
by Mikat
Mon Mar 05, 2012 12:32 pm
Forum: Flowcode V4
Topic: dsPIC EEPROM
Replies: 19
Views: 9273

Re: dsPIC EEPROM

Hi. So I am not feeling myself so stupid anymore :lol: . I think that the init_prog_address is something which is used to point the address on eeprom, but I don't know should that be "initialized" some way... Because some examples have something like this: void EEPROM_Write (void) { _prog_addressT p...
by Mikat
Mon Mar 05, 2012 10:12 am
Forum: Flowcode V4
Topic: dsPIC EEPROM
Replies: 19
Views: 9273

Re: dsPIC EEPROM

Hi Ben. Installed the c30 compiler, and managed to get those ee macros through the compiler, but not working.. I don't actually understand how to use that code, so if you kindly could look the readme which is in the CDE017 package, and clarify me how to use those macros.. The prog addressT and init_...
by Mikat
Fri Mar 02, 2012 2:32 pm
Forum: Flowcode V4
Topic: dsPIC EEPROM
Replies: 19
Views: 9273

Re: dsPIC EEPROM

Ben, I found following at the c30 3.02 release notes.. Several new functions are defined in libpic30.a for erasing and writing to EEDATA memory. void _erase_eedata(_prog_addressT dst, int len) erases EEDATA memory on dsPIC30F devices. The length may be _EE_WORD or _EE_ROW (bytes). void _erase_eedata...
by Mikat
Tue Feb 28, 2012 7:55 pm
Forum: Flowcode V4
Topic: dsPIC EEPROM
Replies: 19
Views: 9273

Re: dsPIC EEPROM

Ben I saw somewhere in the microchip forum topic, which say that the C30 update was it 3.01b brings functions like write_EE, read_EE at 30F devices, and those should be in c code, and build in functions... Those should be in compiler manual... Here is the topic http://www.microchip.com/forums/m41633...
by Mikat
Tue Feb 28, 2012 12:42 pm
Forum: Flowcode V4
Topic: dsPIC EEPROM
Replies: 19
Views: 9273

Re: dsPIC EEPROM

Hi. I am not sure where the problem is, but at least in 30f reference manual gives different code, than flowcode uses, the code what flowcode uses is in 33/24f series ref manual, Ben or Steve you might know better is that code which is in 33/24f series ref manual and in the flowcode eeprom component...
by Mikat
Fri Feb 24, 2012 9:40 am
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

Still can't write to Kingston card... And another problem (is it just me who always finds another problem?), I can't write the eeprom more than one time/location... I try to avoid to use the delete file function, and write eeprom number of the file, and each start increment that count by one.. BUT w...
by Mikat
Thu Feb 23, 2012 6:29 pm
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

Sorry I mixed the sector size, and allocation unit size, thing don't always translate right just in head, sometimes I should use dictionary...
Bot card have sector size 512b...
Does it matter what is the allocation unit size at formatting the card?

Mika
by Mikat
Thu Feb 23, 2012 1:30 pm
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

Again little update, it seems that its delete file function, which causes the reset.. I have function which seeks the "test.txt" file, if it exist delete file and then create new "test.txt", and if there is no file, all goes well, but if there is file, program will delete it and then the pic resets....
by Mikat
Thu Feb 23, 2012 10:31 am
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

HI. Little update. The reset occurs even if the fat code is just behind the init lcd, so there is nothing else running than lcd and fat... But only the Canon 32 Meg resets the pic, not the Kingston 512 Meg.. But the Kingston don't work ok, neither the fat or fat 32, the append in the file won't writ...
by Mikat
Wed Feb 22, 2012 8:00 pm
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

Hi. The stack overflow I was thinking too.. Yes I have the interrupt, remember it now when you ask. First I think that is quite simple interrupt, but it does have the spi communication, so it goes at least few level down at macros... I'll test tomorrow without the interrupt. The interrupt is quite "...
by Mikat
Wed Feb 22, 2012 10:19 am
Forum: Flowcode V4
Topic: Help for the fat component on dsPIC
Replies: 12
Views: 6115

Re: Help for the fat component on dsPIC

Well the things isn't always so easy :? .
Now the data transmission works, but the open folder macro reset the pic quite often...
Any ideas?

Mika