Author |
Message |
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sat Mar 28, 2009 1:13 am Post subject:
|
|
|
BobTheDog wrote: | Well looks like the compiler needed is MPLAB C Compiler for PIC24 and dsPIC DSCs which is $500. What are you using?
Cheers
Andy |
The evaluation version of the same. As Jan explained to me in the chatroom, the only gotcha is that after 30 days the optimizer stops, um, optimizing. But with 2 kbytes of program memory, who cares? Microchip wins again... _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sat Mar 28, 2009 4:23 am Post subject:
|
|
|
BTW, there are only two boards left and I think one of them is spoken for, leaving just one board free to anyone who wants it... Be the first on your block to have an EChucK sculpture! I can chop up the board or mail it whole, your choice... _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Sat Mar 28, 2009 4:32 am Post subject:
|
|
|
BobTheDog wrote: | Well looks like the compiler needed is MPLAB C Compiler for PIC24 and dsPIC DSCs which is $500. What are you using?
|
You can run it in evaluation mode forever (look for student version), but the optimizer will be disabled after a month (unless you have valid student ID or so I guess) - I've looked a bit into how it generates code for the PIC24 and I was not too happy with that, size wise, speed wise and for readability, so it would be a good thing to optimize critical code as assembly anyway. _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Sat Mar 28, 2009 5:31 am Post subject:
|
|
|
Andy, it comes with the student version of the C compiler I think ... at least so did the pic32 eval. board I once ordered. _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sat Mar 28, 2009 5:33 am Post subject:
|
|
|
Ah, thats a shame! |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sat Mar 28, 2009 9:38 pm Post subject:
|
|
|
No need to gripe, I've got the complete setup on my little netbook and next month I'll buy the PicKit3 programmer also. Then I will be able to program chips with your designs on them and mail them to you, if that's what we want to do. _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sat Mar 28, 2009 11:23 pm Post subject:
|
|
|
Hi Les,
No problem, Ill get a kit as well. If we are going to do it we may as well do it properly
Cheers
Andy |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sun Mar 29, 2009 3:30 am Post subject:
|
|
|
BobTheDog wrote: | Hi Les,
No problem, Ill get a kit as well. If we are going to do it we may as well do it properly
Cheers
Andy |
Andy, I feel so blessed by friendship and collaboration! You can be our European chip distributor. I'd like to get some chips in the hands of Kassen, et al... _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sun Mar 29, 2009 10:23 am Post subject:
|
|
|
Hi Les,
No Problems.
I re-installed the IDE and DSC compiler and its really weird it looks totally different to the first time I installed it. This of course if probably something to do with me, I have a bit of a fever!
Which image does yours look like?
Cheers
Andy
Description: |
|
Filesize: |
103.08 KB |
Viewed: |
414 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
|
Filesize: |
141.53 KB |
Viewed: |
416 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
|
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sun Mar 29, 2009 10:58 am Post subject:
|
|
|
Mine looks like the first image, in blue, but I saw the second image on one of the C pages. I think the link I gave you was inside the hierarchy of Microchip web pages, not the main page of the C compiler. The main page shows a tan colored setup like the second image. Perhaps if we read on the website we can figure this out. _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sun Mar 29, 2009 11:22 am Post subject:
|
|
|
Well they are two totally different IDEs, it is very strange I think I may be going a little mad!
Mine looks like the first one and I am going with that!
I have you example built and simulated, had to change the include stuff as follows:
#include "p33FJ12GP201.h"
#include "timer.h"
#include "outcompare.h"
#include "ports.h"
And set the include path. I don't quite know why we have a difference here.
I am looking at the docs at the moment to work out how to simulate input and output at the moment. |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sun Mar 29, 2009 11:46 am Post subject:
|
|
|
Andy, in the Project Manager Wizard, you select the toolset and set up the library directories and such. First off, did you use the Project Manager Wizard, and second did you select the correct toolset, taking the default directory paths? I should have explained this in more detail in the tutorial that I wrote. _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sun Mar 29, 2009 11:53 am Post subject:
|
|
|
Yep did all that.
<include> is usually used for system includes while "include" is used for user includes.
Probably something wrong with the path for system includes in my setup somewhere. |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Thu Apr 02, 2009 9:49 am Post subject:
|
|
|
Hi Les,
Been looking ad some of the documentation on the dsPIC33FJ12GP201 and there is loads of it!
How is this device being connected to the rest of the eChuck universe, what areas should I focus on learning?
Cheers
Andy |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 02, 2009 9:52 am Post subject:
|
|
|
BobTheDog wrote: | Hi Les,
Been looking ad some of the documentation on the dsPIC33FJ12GP201 and there is loads of it!
How is this device being connected to the rest of the eChuck universe, what areas should I focus on learning?
Cheers
Andy |
Andy,
What we need next, and I should gett off my @$$ and do this myself, but what we need is an ADC interface. If you could take the test code 1 program and mod it so that it receives analog in and writes that to the PWM output, that would be awesome dude!
Les _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Thu Apr 02, 2009 9:57 am Post subject:
|
|
|
Well I would love to but where is the A from the ADC coming from? |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 02, 2009 10:05 am Post subject:
|
|
|
Andy,
Pins 2, 3, 4, and 5 are connected as analog ins on the EChucK boards. Pins 11, 12, 15, and 16 are connected as PWM outputs. The example test code 1 program configures all four outputs to deliver the PWM output, but that can change. I'd ADC all four inputs and sum them.
Les _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Thu Apr 02, 2009 10:07 am Post subject:
|
|
|
I take it 12bits is going to be enough otherwise it looks like we have to over-sample and it looks a little tricky to me! |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 02, 2009 10:08 am Post subject:
|
|
|
Checking this out now.... _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 02, 2009 11:06 am Post subject:
|
|
|
Andy,
Upon glancing at the docs, I'd suggest using their code and pasting in the test code 1 program, I suppose...
Les _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
BobTheDog
Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Thu Apr 02, 2009 11:24 am Post subject:
|
|
|
Looks like we may be down to 10bits as multiple channels are not supported in 12bit mode!
It all looks quite complicated I would say we might as well dispense with C and go for assembler. |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 02, 2009 11:34 am Post subject:
|
|
|
BobTheDog wrote: | Looks like we may be down to 10bits as multiple channels are not supported in 12bit mode!
It all looks quite complicated I would say we might as well dispense with C and go for assembler. |
Your call. I'm down with that. _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
|