| Author |
Message |
diablojoy

Joined: Sep 07, 2008 Posts: 737 Location: melbourne australia
Audio files: 11
|
Posted: Mon Dec 13, 2010 12:46 am Post subject:
|
 |
|
maybe throwing you a curve ball, not sure. pic's are not my thing yet
however that debug code may be pointing you in a reasonably logical direction to follow
[quote] | Quote: | void Init_PIC(void){
OSCCON = 0b01111100; //osc à 8 MHz
<edit>
} |
there is a choice of 6 possible speeds for the internal clk
see page 37 onward of the data sheet
I could be way off but maybe worth a look in that area
and yes I think you are correct. to use an ext osc would require reconfig of I/O as one of the ext clk pins is being used for I/O from what i could see from the schematic so that would be very difficult but in any case as this appears to have worked for others the cct should work and the code should work as is, i think . does the pickit2 auto detect what clk and at what speed is being used by the PIC I would have assumed it would have too but....
hope this is some help anyway and not a distraction  |
|
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 19621 Location: The Netherlands, Enschede
Audio files: 116
G2 patch files: 317
|
Posted: Mon Dec 13, 2010 6:48 am Post subject:
|
 |
|
| diablojoy wrote: | | does the pickit2 auto detect what clk and at what speed is being used by the PIC |
I don't know for sure for the Pickit, but more expensive dubug tools like ICD2 and RealIce do not auto detect processor speed. _________________ Jan |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3634 Location: Germany
Audio files: 23
|
Posted: Mon Dec 13, 2010 7:13 am Post subject:
|
 |
|
anyways, if someone successfully built this module, the problem will not be in the code (porimary). could it be a bad collaboration between the PICkit2 and the code?
i have the feeling, that i am way too deep in the issue - actually it should not be any issue, if others build this project without any issue...
i am puzzled. _________________
cheers,
matthias
____________
fonitronik at
FlickR (pix) / SoundCloud (sounds) / YouTube (vids) / Vimeo (vids) / facebook (news) |
|
|
Back to top
|
|
 |
diablojoy

Joined: Sep 07, 2008 Posts: 737 Location: melbourne australia
Audio files: 11
|
Posted: Tue Dec 14, 2010 1:23 am Post subject:
|
 |
|
perhaps a gentle enquiry to rykhaard he has bought a pickit3 some few months ago he may have come across this or something similar enough
I do have a feeling it is something simple in the communication between
the PIC and the pickit2 however as jan said using the internal osc and having a midi interface is not great perhaps an out of spec PIC ? though the internal clock is trimmable going by the data sheet . have you tried another PIC yet ?
please post your result if you do resolve this as i do have an ulterior motive, I was planning to buy a pickit2 myself early next year
for the acoupel master clock and cv recorder projects and therefore problems like this one are of some concern to me |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3634 Location: Germany
Audio files: 23
|
Posted: Tue Dec 14, 2010 5:20 am Post subject:
|
 |
|
| diablojoy wrote: | | perhaps a gentle enquiry to rykhaard he has bought a pickit3 some few months ago he may have come across this or something similar enough |
since i am pretty clueless i will try that.
| Quote: | I do have a feeling it is something simple in the communication between
the PIC and the pickit2 however as jan said using the internal osc and having a midi interface is not great perhaps an out of spec PIC ? though the internal clock is trimmable going by the data sheet . have you tried another PIC yet ? |
unfortunatley the thread title states the MIDI2CV, however i am trying to build the quantizer.
anyways, i tried another PIC without success, and i have been able to burn a test program to another PIC.
the current status as i can see it: i created a hex file from the c code file and successfully programmed the PIC (i was able to verify the programming, after setting the code protection to OFF in debug mode).
i quadruple checked the peripheral circuitry and found no error.
so it would be helpful if anybody would/could send me a programmed and proven working PIC (all to my cost for sure!). i then could narrow the error down a little bit more... _________________
cheers,
matthias
____________
fonitronik at
FlickR (pix) / SoundCloud (sounds) / YouTube (vids) / Vimeo (vids) / facebook (news) Last edited by fonik on Tue Dec 14, 2010 10:07 am; edited 1 time in total |
|
|
Back to top
|
|
 |
ejr27233
Joined: Feb 08, 2010 Posts: 43 Location: UK
|
Posted: Tue Dec 14, 2010 9:36 am Post subject:
|
 |
|
As the OP I've tried everything and still cant get it working......
what it has done is make me look into PIC's and Midi > CV and I'm thinking of trying to design /program a combination of 16fXXX PIC (external crystal) and one of these
http://docs-europe.electrocomponents.com/webdocs/0e43/0900766b80e439ff.pdf
to get 6 CV's, 6 velocities and 6 triggers. Ideal for midi guitar and very cheap as the DAC is about 8 euros.
Does anyone know if this combination would work?? |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3634 Location: Germany
Audio files: 23
|
Posted: Tue Dec 14, 2010 2:57 pm Post subject:
|
 |
|
Quantizer:
today i think i managed what you suggested in regards to the config bits.
i switched to debug mode and built the project. then i run debug. as before all the code protection was switched off by MPLAB. i then EXPORTED the file via file/export menu to hex code, while i checked off the "config bits are set in code" option in the confog window.
i then was able to load the hex without any error message into the PICkit2 programmer software - and write, verify, and read the code without any error.
alas, the quantizer does not do anything
so for now i am not far from wanting to surrender. last option was to breadboard again... _________________
cheers,
matthias
____________
fonitronik at
FlickR (pix) / SoundCloud (sounds) / YouTube (vids) / Vimeo (vids) / facebook (news) |
|
|
Back to top
|
|
 |
mattias

