Search found 38 matches

by Ender
Mon Aug 22, 2011 8:27 pm
Forum: General Remark and Questions
Topic: trame ppm
Replies: 3
Views: 2824

Re: trame ppm

Hummm; interesting...
I propose the classic 'put the screen upside down' :)
by Ender
Thu May 06, 2010 8:34 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 4515

Re: ICS configured incorrectly

Just a track: The difference between code working in debug and not in debug is usually for some peripheral interrupts. Often, the problem come from the WDT, which is enable with a bad setting and reset (or else) the chip after a short while. In debug mode the WDT is disable but in release mode, it c...
by Ender
Thu May 06, 2010 5:55 pm
Forum: General Remark and Questions
Topic: Enable a code Block at 480Hz
Replies: 3
Views: 1731

Re: Enable a code Block at 480Hz

It just tried to measure the 8th Harmonic of a USA power line. But because he doesn't know how ........
R.I.P Jared :mrgreen:
by Ender
Fri Apr 30, 2010 6:43 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

:D Lubin and all, Question: is there an easy way to handle 16-bit to 2x 8-bit and vice versa? I handled it one way to send UART TX, but am wondering if there is a simpler way. I didn't see which method you are using but I would use the Matlab instruction : 'Bitsliceget' and 'Bitconcat', and all inst...
by Ender
Fri Apr 30, 2010 12:10 am
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

Lubin, :idea:

On future versions, you maybe change the form inside the Configure SPI mask by:
- the currently 'Sample Phase' by 'clock synchronization' with 'edge' and 'state' as choices.
- and Clock Active with 'State high or Rising' and 'State Low or Falling' as choices.
by Ender
Thu Apr 29, 2010 11:59 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

I didn't check everything but the principle seem now good for me. Good idea to add the traces 8). The clock edges are rising while the data are changing too. The memory chip take the data on the rising edge clock no on the state. Inside the Lubin SPI config block, it seem for me you can change the c...
by Ender
Thu Apr 29, 2010 6:11 am
Forum: General Remark and Questions
Topic: Enable a code Block at 480Hz
Replies: 3
Views: 1731

Re: Enable a code Block at 480Hz

Hello, If the goal is a synchronization with another device you better have to use an Input or Output compare or the PWM peripheral. Can you give a better description of your project and the accuracy you want for the frequency? Because there is several solution, included to use an external clock, ch...
by Ender
Thu Apr 29, 2010 4:32 am
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

John, I didn't try, just take a peek on the datasheet :

The Read and Write instructions have to be on 8 bits, so I guess you have to change all your model to use the 'SPI config' as 8 bits data size.

Doesn't matter but I think you do not need a WRDI at the end of a write sequence.
by Ender
Thu Apr 29, 2010 2:02 am
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

Lubin what the utility to disable the SDO ? Well, if you don't use it ? Lubin Ho yeh, I'm silly! :lol: I Have used the SPI one time, 8 years ago, and for me it was a big shift register so simple that you better have to loop the data from in to out all the time anyway you have nothing to write when ...
by Ender
Wed Apr 28, 2010 7:46 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 7767

Re: SPI EEPROM Record and Playback on Explorer 16

Hi John, In the SPI Config block, you have to enable the output "SDO enable", with the scope check the data on the pin 5 call SI of U5, or on the pin 12 of your Dspic it should be work now... If it doesn't work update here another model more simple, with just the enable on D12 and to send ...
by Ender
Wed Apr 28, 2010 6:22 pm
Forum: bug reports
Topic: OC and Matlab2010a
Replies: 2
Views: 1556

Re: OC and Matlab2010a

:idea: I tested something and the problem is linked with the idle mode. When the idle is disable the OC work fine, the frequency are good and stable. So it could be a wake up time issue on the OC interrupt. About consumption : :arrow: Lubin, what is for you the good way to use the idle ? Do you advi...
by Ender
Wed Apr 28, 2010 6:42 am
Forum: Requirement, Installation & Configuration
Topic: Install on one computer two version in same time ?
Replies: 1
Views: 1660

Install on one computer two version in same time ?

Hello Lubin, How do you do to easily reproduce the problems from the users, who are using different versions ? Is it possible for me to install Matlab 2010a and 2007b and two version of blockset in same time on the same computer ? And for Alex is it possible to use Matlab 2007b 32bit and 64bit on hi...
by Ender
Wed Apr 28, 2010 6:24 am
Forum: Requirement, Installation & Configuration
Topic: 64-Bit Compatibility
Replies: 2
Views: 2080

