Search found 252 matches

by Mikat
Thu Jan 29, 2015 9:30 am
Forum: Flowcode V6
Topic: One wire DS18S20 Error
Replies: 17
Views: 4318

Re: One wire DS18S20 Error

Hi. Hi I have been playing those devices, and never get them working really reliable (burned one Eberspächer chamber, because of sensor jamming -> back to the ntc temp sensing). Those devices seems to be very sensitive of timings and noise. With the noise in bus, it could jam, only way to get it wor...
by Mikat
Thu Jan 29, 2015 9:08 am
Forum: Flowcode V6
Topic: 33F Canbus with DMA
Replies: 6
Views: 1546

Re: 33F Canbus with DMA

Hi. There is the program, simple can send, and probing the tft backlight drive to see the program is running ok.. bl_1s_tx0.fcfx And here is screenshot for logic program, upper capture is working at 30F6012A and lower is 33FJ256GP506A. As you can see the wavefors are not same shape, so it's not timi...
by Mikat
Wed Jan 28, 2015 7:51 pm
Forum: Flowcode V6
Topic: 33F Canbus with DMA
Replies: 6
Views: 1546

Re: 33F Canbus with DMA

Hi.
Yes, I am using the flowcode internal can component.. I can post the code, but its very simple, just can init and in the loop delay, and can send buffer macro.. It is only to test the can component.
So are you using the 33f internal can, at flowcode6? With success?
T:Mika
by Mikat
Wed Jan 28, 2015 9:27 am
Forum: Flowcode V6
Topic: 33F Canbus with DMA
Replies: 6
Views: 1546

33F Canbus with DMA

Hi. Have anyone managed to get internal canbus working with 33F chip, which have can via DMA controller? I tested with 33F, but I only get some I/O traffic for a moment, about half frame (no valid can message), then the tx pin just pulses. The hardware should be ok, it works with 30F6012A nicely. Be...
by Mikat
Sat Nov 23, 2013 7:00 am
Forum: Flowcode V6
Topic: SSD1289 TFT SSD1963
Replies: 17
Views: 9040

Re: SSD1289 TFT SSD1963

Hi. The code of the SSD component is probably originally written by me. The code don't work at the 1963 driver, or at least I think so, it has never written at 1963 driver.. BUT when I looked the the 1963 datasheet (for long time ago) it looks that the differences could be only at the init routine, ...
by Mikat
Tue Apr 16, 2013 6:27 am
Forum: Flowcode V5 Issues
Topic: Bug in CAN baudrate in dspic V5.5.2.1
Replies: 2
Views: 2326

Re: Bug in CAN baudrate in dspic V5.5.2.1

Hi. This is the bug what I was talking some thread earlier.. The thing is that Flowcode set the CANCKS bit at 0, and then the whole CAN engine runs at FOSC/4, but the flowcode uses the FOSC at the baudrate calculation, so the values which flowcode shows is 4 times too high.. So the error can be solv...
by Mikat
Thu Mar 21, 2013 3:43 pm
Forum: Flowcode V5
Topic: dsPIC 5.5 Internal CAN problem
Replies: 8
Views: 2097

Re: dsPIC 5.5 Internal CAN problem

I wounder if this is only the 30F60XX chips or if it is all dsPIC? I am quite sure that it's same for all 30F chips, when when CANCKS is set at 1, the whole can engine runs a 1/4 speed, and that should notice when calculating the baud rate.. So in the flowcode, the bus rate should be divided by 4. ...
by Mikat
Fri Mar 15, 2013 4:14 pm
Forum: Flowcode V5
Topic: dsPIC 5.5 Internal CAN problem
Replies: 8
Views: 2097

Re: dsPIC 5.5 Internal CAN problem

Hello after upgrading to the latest dsPIC 5.5 version I was not able to compile my CAN projects created in 5.4. The CAN signal would be full of errors and I was not able to transmit anything that any other CAN diagnostic tool could read. Can you test that you set the CAN bus rate 4x higher than it ...
by Mikat
Fri Mar 15, 2013 3:52 pm
Forum: Flowcode V5
Topic: dsPIC 5.5 Internal CAN problem
Replies: 8
Views: 2097

Re: dsPIC 5.5 Internal CAN problem

Ok. I was just thinking that the old component (ver 5.4) was designed at higher CAN engine clock.. Hard to say what is wrong, if I had time, I'll try to look what is wrong, but I an quite busy at my bachelor thesis.. Actually, I take quick look, and the baudrate calculation don't work.. When I set t...
by Mikat
Fri Mar 15, 2013 11:20 am
Forum: Flowcode V5
Topic: dsPIC 5.5 Internal CAN problem
Replies: 8
Views: 2097

Re: dsPIC 5.5 Internal CAN problem

Ok. I just used the notepad++ search function, and it didn't find that.. Is the baud rate calculation corrected, if the CAN CKS is set at 1, the whole can engine runs 1/4 speed of previous, so if the baud rate calculation is not corrected, the result is that if you set the baud rate at 500Kbs, the a...
by Mikat
Fri Mar 15, 2013 5:51 am
Forum: Flowcode V5
Topic: dsPIC 5.5 Internal CAN problem
Replies: 8
Views: 2097

Re: dsPIC 5.5 Internal CAN problem

