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...
: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...
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.
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...
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...
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 ...
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 a constant...
: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...
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...
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
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...
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...
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...
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...
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...
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.
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.
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...
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 ...
. 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; // Set Current ...
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...
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
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.
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...
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...