Re: 64-Bit Compatibility

We'll try later the blockset in 64 bits OS, but right now, I'm using the licence on my older 32bit computer with Matlab2010a and Alex is busy.
But thanks for all the updates done in 32, 64 bits and Matlab 2010a, all provide in the same week Lubin

Thierry
by Ender
Wed Apr 28, 2010 2:51 am
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 5362

Re: GUI in Matlab2010a with virtual Com port problem

I'm using Labview 8.5 (so 2007 or 2008 release I think) and it didn't display advices or anything when it was opening, everything seem fine.
by Ender
Wed Apr 28, 2010 2:43 am
Forum: bug reports
Topic: OC and Matlab2010a
Replies: 2
Views: 1556

OC and Matlab2010a

Hello, In Matlab 2010 32bits Vista and the Blockset 2010a V3.2B, I got a new issue never see before with the toolbox 2007 version on the output compares. So I tried with OC1 and OC2, in the simplified model attached and first the signal frequency is not very stable, and mostly with the settings: 'Ma...
by Ender
Fri Apr 23, 2010 4:01 pm
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 5362

Re: GUI in Matlab2010a with virtual Com port problem

Yes, I’m using the Tx_Output_Multiplexed_For_Matlab-Labview block with Labview. I never try the other block to send data with the UART. This code is 2 years old when I start with your tool, I thought the protocol was too basic, my idea was too write another one with checksum and time mark , or to tr...
by Ender
Thu Apr 22, 2010 11:41 pm
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 5362

Re: GUI in Matlab2010a with virtual Com port problem

I'm using a Free2move F2M03GLA SPP on the Dspic, and different computers and Bluetooth modules; include USB modules or free2move F2M03GLA HCI, for 4 years now on different microcontroller and for 2 years with the DSPsic and your GUI. Yes, because the RS232 works fine, I'm sure your idea to use a USB...
by Ender
Wed Apr 21, 2010 9:25 pm
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 5362

GUI in Matlab2010a with virtual Com port problem

Hello, I'm using a Bluetooth bridge for monitoring for 2 years now. With other Matlab version there was no issue to start the connection; but with Matlab2010 impossible to have a correct answer by using the 'Connexion' button in the GUI. When I use my own Labview GUI the 'Com' port is linked and the...
by Ender
Thu Apr 01, 2010 8:09 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 12795

Re: Support for CAN Module?

1/ I need to communicate between more than two dsPICs 2/ I need to send and receive more bytes in one time step (sending is not a problem, but receiving is slightly a problem) It's very good news from Lubin and Bryant. :D But, if your deadline is very short, maybe you better have to build a multipo...
by Ender
Wed Mar 31, 2010 4:55 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 12795

Re: Support for CAN Module?

Hi,
What do you mean by UART is not enough ?
by Ender
Wed May 13, 2009 7:06 pm
Forum: General Remark and Questions
Topic: remappable Pin
Replies: 2
Views: 1275

Re: remappable Pin

Yes, this seemed strange, because easy and interesting for your blockset Lumbin, so I guessed that you had done something like that yet, but I had never see this blockset before.
Thanks, great job it works fine in my project. :D
by Ender
Wed May 13, 2009 4:16 am
Forum: General Remark and Questions
Topic: remappable Pin
Replies: 2
Views: 1275

remappable Pin

Hi Lumbin,

I need to select the I/O, so to configure the UART function on some Pins of a 33FJ128GP804.
I plan to use a C call function, called one time, to initialize the I/O mapping MUX.
Before to start I would appreciate to know, if you have a better/other way or a small exemple ?
Thank you.
by Ender
Wed Feb 11, 2009 7:06 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 12795

Re: Support for CAN Module?

One more Lumbin, Thanks. :D
by Ender
Wed Feb 11, 2009 6:59 pm
Forum: General Remark and Questions
Topic: Problem about QEI and DisPIC33fj256mc710
Replies: 4
Views: 3207

Re: Problem about QEI and DisPIC33fj256mc710

I Magic, I saw your email.