Hi. The only difference between the fixed cal_can 5.4 and 5.5 is these two lines: C1CTRL = C1CTRL_VAL; C2CTRL = C2CTRL_VAL; Ben, did you broke it again.. :D ? Did some more research, Ben, the code sets the CnCTRL register at the CnCTRL_VAL value, but where is the CnCTRL_VAL set? I can't find any pla...
by Mikat
Wed Feb 13, 2013 7:19 am
Forum: Flowcode V5
Topic: One Wire CRC error
Replies: 2
Views: 709

Re: One Wire CRC error

Hi. There was bug in the onewire component, I don't know is it fixed yet if it isn't, the solution for FC5 8bit can be found here http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=47&t=11365 (my last post). At the 16bit, the onewire just acts very weird, I couldn't get it work with Matrix...
by Mikat
Thu Jan 31, 2013 6:52 am
Forum: Flowcode V5
Topic: tqfp packages and capacitive coupling
Replies: 17
Views: 3157

Re: tqfp packages and capacitive coupling

So it was the flux which cause the capacitive coupling? yes, hot running water, polmolive dish soap, a tooth brush, and a hair dryer fixed the problem low tech solutions, alcohol did not remove the flux no matter how hard i scrubbed Good to know, I have been playin with the tqfp 64/80 pagages latel...
by Mikat
Mon Jan 28, 2013 6:59 am
Forum: Flowcode V5
Topic: tqfp packages and capacitive coupling
Replies: 17
Views: 3157

Re: tqfp packages and capacitive coupling

So it was the flux which cause the capacitive coupling?

Mika
by Mikat
Sun Jan 27, 2013 7:23 am
Forum: Flowcode V5
Topic: tqfp packages and capacitive coupling
Replies: 17
Views: 3157

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 ...
by Mikat
Sun Dec 30, 2012 7:21 pm
Forum: Flowcode V5
Topic: Power Down Modes PIC Help Needed
Replies: 6
Views: 1261

Re: Power Down Modes PIC Help Needed

But I want to wake-up the device very 14 minutes where it send information for about a minute and goes back to sleep. This will create a cycle of 15 minutes. For the interrupt I want to use the Watchdog timer in the datasheet of the PIC16F76 I have found that the Watchdog rollsover every 18ms. To p...
by Mikat
Mon Dec 03, 2012 6:53 am
Forum: Flowcode V5
Topic: Push button Vs LED layout
Replies: 11
Views: 2714

Re: Push button Vs LED layout

Evening Mika, From you picture it is possible to drop the voltage with a Zener Diode but in the documents Flowcode is using the 47K to shunt the LED with the option of setting the Port B as INPUT. John No it's not possible... Using the port both at the input and output is quite easy, if you mean th...
by Mikat
Sat Dec 01, 2012 4:55 pm
Forum: Flowcode V5
Topic: Push button Vs LED layout
Replies: 11
Views: 2714

Re: Push button Vs LED layout

Hi. The only way that I can think to get the button and Led working as you want is use 3 volt zener diode serial to diode, like picture below Led_button.jpg . The led and 3 volt zener serial should let the pullup resistor rise the voltage at 3v+ LED forward voltage (about 4.8V), but the pullup resis...
by Mikat
Fri Nov 30, 2012 8:14 am
Forum: Flowcode V5
Topic: Push button Vs LED layout
Replies: 11
Views: 2714

Re: Push button Vs LED layout

Hi.
The led is quite hard to get work that way that it don't react when the switch is pressed, at least I don't know how that could be done..
Isn't is possible to move leds different port than switch?
Mika
by Mikat
Fri Nov 30, 2012 6:42 am
Forum: Flowcode V5
Topic: Push button Vs LED layout
Replies: 11
Views: 2714

Re: Push button Vs LED layout

Hi. The reason why I asked about the resistors is that the way you describes the led and button schematic in you pdf creates quite simple voltage divider at the PIC port. So if you use the 10kohm resistors the voltage goes like this (5V - 1.8V)*(30kohm/10Kohm) + 1.8V... That 1.8V is the forward volt...
by Mikat
Thu Nov 29, 2012 8:38 am
Forum: Flowcode V5
Topic: Push button Vs LED layout
Replies: 11
Views: 2714

Re: Push button Vs LED layout

Hi.
The program don't work on simulation, or at hardware?
If the hw don't work, what are the resistor values in actual design?

Mika
by Mikat
Tue Nov 20, 2012 12:06 pm
Forum: Flowcode V5
Topic: setting and clearing bits?
Replies: 7
Views: 1454

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
Tue Nov 06, 2012 7:13 am
Forum: Flowcode V5
Topic: Variabel!
Replies: 11
Views: 2271

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
Mon Nov 05, 2012 4:02 pm
Forum: Flowcode V5
Topic: PIC18F4685 2 PWM?
Replies: 14
Views: 2885

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
Fri Nov 02, 2012 1:13 pm
Forum: Flowcode V5 Issues
Topic: Bugs (maybe fix), and suugestiong for Flowcode5 for DsPIC.
Replies: 14
Views: 4734

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

Ok, found at least one bug.. In the FC5 8bit there is error in the read device macro.. This: %a_oo_DevID[loper] = %a_oo_id[loper+(count<<3)]; should be like this: %a_oo_id[loper] = %a_oo_DevID[loper+(count<<3)]; . After that the code seems to work ok, but I am not sure do I have 2 broken sensors, th...