electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Problems with Acoupel Midi > CV Pic program
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 3 of 4 [76 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2, 3, 4 Next
Author Message
diablojoy



Joined: Sep 07, 2008
Posts: 809
Location: melbourne australia
Audio files: 11

PostPosted: Mon Dec 13, 2010 12:46 am    Post subject: Reply with quote  Mark this post and the followings unread

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 Embarassed
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24499
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Mon Dec 13, 2010 6:48 am    Post subject: Reply with quote  Mark this post and the followings unread

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
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Mon Dec 13, 2010 7:13 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
diablojoy



Joined: Sep 07, 2008
Posts: 809
Location: melbourne australia
Audio files: 11

PostPosted: Tue Dec 14, 2010 1:23 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Tue Dec 14, 2010 5:20 am    Post subject: Reply with quote  Mark this post and the followings unread

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...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source

Last edited by fonik on Tue Dec 14, 2010 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ejr27233



Joined: Feb 08, 2010
Posts: 52
Location: UK

PostPosted: Tue Dec 14, 2010 9:36 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Tue Dec 14, 2010 2:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

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 Crying or Very sad

so for now i am not far from wanting to surrender. last option was to breadboard again...

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mattias



Joined: Jan 26, 2010
Posts: 28
Location: Cologne

PostPosted: Tue Dec 28, 2010 1:48 pm    Post subject: Got a working version 2.3 for MIDI2CV Reply with quote  Mark this post and the followings unread

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.


ACS_MIDI V2.3.1a.hex
 Description:
working image for MIDI2CV Version 2.3

Download (listen)
 Filename:  ACS_MIDI V2.3.1a.hex
 Filesize:  7.76 KB
 Downloaded:  369 Time(s)


ACS_MIDI V2.3.1.c
 Description:
working sourcecode for MIDI2CV ver 2.3

Download (listen)
 Filename:  ACS_MIDI V2.3.1.c
 Filesize:  9.99 KB
 Downloaded:  378 Time(s)


_________________
Red is black and plus is minus. http://www.bild-schall.com
Back to top
View user's profile Send private message
ejr27233



Joined: Feb 08, 2010
Posts: 52
Location: UK

PostPosted: Sat Jan 01, 2011 1:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

Many thanks for that.
I'll try it as soon as I get chance.
Back to top
View user's profile Send private message
mph



Joined: Aug 25, 2007
Posts: 88
Location: France

PostPosted: Mon Jan 03, 2011 4:26 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Mon Jan 03, 2011 4:48 am    Post subject: Reply with quote  Mark this post and the followings unread

thanks for the hint.

did anybody here built the quantizer?

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yusynth



Joined: Nov 24, 2005
Posts: 1314
Location: France

PostPosted: Mon Jan 03, 2011 6:11 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
mph



Joined: Aug 25, 2007
Posts: 88
Location: France

PostPosted: Mon Jan 03, 2011 6:20 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
PickNick



Joined: Oct 16, 2009
Posts: 82
Location: BP

PostPosted: Tue Jan 04, 2011 2:29 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
ACS



Joined: Oct 09, 2010
Posts: 2
Location: Paris

PostPosted: Tue Jan 04, 2011 5:29 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
MirlitronOne



Joined: Nov 07, 2009
Posts: 78
Location: Surrey, UK
Audio files: 2

PostPosted: Wed Aug 29, 2012 10:23 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Wed Aug 29, 2012 11:47 am    Post subject: Reply with quote  Mark this post and the followings unread

no, it is still sitting on my workbench...

but now that you remind me i will give ti a 2nd try (without creating a project in the MPLAB).

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MirlitronOne



Joined: Nov 07, 2009
Posts: 78
Location: Surrey, UK
Audio files: 2

PostPosted: Wed Aug 29, 2012 3:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
sneakthief



Joined: Jul 24, 2006
Posts: 569
Location: Berlin

PostPosted: Tue Nov 03, 2015 3:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Digging up this ancient thread to mention that I was able to successfully burn the ACX Quantizer using the current firmware posted on the ACX site.

I had to mess around with the fuse settings which were incorrect.

Here's what worked with my crappy K150 USB programmer using MicroPro in Windows:


quantizer-pic-settings-correct-fuses.jpg
 Description:
 Filesize:  72.86 KB
 Viewed:  548 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

quantizer-pic-settings-correct-fuses.jpg



_________________
Sneak-Thief - raw electrofunk
Back to top
View user's profile Send private message Visit poster's website
MirlitronOne



Joined: Nov 07, 2009
Posts: 78
Location: Surrey, UK
Audio files: 2

PostPosted: Tue Nov 03, 2015 5:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

I eventually solved the problem by purchasing a programmed chip from the author at a very reasonable price!
_________________
Life is like an analogue sequencer. Twiddle the knobs to avoid boredom.
Back to top
View user's profile Send private message Visit poster's website
braincell



Joined: Jun 24, 2015
Posts: 14
Location: UK

PostPosted: Sun Nov 15, 2015 9:14 am    Post subject: tl866a Reply with quote  Mark this post and the followings unread

Hi Everybody,
I have built up a board based on the hexinverter schematic , downloaded the firmware HEX file file.

but i cannot get the pic programmed with the TL855 programmer.

it says its programmed but doesnt work.

Can anyone here help ?

Thanks , Lee
Back to top
View user's profile Send private message
sneakthief



Joined: Jul 24, 2006
Posts: 569
Location: Berlin

PostPosted: Sun Nov 15, 2015 5:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

braincell - make sure the configuration bits (aka fuses) match the ones in the image I posted above.
_________________
Sneak-Thief - raw electrofunk
Back to top
View user's profile Send private message Visit poster's website
braincell



Joined: Jun 24, 2015
Posts: 14
Location: UK

PostPosted: Mon Nov 16, 2015 12:40 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi ,
Thanks for reply .

Does the image have to be binary or intel ?

Does ot load to code or data memory ?

Is there an offsett ??

Its a cheap tl866cs usb programmer from ebay.

Thanks lee
Back to top
View user's profile Send private message
sneakthief



Joined: Jul 24, 2006
Posts: 569
Location: Berlin

PostPosted: Mon Nov 16, 2015 5:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Lee: pic chips are almost always programmed with HEX files.

In your programmer software, check the configuration bits page - it looks something like this picture I found on the net:

Posted Image, might have been reduced in size. Click Image to view fullscreen.


And make sure the bits are set to the ones I used and posted in my earlier post: http://electro-music.com/forum/post-414216.html#414216

(and not the ones in this picture in this post!!)

_________________
Sneak-Thief - raw electrofunk
Back to top
View user's profile Send private message Visit poster's website
braincell



Joined: Jun 24, 2015
Posts: 14
Location: UK

PostPosted: Mon Nov 16, 2015 6:01 am    Post subject: pic program Reply with quote  Mark this post and the followings unread

Sneakthief , Thank you very much will try that over the next few days
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 3 of 4 [76 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2, 3, 4 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use