How many Mhz do you use for the quartz ? I used a 8Mhz for this code I think.
by Ender
Tue Nov 04, 2008 1:11 am
Forum: Advanced Simulink & RTW Questions
Topic: Huge tables. full memory. Type Double vs Other. Optimization
Replies: 3
Views: 1673

Re: Huge tables. full memory. Type Double vs Other. Optimization

To store fixed point variable, you should multiply your variable by the 2^(Width of fractional part) before convertign it into a int8 or 16 or 32 datatype. Then, in Simulink, following the lookup table, use a convert block to convert the int8 into the fixed point format using 'Stored Integer' optio...
by Ender
Fri Oct 31, 2008 8:07 am
Forum: Advanced Simulink & RTW Questions
Topic: Huge tables. full memory. Type Double vs Other. Optimization
Replies: 3
Views: 1673

Huge tables. full memory. Type Double vs Other. Optimization

Hello Lumbin I’m trying to fit the huge tables in the static memory. Example: 2 tables of 140 x 100 of doubles. So usually 112Ko. The target is a Dspic33FJ256MC710 (256K) and the compiler is a licensed C30 v10b. For one table alone the compiler works fine and the report returns about 42K and 16% in ...
by Ender
Thu Oct 23, 2008 5:53 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Exemple QEI without Index, DsPic33FJ256MC710
Replies: 2
Views: 1995

Exemple QEI without Index, DsPic33FJ256MC710

. Inspired from the Malife topic , I did a QIE model on the DsPic33FJ256MC710 . But the intializing function _QEIInt_ run more than one time, in spite of the C call function step time is "inf" :cry: Exemple, If you remove the comment to set available the line : __ // POSCNT = 0x8000; // Se...
by Ender
Wed Oct 15, 2008 5:07 am
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

Okay, I found the answer myself in master block description.
http://www.kerhuel.eu/RTWdsPIC/Blocks/Master.html
by Ender
Wed Oct 15, 2008 4:54 am
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

You right Lumbin, I used a example code from Microship which used the PLL. There is a hardware problem on the oscillator, some time and more when I use the oscilloscope probe the frequency is correct. I'll replace the capacitors by the new ones to be sure of their values and remove/re-solder the qua...
by Ender
Tue Oct 14, 2008 12:20 am
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

Thanks for the .Hex file.
Same result that me with your dsPIC_33f_Explorer16_GP710.hex file.
The start bit is 23µS width, instead 8.5µS, so it's also doesn't work in Rs232Gui
by Ender
Tue Oct 14, 2008 12:03 am
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

I declared the quartz as a 26.6Mhz :

Led blink 950mS and Start bit width 15µS ?
by Ender
Mon Oct 13, 2008 11:56 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

I tried with my C code on MPLAB for 115200baud the start width is 8.5µs and the Gui receipt the dots.
by Ender
Mon Oct 13, 2008 11:36 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

Could you build and send to me an .Hex file for 115200baud and an 40Mhz oscillator, please ?
by Ender
Mon Oct 13, 2008 11:12 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

I checked your idea the led blink at 1.5s = 0.66Hz instead of 1s.

The width of the start bit on the COM is 25µS and the frame is just litle bit more than 700µs at 115200baud
The widths between to dot are 2.74 ms instead of 1ms.
by Ender
Mon Oct 13, 2008 8:52 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

With Mathlab 2007b, Dspic Blockset2007B licensed and MPLAB_C_3.11 student, the model 1khz_115200 baud: 1___ doesn't work on Dspic33FJ256MC710. 2___ And it doesn’t work with a Dspic33FJ256GP710 too of course I changed the target in Master and I compiled the code every time. 3___The Rs232gui receipt f...
by Ender
Mon Oct 13, 2008 8:12 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

Re: UART on DsPic33FJ256MC710

Hi Lumbin, thank for this quick answer and sorry I didn't work this WE. I know for the 100Hz and 1KHz, I tried with many speed and I sent you a version with the simulation/solver/fixed_step time constraint at 1Khz and a block with 100hz. But is there a link between the simulation time step and the D...
by Ender
Sat Oct 11, 2008 1:35 am
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 5388

UART on DsPic33FJ256MC710

Hello,

The Simulink design in attachment works with a DsPic33FJ256GP710 but doesn't work with a DsPic33FJ256MC710.
I tried at 9600 baud and 115200 baud.

Could you peek an eye please?

Go to advanced search