Search found 26 matches

Return

by Mikat
Mon Dec 13, 2010 10:30 am
Jump to forum
Jump to topic

Re: Two pwm outputs with only one CCP

That 38Hz could mean that the int freq is original 3800Hz...
I notice the c code tmr0 += 254; should set the tmr0 value at 254, but i think it should be tmr0 = 254;?
by Mikat
Wed Oct 26, 2011 8:38 am
Jump to forum
Jump to topic

Re: Again wishes for the Glcd..

Hi guys. The display arrived yesterday, and some progress has come. Ssd1289 small.JPG Now the code needs quite lot of work, the display has some interference, and the code could be faster, because the ssd1289 increments the vertical address counter automatic, and the horizontal mode need to be done....
by Mikat
Sun Feb 19, 2012 8:59 pm
Jump to forum
Jump to topic

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... T...
by Mikat
Fri Dec 30, 2011 8:42 pm
Jump to forum
Jump to topic

Re: Again wishes for the Glcd..

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



Mika
by Mikat
Thu Mar 29, 2012 7:15 am
Jump to forum
Jump to topic

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; //fil...
by Mikat
Sat Mar 31, 2012 7:07 pm
Jump to forum
Jump to topic

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
Wed Dec 21, 2011 7:29 am
Jump to forum
Jump to topic

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
Thu Oct 04, 2012 2:45 pm
Jump to forum
Jump to topic

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
Tue Oct 09, 2012 12:33 pm
Jump to forum
Jump to topic

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
Thu Oct 11, 2012 6:35 am
Jump to forum
Jump to topic

Re: CAN Bus Programming

Hi guys... I have used CANbus at my boat about 1,5 year now (if interested, there is some story at the teell us your projects thread), and the experience has been very positive, the bus is very reliable, some day when I was fishing I checked the status of the CANbus and it shows something like 30000...
by Mikat
Thu Oct 11, 2012 12:34 pm
Jump to forum
Jump to topic

Re: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPI

Hi. There is the scanbus picture for logic analyzer, upper is fc4 8 bit, which works ok, lower is fc5 for 16 bit, not working... Both captures start at the same point, end of the searchrom command. If you look between markers 1 and 2, there is some diffrence, but the transmission shoud be same, beca...
by Mikat
Fri Oct 12, 2012 6:24 am
Jump to forum
Jump to topic

Re: CAN Bus Programming

Hi all. I put this in here too, maybe it serves all here. Enamul asked via pm at the CAN hardware. At the hardware, be aware at the count of termination resistors, I think I broke 2 MCP2551 because my network has 3 120 ohm resistor.. The MCP2551 seems to broke quite easily sometimes, sometimes it se...
by Mikat
Fri Oct 12, 2012 7:43 am
Jump to forum
Jump to topic

Re: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPI

Good morning. There is better capture for logic analyzer, the scale is same, and the timing are almos equal. I tweaked the timings at the FC5 16bit as close the FC4 8 bit as the delays allow, so the problem is not the timings... The working FC4 8 bit is the lower capture.. I swithc the sensord, to c...
by Mikat
Mon Oct 15, 2012 12:32 pm
Jump to forum
Jump to topic

Re: GLDC!

Hi. The Flowcode 4 gLCD component works with some nokia displays, probably it was 3310, but I bought many modules on Ebay (same phone model), some of those works, some don't, so if you are lucky, it works, if I remember right, even same seller and same module doesn't guarantee that all modules works...
by Mikat
Tue Oct 16, 2012 6:42 am
Jump to forum
Jump to topic

Re: GLDC!

Hi. Sorry now I mixed the phones.. That 3310 display seems to be monocrome LCD, the displays what I used was color tft displays.. But I was using the nokia 5110 display for long time ago... And that 3110 display looks quite same.. But still, if you just want to display,cheap and easy to use, I sugge...
by Mikat
Tue Oct 16, 2012 1:08 pm
Jump to forum
Jump to topic

