to add the C:\program files\...C30...\bin directory in the path,
have a look on http://www.computerhope.com/issues/ch000549.htm
Search found 616 matches
- Mon Aug 04, 2008 9:32 am
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
- Sat Aug 02, 2008 9:15 pm
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
Re: Compiling problem
Hi NigmaTech, Make sure that the bin directory of the C30 compiler is added in the windows path. Matlab must find the .exe file present in the C30 repertory because this directory should be in the windows path. It it is not present, you should add it manually ! If too many people get the problem, I ...
- Sun Jul 27, 2008 11:35 pm
- Forum: dsPIC Peripherals
- Topic: Rx Input Multiplexed?
- Replies: 5
- Views: 15423
Re: Rx Input Multiplexed?
Hi, I will not have time to do it soon. I have to clean up the existing labview files I have. I attach an old project where labview was used to watch the variables (like the matlab interface rs232gui) and to send new configuration parameters. This was for a plane. Few screenshoot are available on my...
- Tue Jul 08, 2008 10:27 pm
- Forum: bug reports
- Topic: Teething problems - PIC32
- Replies: 5
- Views: 15966
Re: Teething problems
Hi Greg, Thanks for all theses information. I noticed theses facts (C32 not added in the windows path when installing with MPLAB, but option is available if installing C32 with its standalone installer. Also please note that the PIC24 (1) and dsPIC C30 (2) compilers appear to write to the same direc...
- Mon Jul 07, 2008 10:41 pm
- Forum: bug reports
- Topic: Teething problems - PIC32
- Replies: 5
- Views: 15966
Re: Teething problems
Hello Greg, I noticed that you also got a problem with the C30 installation. Did you solve the problem? Could you share the solution if there is some trick to apply while installing C30 ? Feel free to register and to then edit the "installation page" of the website's wiki. About the C32, there was a...
- Tue Jul 01, 2008 7:22 am
- Forum: General Remark and Questions
- Topic: LED blink - Real time and Quartz Configuration
- Replies: 4
- Views: 9021
Re: LED blink example question
It is probably possible to drive an LCD. What is the interface of the LCD ?
If you have to create a complexe sequential logic, you could also use stateflow.
In the worst case, use the "C Call function block" to write the driver for the LCD.
( only available in the registred version of the blockset)
If you have to create a complexe sequential logic, you could also use stateflow.
In the worst case, use the "C Call function block" to write the driver for the LCD.
( only available in the registred version of the blockset)
- Sun Jun 29, 2008 11:30 am
- Forum: General Remark and Questions
- Topic: LED blink - Real time and Quartz Configuration
- Replies: 4
- Views: 9021
Re: LED blink example question
Hi carbon9, Few comments about the model: A simulation of the model shows that the led should be blinking at a rate of 1Hz (duty cycle of 0.5s). You do not get 1Hz because your quartz configuration (master block dialog box) may not be configured correctly (i.e. information provided to the simulink m...
- Fri Jun 27, 2008 8:28 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Support for dsPIC30F6014A ?
- Replies: 1
- Views: 10232
Re: Support for dsPIC30F6014A ?
Hi Gladiac, dsPIC30F6014 and dsPIC30F6014A should be compatible. I guess that dsPIC30F6014A is a revised version of the dsPIC30F6014 microcontroller with few correction. I may add the dsPIC30F6014A pic to the blockset, but is it necessary ? (C program would use different library and definition file,...
- Thu Jun 19, 2008 9:31 pm
- Forum: dsPIC Peripherals
- Topic: Rx Input Multiplexed?
- Replies: 5
- Views: 15423
Re: Rx Input Multiplexed?
I am not sure xPC is the solution: As far as I know, Virtual reality blockset will not work on xPC Target. The solution may be to find (on the web) the Simulink block that is able to send data throw Serial port. It is the hard part! Otherwise, you can write your own block function for simulink and u...
- Sun Jun 15, 2008 12:50 pm
- Forum: Website
- Topic: Set up a Wiki ?
- Replies: 5
- Views: 15538
Re: Set up a Wiki ?
Wiki is being setup. It will replace soon the static website. An overview is available at http://www.kerhuel.eu/wiki I think this structure will help to improve the doc. As modification is made easily, I will add information as I get questions on the forum. You are also free to correct pages if you ...
- Sat Jun 14, 2008 9:41 am
- Forum: General Remark and Questions
- Topic: maximum speed on PIC32?
- Replies: 4
- Views: 11216
Re: maximum speed on PIC32?
Hi Stefano, I do not see any image inside your last post. From the microchip doc : The external quartz you can use with a PIC32 chip must be within the [3.5 40]MHz range. If you use an External Clock, it must be within the [0 72]Mhz range. You can use PLL multiplier to speed up internally the clock....
- Thu Jun 12, 2008 8:56 am
- Forum: dsPIC Peripherals
- Topic: Using 2 UART
- Replies: 3
- Views: 13560
Re: Using 2 UART
Hi Stefano, the file "dspicliste.mat" substituting the existing value with the new value [1 2] This solution is correct in this very specific case. However, in most case, it will not work since severals entry have to be coherent so as to generate a correct C code. The entry has been corrected in the...
- Thu Jun 12, 2008 12:26 am
- Forum: dsPIC Peripherals
- Topic: Using 2 UART
- Replies: 3
- Views: 13560
Re: Using 2 UART
Hi Stefano,
Thanks for reporting this bug. It should be corrected now.
Please, have a look on the experimental version of the blockset on the Release Note Page (Bottom).
Lubin
Thanks for reporting this bug. It should be corrected now.
Please, have a look on the experimental version of the blockset on the Release Note Page (Bottom).
Lubin
- Thu Jun 12, 2008 12:23 am
- Forum: General Remark and Questions
- Topic: maximum speed on PIC32?
- Replies: 4
- Views: 11216
Re: maximum speed on PIC32?
Hello, The C32 has a lot of multipliers or diviser factor allowing to configure the chip so as to get the desired MIPS. On the master block, you have to : - Set correctly the quartz mounted on your board. ( Quartz or External Clock Frequency ) - Set the desired MIPS ( Desired Instruction Per Seconds...
- Thu Jun 12, 2008 12:14 am
- Forum: General Remark and Questions
- Topic: does not appear Interface tx-Matlab
- Replies: 3
- Views: 8312
Re: does not appear Interface tx-Matlab
Hi, Thanks for reporting this problem. It should be solved on the very last version of the blockset 0.98c, experimental now. (download if only from the release note page ; Bottom of the page)
- Fri Jun 06, 2008 9:49 pm
- Forum: General Remark and Questions
- Topic: does not appear Interface tx-Matlab
- Replies: 3
- Views: 8312
Re: does not appear Interface tx-Matlab
Are you looking for this block ?
>> rs232gui
Double click on this block is the equivelent to type at the matlab prompt : >> rs232gui
- Thu Jun 05, 2008 12:50 pm
- Forum: bug reports
- Topic: Know when using interrupt driven UART (Tx or Rx)
- Replies: 0
- Views: 8935
Know when using interrupt driven UART (Tx or Rx)
You may get erratic result when setting in the UART configuration block a buffer with more than 256 bytes. The default is 32. Workaround: Set the buffer for both RX or Tx to a value lower or equal to 128 bytes (may work also with 256 bytes) This bug will be corrected in the next blockset version (0....
- Tue Jun 03, 2008 11:43 pm
- Forum: Requirement, Installation & Configuration
- Topic: blocksets do not appear in simulink
- Replies: 3
- Views: 13387
Re: blocksets do not appear in simulink
Hi Salemimoh, few elements that may help : - Do not install the blockset in a subdirectory of matlab - Check that the blockset has been added to the path of matlab (File ==> Set Path ...) The root of the blockset and its two subdirectory blocks and dspic must be in the path. (automatically done by t...
- Mon Jun 02, 2008 9:29 pm
- Forum: General Remark and Questions
- Topic: Importing data from Interface TX-Matlab to excel
- Replies: 1
- Views: 4780
Re: Importing data from Interface TX-Matlab to excel
To import data received using Interface Tx-Matlab, I can see two methods : First of all, receve data in the matlab workspace using the graphical interface. To remove NaN values from the R matrix, use the custom made function : R = padr(R,1); Then, either you save data using a file format that Excel ...
- Sun Jun 01, 2008 11:06 pm
- Forum: bug reports
- Topic: Possible bug in ADC of dsPIC30F6010A
- Replies: 3
- Views: 12498
Re: Possible bug in ADC of dsPIC30F6010A
The generated code for the configuration of the ADC with your model is : 124 /* S-Function "dsPIC_ADC" initialization Block: <Root>/ADC Input */ 125 /* Initialise ADC converter */ 126 /* 0 mean each 1 conversion */ 127 #define NoSamplesADC 1 128 #define ADCSval 3 129 #define SAMCval (1 << 8) 130 #de...
- Sat May 31, 2008 9:14 pm
- Forum: bug reports
- Topic: Possible bug in ADC of dsPIC30F6010A
- Replies: 3
- Views: 12498
Re: Possible bug in ADC of dsPIC30F6010A
Hi Nigma,
This would be quite surpising to have an inversion on pin AN7 ==> AN3.
Could you upload the model (.mdl file) so as to have a look ?
What are the parameters for Vref+ and Vref- ?
Lubin
This would be quite surpising to have an inversion on pin AN7 ==> AN3.
Could you upload the model (.mdl file) so as to have a look ?
What are the parameters for Vref+ and Vref- ?
Lubin
- Thu May 29, 2008 8:14 am
- Forum: bug reports
- Topic: Possible Bug in ADC in 33FJ256MC710
- Replies: 1
- Views: 10578
Re: Possible Bug in ADC in 33FJ256MC710
Hi Mariano, This is a bug ! Thanks for reporting. A quick glance at the doc of the 33F256MC710 : I find only one buffer register for the ADC of this PIC. It seems that DMA data transfert must be used if you are doing more than one ADC conversion. I have idea to workaround that problem. I guess that ...
- Thu May 29, 2008 12:21 am
- Forum: dsPIC Peripherals
- Topic: Rx Input Multiplexed?
- Replies: 5
- Views: 15423
Re: Rx Input Multiplexed?
Hi NigmaTech, All required dsPIC peripheral for this application are suported by the blockset. The blockset will help to build in no time the software for the dsPIC. You will have two Simulink model : - model onboard the dsPIC - model for the user interface running on your PC You have to create your...
- Wed May 28, 2008 8:09 am
- Forum: General Remark and Questions
- Topic: Creating sinusoidal PWM
- Replies: 4
- Views: 8851
Re: Creating sinusoidal PWM
Yes,wam wrote:can I get exactly same signal from PWM1L
However, one difference between PWM motor and OC (Output Compare) block is that the PWM signal period cannot be changed during execution (with the PWM block). Since your period is fixed (Frequency set to 4Khz), It is OK.
- Tue May 27, 2008 9:03 pm
- Forum: General Remark and Questions
- Topic: PWM output
- Replies: 7
- Views: 11558
Re: PWM output
Hi Defe, This model should work. You should get a duty cycle of 1/3. If it doesn't, try forcing the sampling rate of the constant to .001 for example. Using the OC block, you will be able to get a PWM signal with variable duty cycle and period. You just have to care about scaling theses two values w...
- Tue May 27, 2008 8:56 pm
- Forum: Requirement, Installation & Configuration
- Topic: Installation failure on matlab 6.5
- Replies: 1
- Views: 9393
Re: Installation failure on matlab 6.5
Hi Pick,
The blockset support matlab, starting from version 2006a, i.e. Matlab V7.2 (january 2006)
It is not gonna to work on earlier matlab version.
Lubin
The blockset support matlab, starting from version 2006a, i.e. Matlab V7.2 (january 2006)
It is not gonna to work on earlier matlab version.
Lubin
- Tue May 27, 2008 8:10 am
- Forum: General Remark and Questions
- Topic: PWM output
- Replies: 7
- Views: 11558
Re: PWM output
Hi Defe,
Could you upload your Simulink model file ? or a screenshoot as you like...
Could you upload your Simulink model file ? or a screenshoot as you like...
- Mon May 26, 2008 12:52 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Errata for dsPIC33FJXXXMCX06/X08/X10
- Replies: 3
- Views: 12210
Re: Errata for dsPIC33FJXXXMCX06/X08/X10
Hello Mariano,
All basic initialization task are done in the c file wih the same name as your model. Let say <ModelName>.c
At the bottom of this file is the initialization function :
void <ModelName>_initialize(boolean_T firstTime)>
I hope this will help.
Lubin
All basic initialization task are done in the c file wih the same name as your model. Let say <ModelName>.c
At the bottom of this file is the initialization function :
void <ModelName>_initialize(boolean_T firstTime)>
I hope this will help.
Lubin
- Sun May 25, 2008 10:11 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Errata for dsPIC33FJXXXMCX06/X08/X10
- Replies: 3
- Views: 12210
Re: Errata for dsPIC33FJXXXMCX06/X08/X10
Hi Mariano, About the first proposition: see what are the actual values being set for the involved registers This is difficult since for most peripheral, Theses register's values are not computed at the matlab workspace level but directly in the C code generated. Btw, isn’t it possible to avoid the ...
- Thu May 22, 2008 7:04 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Any plans to support new dsPics with 2 QEI ?
- Replies: 2
- Views: 11477
Re: Any plans to support new dsPics with 2 QEI ?
Same question as Mariano,
see : viewtopic.php?f=5&t=110#p299
I think I will do it. When will you need it ?
see : viewtopic.php?f=5&t=110#p299
I think I will do it. When will you need it ?
- Wed May 21, 2008 5:44 pm
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
Re: Compiling problem
Hi Julien, Thanks for your interrest for the blockset. My understanding is than Matlab could not acces to the PIC30 compiler. The compiler path must be added into the environment variables. To check if Matlab find the C30 compiler, you can type at the matlab prompt : >> !pic30-gcc The normal respons...
- Tue May 20, 2008 5:26 pm
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
Re: Compiling problem
Hi Julien, The new release (V0.98) of the blockset now support the PIC30 v3.10. Therefore, you have to install this version of the compiler (available on the website of Microchip) in order to have the blockset working. Do not forget to add the block "Configure Model for dsPIC" and to double click on...
- Mon May 19, 2008 6:30 pm
- Forum: General Remark and Questions
- Topic: Creating sinusoidal PWM
- Replies: 4
- Views: 8851
Re: Creating sinusoidal PWM
Hi Wam,
The project seems quite small and could do it with the demo version of the blockset.
I do not get the meaning of :
Lubin
The project seems quite small and could do it with the demo version of the blockset.
I do not get the meaning of :
You 'd rather start your project and post question about the model you create if you are in trouble.wam wrote:triangular waveform and obtain the output from PWM1L
Lubin
- Mon May 19, 2008 6:15 pm
- Forum: dsPIC Peripherals
- Topic: C function call
- Replies: 4
- Views: 16072
Re: C function call
Hi, Up to now, some bugs were reported about the C call function One bug appears when using C Function Call with one input and No output. Most of these bugs are now fixed and will be released very soon in the next version (0.98) Anyway, it may greatly help if you could upload on the forum a simple e...
- Sun May 18, 2008 11:50 pm
- Forum: bug reports
- Topic: Passing a Vector to the C-Function Call block
- Replies: 5
- Views: 16578
Re: Passing a Vector to the C-Function Call block
Hi, I corrected the bug : if you have only one input vector, you do not need to add an (unused) output to the function. This will be available in the next version (i.e. 0.97b) Remark about the inline parameters : When the C call function use input vectors with more than 2 elements (an array in C lan...
- Sat May 17, 2008 11:01 am
- Forum: Requirement, Installation & Configuration
- Topic: Installation problem :(
- Replies: 6
- Views: 14222
Re: Installation problem :(
Hi Kovak, It would be interesting to get your solution to the problem ! For the second question I want to do a notch filter with a dsPIC for an university project. The scheme is: Matlab ECG signal --> dsPIC filter ---> Matlab Graph Is it possible to do this? I don't want to create and flash the dsPI...
- Fri May 16, 2008 11:24 pm
- Forum: bug reports
- Topic: Passing a Vector to the C-Function Call block
- Replies: 5
- Views: 16578
Re: Passing a Vector to the C-Function Call block
Hi Mariano, I confirm the bug. Will fix that shortly ! I propose the following solution (while I am working on that bug !) - add an output to the C function call block (like char or whatever) - uncheck the "inline parameters" in Simulation ==> Configuration Parameters ==> Optimization This solution ...
- Fri May 16, 2008 7:59 pm
- Forum: Requirement, Installation & Configuration
- Topic: Installation problem :(
- Replies: 6
- Views: 14222
Re: Installation problem :(
Hi kova, Could you provide the complete compilation message (including the error) ? Note that he last version of the C30 compiler (V 3.10 and 3.10b) is not supported yet. It seems that microchip has changed the repertory where some difinition files are stored. This change make the matlab script unab...
- Fri May 16, 2008 12:21 am
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 30088
Re: How much RAM area can a program use?
Hi Mariano, Hi Masaki, in your function declarations (i.e. you C file) you SHOULD NOT include the extern keyword If you declare the variable (in the sense that you want the C file to provide a memory place to store it) in the C file, you are true (i.e. needs to remove extern keyword). However, there...
- Thu May 15, 2008 11:21 pm
- Forum: Requirement, Installation & Configuration
- Topic: Installation problem :(
- Replies: 6
- Views: 14222
Re: Installation problem :(
Hi Kova, It seems that you are using a version of the blockset for dsPIC that is not adapted to your matlab version. (so .p files are not recognized) You must use a version of the dsPIC blockset that is supported by your matlab version... ==> use the version of the dsPIC blockset that support Matlab...
- Thu May 15, 2008 1:14 am
- Forum: Website
- Topic: Set up a Wiki ?
- Replies: 5
- Views: 15538
Set up a Wiki ?
Hi, As I know that I do not spend enough time in writing tutorial and docs; the website quite bad to demonstrate the possibilities that Simulink provides with the Real Time Workshop Embedded Coder. II was thinking few weeks ago to set up a Wiki so as to be able to gather, with help of others, exampl...
- Wed May 14, 2008 8:32 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Configuration Option Missing in Master Block
- Replies: 5
- Views: 15219
Re: Configuration Option Missing in Master Block
Hi Mariano,
You could try sending a mail to Claudiu (mail at the bottom of his webpage : http://www.etc.ugal.ro/cchiculita/softw ... loader.htm)
It works once for me
Thanks for sharing that information about PGC/PGD...
You could try sending a mail to Claudiu (mail at the bottom of his webpage : http://www.etc.ugal.ro/cchiculita/softw ... loader.htm)
It works once for me
Thanks for sharing that information about PGC/PGD...
- Wed May 14, 2008 10:36 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Configuration Option Missing in Master Block
- Replies: 5
- Views: 15219
Re: Configuration Option Missing in Master Block
Hi Mariano, I have no idea if the chip can be programmed using any PGC/PGD pin. It may be only for debugging ? If anyone else tried... I mostly use the very usefull "tinybld" bootloader working with UART1 or 2. (I add a "reset" mechanism in my simulink model that reset automatically the dsPIC when i...
- Mon May 12, 2008 10:17 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Request Support for DSPIC33FJ64(128)MC802
- Replies: 9
- Views: 21616
Re: Request Support for DSPIC33FJ64(128)MC802
Hi Mariano, I am wondering to do some modification to the SPI module to get an interrupt driven SPI block. My ideas are clear now on how I am going to do it. It may be usefull to know more precisely how you want to use it in order to check that my implementation will fit your needs. I may addapt it ...
- Mon May 12, 2008 10:05 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Configuration Option Missing in Master Block
- Replies: 5
- Views: 15219
Re: Configuration Option Missing in Master Block
Hi Mariano, I understand that you are going to use MPLAB (i.e. no bootloader) to program and debug your microcontroller chip. You will set-up a project, import c and library files (.a) generated by Matlab/Simulink and the blockset for dsPIC, and compile the whole project using MPLAB. (This will enab...
- Wed May 07, 2008 9:43 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Sintax Error in Microchip Header File? - .c and .s ext files
- Replies: 3
- Views: 14889
Re: Sintax Error in Microchip Header File?
I guess I did not choose the right function name to call.
This model compile. Lubin
This model compile. Lubin
- Wed May 07, 2008 9:29 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Sintax Error in Microchip Header File? - .c and .s ext files
- Replies: 3
- Views: 14889
Re: Sintax Error in Microchip Header File?
Hi Mariano, I converged to the same solution. You were quicker! Anyway, the model compile without any 'C function Call' block, but when I am trying to access to one function, It is not ok ! It has maybe to do with the .h file that we do not declare... SPIMasterTest.o(.text+0xe2):C:\prog\Matlab2\RTWd...
- Tue May 06, 2008 9:41 pm
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
Re: Compiling problem
The C30 compiler V3.10 has been released few days ago. I did not test it on the blockset yet. There may be few problems.
I'll try to look at it soon.
Lubin
I'll try to look at it soon.
Lubin
- Tue May 06, 2008 8:54 pm
- Forum: dsPIC Peripherals
- Topic: A more friendly way to create a chip select with SPI ?
- Replies: 3
- Views: 12751
Re: A more friendly way to create a chip select with SPI ?
Try to check "Wait for incomming data (slave mode)" and uncheck "Wait for previous operation to finish, and reset before read".
The block menu is not very clear yet. I'll try to make it more clear in the next version...
The block menu is not very clear yet. I'll try to make it more clear in the next version...
- Tue May 06, 2008 7:48 pm
- Forum: Requirement, Installation & Configuration
- Topic: Compiling problem
- Replies: 29
- Views: 144704
Re: Compiling problem
Hi Julien, Could you provide your matlab version ; matlab installation directory ; Could you also check on the forum for similar problems ? (for example, Is the gmake.exe program available from the matlab prompt ? ) try typing !gmake and see what happen... is the C30 compiler installed ? Where is it...