Joined: Jan 26, 2010 Posts: 28 Location: Cologne
|
Posted: Tue Dec 28, 2010 1:48 pm Post subject:
Got a working version 2.3 for MIDI2CV |
 |
|
Sorry to jump into this thread. I also had trouble with the HEX file from acoupel.com for the MIDI2CV version 2.3.
The issue with the source was in the __CONFIG -line. After some adjustments it worked for me.
The original bit-string for the __CONFIG line from acoupel.com seems to be broken:
I think the line
__CONFIG(1111111101011000);
should read
__CONFIG(0b1111111101011000);
or
__CONFIG(0b11111101011000);
(notice the leading "0b".)
Please note that the new source code uses symbols instead of single bits for the __CONFIG line.
| Description: |
| working image for MIDI2CV Version 2.3 |
|
 Download |
| Filename: |
ACS_MIDI V2.3.1a.hex |
| Filesize: |
7.76 KB |
| Downloaded: |
98 Time(s) |
| Description: |
| working sourcecode for MIDI2CV ver 2.3 |
|
 Download |
| Filename: |
ACS_MIDI V2.3.1.c |
| Filesize: |
9.99 KB |
| Downloaded: |
82 Time(s) |
_________________ Red is black and plus is minus. http://www.bild-schall.com |
|
|
Back to top
|
|
 |
ejr27233
Joined: Feb 08, 2010 Posts: 43 Location: UK
|
Posted: Sat Jan 01, 2011 1:34 pm Post subject:
|
 |
|
Many thanks for that.
I'll try it as soon as I get chance. |
|
|
Back to top
|
|
 |
mph

Joined: Aug 25, 2007 Posts: 66 Location: France
|
Posted: Mon Jan 03, 2011 4:26 am Post subject:
|
 |
|
Hi
may I suggest you to post in the french Yusynth forum: Alain Coupel has a dedicated subforum ( called "ACXSynth" ). And I think it's not a problem if you post in english. So you could have help from the man himself.
http://forum.yusynth.net/
I haven't finished this module yet, but it seems the V2.3 is working for other people with no problem.
Good luck. |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3634 Location: Germany
Audio files: 23
|
|
|
Back to top
|
|
 |
yusynth

Joined: Nov 24, 2005 Posts: 1162 Location: France
|
Posted: Mon Jan 03, 2011 6:11 am Post subject:
|
 |
|
| mph wrote: | Hi
may I suggest you to post in the french Yusynth forum: Alain Coupel has a dedicated subforum ( called "ACXSynth" ). And I think it's not a problem if you post in english. So you could have help from the man himself.
http://forum.yusynth.net/
I haven't finished this module yet, but it seems the V2.3 is working for other people with no problem.. |
Note that if you want to post on the yusynth forum you MUST select French as the default language otherwise you wont succeed in registering : this is a a quick and dirty trick to block SPAM robots which always select english. Once registered you may post in english this is not a problem
Yves _________________ Yves |
|
|
Back to top
|
|
 |
mph

Joined: Aug 25, 2007 Posts: 66 Location: France
|
Posted: Mon Jan 03, 2011 6:20 am Post subject:
|
 |
|
Sorry Matthias, I don't even know if someone build the quantizer on the yusynth forum... never seen a build report for this module.
But you should ask Alain for this one too ( his nickname on yusynth/forum is "München"). |
|
|
Back to top
|
|
 |
PickNick

Joined: Oct 16, 2009 Posts: 80 Location: BP
|
Posted: Tue Jan 04, 2011 2:29 am Post subject:
|
 |
|
hi!
i tried the latest midiCV hex via PicKit2///hex from mattias.
looks ok!
there was no protection error:)
i will try the circuit soon!
thx! _________________ Allow theex.nl |
|
|
Back to top
|
|
 |
ACS
Joined: Oct 09, 2010 Posts: 2 Location: Paris
|
Posted: Tue Jan 04, 2011 5:29 am Post subject:
|
 |
|
Hi everybody,
the problem you have seems to come from the __CONFIG macro.
You can find a new version of my firmware on my new website : www.acxsynth.com
(I changed my name, I'am not ACS anymore but ACX !)
This new site is still under construction, there are a lot of mistakes, but the firmware for MIDI2CV is OK.
Happy new year !
Alain |
|
|
Back to top
|
|
 |
MirlitronOne

Joined: Nov 07, 2009 Posts: 77 Location: Surrey, UK
Audio files: 2
|
Posted: Wed Aug 29, 2012 10:23 am Post subject:
|
 |
|
| Quote: | thanks for the hint.
did anybody here built the quantizer? |
Matthias, did you ever get the ACX quantizer working? Because I'm in a similar situation with programming the PIC chip. _________________ Life is like an analogue sequencer. Twiddle the knobs to avoid boredom. |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3634 Location: Germany
Audio files: 23
|
|
|
Back to top
|
|
 |
MirlitronOne

Joined: Nov 07, 2009 Posts: 77 Location: Surrey, UK
Audio files: 2
|
Posted: Wed Aug 29, 2012 3:11 pm Post subject:
|
 |
|
Well, it's a long while since I did any PIC programming, but I recall that the configuration data had to be in one part of memory and the program somewhere else. I'm using a Phyton programmer which is a pretty good piece of kit, but it just seems to take the raw hex data and try to slap it straight into the chip. If I simply try to load it up, it fails. If I offset the loading to start at location 100, it loads and verifies perfectly - but the quantizer still doesn't work. Like you, I've thoroughly checked all the support circuitry.
Looks like I'll have to go back to the textbooks... But somebody out there must know how to get this to work. _________________ Life is like an analogue sequencer. Twiddle the knobs to avoid boredom. |
|
|
Back to top
|
|
 |
|