Re: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPI

Hi Mika, Right I'm currently comparing the v5 and v4 PIC C code and there really isn't a lot of difference between the two. Did you manage to find out if the v4 dsPIC code worked? Also do you have v5 for PIC to test if this is ok? Can you recommend any 1 wire devices for me to buy in and use as tes...
by Mikat
Tue Oct 16, 2012 4:28 pm
Jump to forum
Jump to topic

Re: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPI

Hi Ben. Now I think that I understand the "init" protocol of onewire, but the Dallas document was quite confusing.. So the slave device sends first the bit,then same bit inverted, and then master responds at the bit which was first send (not inverted), but if the bus has devices which send...
by Mikat
Thu Oct 18, 2012 12:37 pm
Jump to forum
Jump to topic

Re: GLDC!

Hi.

I can now confirm that the custom component at the ks108 works ok with Flowcde 5 (8 bit), just tested it on hardware..

Mika
by Mikat
Thu Oct 18, 2012 1:27 pm
Jump to forum
Jump to topic

Re: GLDC!

Yep, the second one is tha display for Flowcode, it has ks0108 driver, the firs one seems to have Sitronix 7920, and need different code..

Mika
by Mikat
Thu Oct 18, 2012 1:53 pm
Jump to forum
Jump to topic

Re: GLDC!

Hi. Here is simple example file, just writes strings to diplay.. Glcd example.fcf The connection are defined in the ext properties box, in this case: databits 0-7 = portD 0-7 conrolt port is portC ( this is the port where the below bits are connected) cs1 = 5 cs2 = 4 d/i (rs) = 0 en = 3 rw = 1 The V...
by Mikat
Thu Oct 18, 2012 2:19 pm
Jump to forum
Jump to topic

Re: GLDC!

Hi Both! Thank´s to your both. I am wery greatfull. I will study the link and description. But I am a litlle afraid of this Costom component and dont know about C code. As far I can see, I have to use D0 to D3. As soon I receive my display from Ebay I will test it and sure you will hear from me. Be...
by Mikat
Mon Nov 05, 2012 4:02 pm
Jump to forum
Jump to topic

Re: PIC18F4685 2 PWM?

The Eccp can be used either normal pwm, or a bridge driver... Here is the code for eccp1 to use normal pwm via C code. //init pr2 = 99; //period to 99 t2con = 0x05; //tmr2 on prescaler to 4 //enable pwms ccp1con = 0x0C; // enable ccp1 eccp1con = 0x0C; //Enable eccp1 //Set the duty cycles ccpr1l = FC...
by Mikat
Tue Nov 06, 2012 7:13 am
Jump to forum
Jump to topic

Re: Variabel!

Hi. The easy way at short numbers could be like this: First press My_var = keyboard * 100 second press My_var = my_var + (keyboard * 10) third press My_var = My_var + keyboard Or how about an array and pointer? Like: Create variables Array_my_var and pointer Array_my_var[2] Pointer (byte) Before fir...
by Mikat
Tue Nov 20, 2012 12:06 pm
Jump to forum
Jump to topic

Re: setting and clearing bits?

Hi. If you want set the postscaler direct at variable, you can try this: t2con.T2OUTPS0 = FCV_POSTSCALER_VALUE; t2con.T2OUTPS1 = FCV_POSTSCALER_VALUE >> 1; t2con.T2OUTPS2 = FCV_POSTSCALER_VALUE >> 2; t2con.T2OUTPS3 = FCV_POSTSCALER_VALUE >> 3; That should set the postscaler value at postscaler_value...
by Mikat
Sun Jan 27, 2013 7:23 am
Jump to forum
Jump to topic

Re: tqfp packages and capacitive coupling

Hi. What is the chip? I have playing with the 30F series, and with the higher clock those are quite power hungry.. Is there 100nF cap NEAR the chip, I can't see it, is it other side of the board (at least in 30F series those caps are must, without the vcc fluctuates really bad)? Seems that even the ...