| Author |
Message |
Peake

Joined: Jun 29, 2007 Posts: 1113 Location: Loss Angeles
Audio files: 3
|
Posted: Mon Jun 07, 2010 11:39 am Post subject:
|
 |
|
OH, this is extremely welcome...I especially like the voltage addressing of scale type. Don't forget a scale based upon the harmonic series (Yamaha had this as an option for the modwheel for use in horn sounds). Also, an "octave" scale can be nice for transpositions etc. A scale which goes to the fifth, the octave above, the octave above plus a fifth, etc. _________________ We are selling emotions, there are no emotions in a grid. -mwagener
"IC 741. Sometimes you don't want fidelity." -Small Bear Electronics Catalog |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Tue Jun 08, 2010 2:08 pm Post subject:
|
 |
|
Uh oh ... I don't have any of the 16F684 myself, wanting to blow this code into one of my PICs, so I've been comparing the datasheets for the 16F684 side-by-side with the 16F689, of which I'd bought 5 of. I were understanding everything in reading each of the 2 PIC's pin functions, until I came to the CCP for the 16F684 and now I'm quite lost.
See, the 16F689 has a fair bit more power for the CCP/P1A than the '684. Converting / setting up the '689 to work in the same way as the '684 has me stuck.
Could anyone out there who has more experience than I with PICs, lend a hand by chance?
I'm trying to teach myself from the ground up, in PIC programming and have basically so far gone only through the first 5 or 6 lessons included with all of the literature for the PICkit 3 and it's companion 18F45K20 demo board. The 'tutorial' though, is assuming that you know many, many things already - so it's been a bit bumpy so far, in comprehending everything - even though I've understand the Basic programming language more and more since 1982 and I have a very ROUGH idea, on a little bit of study in programming in C and C++. (I'm also extremely comfortable with electronics design / building / etc. My biggest trouble so far has been in trying to find a nice 'walk through' in teaching yourself how to work with PICs. MPLab's literature isn't as friendly, as I'd hoped.)
Thanks for any possibilities.  |
|
|
Back to top
|
|
 |
Junk Rhythm

Joined: Jan 07, 2008 Posts: 81 Location: San Francisco, CA
|
Posted: Wed Jun 09, 2010 6:59 pm Post subject:
|
 |
|
| Rykhaard wrote: | | Could anyone out there who has more experience than I with PICs, lend a hand by chance? |
I wish I could be of help but like you I am also just jumping into these waters. Have you tried the Microchip forums yet? They have been quite helpful with every question that I have had so far. _________________ [twitter] [blog] [flickr] [toppobrillo] [buzz] |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Wed Jun 09, 2010 7:37 pm Post subject:
|
 |
|
| g.p.macklin wrote: | | Rykhaard wrote: | | Could anyone out there who has more experience than I with PICs, lend a hand by chance? |
I wish I could be of help but like you I am also just jumping into these waters. Have you tried the Microchip forums yet? They have been quite helpful with every question that I have had so far. |
Thank you for the suggestion. From a couple of areas that I had read through on their Forum though, especially from one person in particular, I'd come away with a very 'cold' feeling from the Forum overall - seemingly, if you didn't have a fair bit of knowledge about things.
You seem to have come out on the brighter side from it though so ... I'm not sure. I'll go back to it and search around more to get another idea from it hopefully.
(I far prefer the friendliness of EM to it - that's for sure. ) |
|
|
Back to top
|
|
 |
Junk Rhythm

Joined: Jan 07, 2008 Posts: 81 Location: San Francisco, CA
|
Posted: Wed Jun 09, 2010 8:24 pm Post subject:
|
 |
|
| Rykhaard wrote: | Thank you for the suggestion. From a couple of areas that I had read through on their Forum though, especially from one person in particular, I'd come away with a very 'cold' feeling from the Forum overall - seemingly, if you didn't have a fair bit of knowledge about things.
You seem to have come out on the brighter side from it though so ... I'm not sure. I'll go back to it and search around more to get another idea from it hopefully.
(I far prefer the friendliness of EM to it - that's for sure. ) |
I noticed that as well. There is a certain sense of "arrogance" in a lot of the posts which I think discourages anyone from answering questions. I found that the more information that I provided that supported the question would yield the best results. Since you have a detailed question I think you stand a good chance at getting some positive answers.
There is also the PIClist mailing list that might prove useful. I haven't participated on that mailing list but I do read some of the topics and they seem friendly enough.
The friendly atmosphere we have here is top notch. _________________ [twitter] [blog] [flickr] [toppobrillo] [buzz] |
|
|
Back to top
|
|
 |
Boogdish
Joined: Sep 21, 2009 Posts: 122 Location: Bloomington, IN
|
Posted: Wed Jun 09, 2010 9:05 pm Post subject:
|
 |
|
| g.p.macklin wrote: | | I got the quantizer working. Lot's of fun so far. I noticed that I'm getting a pop in the output from the quantizer. The pop is cyclic and repeats every few seconds. Anyone else getting this issue? |
I didn't experience this problem, but there are two things I would check out.
First, try taking the output from other points. Try straight out of the PIC bypassing the filter and buffer, then just the filter with no buffer. See if you can isolate where exactly it's coming from.
Secondly, I just realized that I didn't include the config fuses in the code. I've been operating it with all of the fuses disabled except for the power on timer. The click you hear might be the PIC resetting itself from MCLR being enabled without a pullup resistor on that pin.
I'm glad you're enjoying it otherwise, let me know if that was helpful.
Rykhaard, I took a quick gander over at the datasheet for the 689, and I didn't really see what the big difference was between them.
In addition to the example code given in the datasheet, this bit of code from the PIClist was helpful for my understanding of what was going on:
http://www.piclist.com/techref/microchip/16F877/pwm.htm |
|
|
Back to top
|
|
 |
Junk Rhythm

Joined: Jan 07, 2008 Posts: 81 Location: San Francisco, CA
|
Posted: Wed Jun 09, 2010 9:12 pm Post subject:
|
 |
|
| Boogdish wrote: | | g.p.macklin wrote: | | I got the quantizer working. Lot's of fun so far. I noticed that I'm getting a pop in the output from the quantizer. The pop is cyclic and repeats every few seconds. Anyone else getting this issue? |
I didn't experience this problem, but there are two things I would check out.
First, try taking the output from other points. Try straight out of the PIC bypassing the filter and buffer, then just the filter with no buffer. See if you can isolate where exactly it's coming from.
Secondly, I just realized that I didn't include the config fuses in the code. I've been operating it with all of the fuses disabled except for the power on timer. The click you hear might be the PIC resetting itself from MCLR being enabled without a pullup resistor on that pin.
I'm glad you're enjoying it otherwise, let me know if that was helpful. |
I was thinking that it might be the PIC resetting. As soon as I have some time I'll try taking the output straight from the pin as you suggested. _________________ [twitter] [blog] [flickr] [toppobrillo] [buzz] |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Thu Jun 10, 2010 6:50 pm Post subject:
|
 |
|
| Boogdish wrote: | Rykhaard, I took a quick gander over at the datasheet for the 689, and I didn't really see what the big difference was between them.
|
It were my first gander at it, not at that moment understanding what all of the bit settings were for. (And as right now, possibly tired, when I was reading it.) The '684 didn't have all of the settings possibilities and with all of this (PIC) being new to me ... momentary confusion.
I've just finished reading through all of the DESCRIPTIONS for the bits that are contained there, and everything basically, made sense now (even whilst, tired. )
I'll have to go through the assembler for the transposer dealing with that section then and work it out backwards, along with the datasheet to get things to sink in further.
Outside of that, the other differences between the 2 chips don't seem bothersome at all. I'd just have to see where to adjust the code for the different pins and hopefully, go from there. (A lot to learn, I know, but I've been having the desire for at least 2 years and now's as good a time to learn as any.
Still wishing their were a 'PIC For Dummies' book but ...
Thank you for including that as well. I'm going to have a closer look see as to what the PICList is all about.  |
|
|
Back to top
|
|
 |
Boogdish
Joined: Sep 21, 2009 Posts: 122 Location: Bloomington, IN
|
Posted: Wed Jul 21, 2010 9:42 pm Post subject:
|
 |
|
I'm designing a PCB for this project. It'll have an optional onboard voltage regulator for those that don't use a +5V rail and seperate grounds for digital and analog. I've also ported the code for use with a 12F683, so the board should be pretty small (I'm not done, but I'm shooting for 3/4" x 2 1/2").
My goal with this board is that in addition to people being able to build this circuit as a stand alone module it can also serve as a daughter board adding a quantize function to other modules like sequencers, LFOs, etc. I'll be adding a bypass mode for this purpose as well. |
|
|
Back to top
|
|
 |
Peake

Joined: Jun 29, 2007 Posts: 1113 Location: Loss Angeles
Audio files: 3
|
Posted: Sat Jul 24, 2010 1:45 pm Post subject:
|
 |
|
Congratulations, superb! I'm excited about this project. _________________ We are selling emotions, there are no emotions in a grid. -mwagener
"IC 741. Sometimes you don't want fidelity." -Small Bear Electronics Catalog |
|
|
Back to top
|
|
 |
emdot_ambient
Joined: Nov 22, 2009 Posts: 667 Location: Frederick, MD
|
Posted: Mon Jul 26, 2010 2:34 pm Post subject:
|
 |
|
| I would certainly buy some DIY quantizers......if they came with the PIC. I've got enough things to learn just building projects without adding programming chips into it! |
|
|
Back to top
|
|
 |
a100user

Joined: Oct 28, 2003 Posts: 158 Location: UK
|
Posted: Tue Jul 27, 2010 12:13 am Post subject:
|
 |
|
| I share emdot_ambient's view, a PIC with a PCB would be very cool. |
|
|
Back to top
|
|
 |
robotfunk
Joined: Jun 22, 2009 Posts: 20 Location: Netherlands
|
Posted: Sun Sep 26, 2010 12:06 pm Post subject:
|
 |
|
| The first time programming anything, and you start with assembly? I admire your guts. |
|
|
Back to top
|
|
 |
MickeyDelp

Joined: Feb 26, 2010 Posts: 42 Location: Austin TX
Audio files: 1
|
Posted: Thu Oct 28, 2010 3:52 pm Post subject:
|
 |
|
Great project Boogdish! Very elegant solution.
You might want to put a zener diode on the input to protect the PIC since control voltages can be higher than 5V. Which raises the question: is a 5V range enough? Would it be better to put a voltage divider on the input and doubler on the output so that it had a 10V range?
P.S. We're practically neighbors! I think Lampasas is about 90 minutes from Austin. It would be great if you could come to our monthly Handmade Music Austin workshops. _________________ MickeyDelp.com
Delptronics.com |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3950 Location: Germany
Audio files: 23
|
Posted: Fri Jun 17, 2011 4:43 pm Post subject:
|
 |
|
HELP, i need some help. am i drunk or dumb or both? i dunno.
a couple of weeks ago i burned the rev1 code to a 16F684 using MPLab and the PICKit2. yesterday i built the circuit on veroboard and it worked from the start. so far so good.
then i wanted to burn the varimod code. and guess what? i forgot how to do it...
this is how i did it, but it did not work at all:
i renamed the *.txt file to *.asm
i opened MPLab and started the project manager
i selected the correct device, the MPLab suite assembler compiler, and loaded the varimod asm file (now in the MPLab source folder)
i then selected release mode
then i did a right click on the asm file, selecting "build"
it stated a build success
then i tried to burn directly to the PIC from MPLab: no error message, but the module did not work
then i tried to export the build to a hex file in order to burn it manually using just the PICKit2 programmer. when reading the hex file all fields where 3FFF, so i think that something is completely wrong (suspicious)...
i am puzzled. i did it before and now i cannot get it to work - all the software/pic/programmer stuff is driving me crazy
so if anybody has any hints... i feel so dumb tonight. _________________
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24606 Location: The Netherlands, Enschede
Audio files: 310
G2 patch files: 320
|
Posted: Fri Jun 17, 2011 5:05 pm Post subject:
|
 |
|
I usually make a project with the asm file in it as the only file, just like you seem to have done; be sure to also sure to select your programmer as the current programmer and to not have a debugger set; then I hit the compile button from the toolbar, which will then compile and program ... all 3fff is completely wrong indeed - that means nothing got compiled. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3950 Location: Germany
Audio files: 23
|
Posted: Sat Jun 18, 2011 7:42 am Post subject:
|
 |
|
so i am doing it right in general!? the devil is in the detail... and the awkward thing is that i programmed the PIC successfully weeks ago - there must be a little thing that i miss now though. i wished there was someone knowledgable sitting right beside of me when working with PICs. _________________
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24606 Location: The Netherlands, Enschede
Audio files: 310
G2 patch files: 320
|
Posted: Sat Jun 18, 2011 7:50 am Post subject:
|
 |
|
Can imagine .. hard to see from here .. don't want to start MPLAB here now, being in the middle of a radio session - can try that tomorrow though. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Boogdish
Joined: Sep 21, 2009 Posts: 122 Location: Bloomington, IN
|
Posted: Sat Jun 18, 2011 8:33 am Post subject:
|
 |
|
| If all you need to do is compile to a hex file from an asm file, open MPLAB without starting a project. Go to File ---> Open, select the asm file, and then go to Project -----> Quickbuild. This should compile the hex file in the folder containing the asm file. |
|
|
Back to top
|
|
 |
fonik

Joined: Jun 07, 2006 Posts: 3950 Location: Germany
Audio files: 23
|
Posted: Sat Jun 18, 2011 11:31 am Post subject:
|
 |
|
guess what? that's exactly what i did right after jan's post. and it worked. i think i must have overdone it when creating a project and all that stuff.
anyways, thanks for taking care, boys! _________________
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source |
|
|
Back to top
|
|
 |
kingconga42

Joined: Jul 24, 2009 Posts: 13 Location: CT, USA
|
Posted: Sat Aug 20, 2011 9:25 pm Post subject:
PCBs? |
 |
|
Anyone thinking of making PCBs and programmed PICs? _________________ burnkit2600.com |
|
|
Back to top
|
|
 |
andrewF

Joined: Dec 29, 2006 Posts: 1176 Location: australia
Audio files: 4
|
|
|
Back to top
|
|
 |
kingconga42

Joined: Jul 24, 2009 Posts: 13 Location: CT, USA
|
Posted: Sun Aug 21, 2011 9:43 am Post subject:
|
 |
|
thanks! _________________ burnkit2600.com |
|
|
Back to top
|
|
 |
LektroiD

Joined: Aug 23, 2008 Posts: 1019 Location: Scottish Borders
Audio files: 2
G2 patch files: 2
|
Posted: Fri Sep 23, 2011 8:52 am Post subject:
|
 |
|
Could someone explain the whole AGND / GND thing to me? I'm not getting the explanation in the documentation at all... I assume it is like this...
with 15V source, use (+15V & AGND)
with 5V source, use (+5V & GND)
is that right?
I'm now wondering which GND/AGND I use to ground the sockets, or is this intended for banana jacks?
If someone could make a simple wiring diagram that would be great, as I'm not translating this from text at all.
Thanks in advance  |
|
|
Back to top
|
|
 |
emdot_ambient
Joined: Nov 22, 2009 Posts: 667 Location: Frederick, MD
|
Posted: Sun Sep 25, 2011 3:38 pm Post subject:
|
 |
|
My understanding is that the circuit was designed for a +15V power supply, but can run on anything from +9V to +15V.
The circuit also needs a +5V source but that can either come from a separate power supply, OR it can be derived from the +15V supply using the power regulator.
So, if you're using a separate +5V supply, then you SHOULD NOT use the power regulator, and the 0V from the +5V supply can be used for the GND input, and the 0V from your +15V supply to the AGND input, thus keeping the digital and analog grounds separate.
If you're NOT using a separate +5V supply, then you MUST USE the power regulator and you can run both GND and AGND from the same ground. But I think you do have to use both (as in just connect them together).
I'm using a 4-pin MOTM power distribution system (+15V, -15V, and 2 0V wires with no +5V supply). So with the power cable I'm making, I'm connecting one of the 0V lines from the PSU going to GND and the other to AGND. The -15V I'm actually using on a daughter board that's limiting the input of the CV input to +5V. _________________ Looking for a certain ratio since 1978 |
|
|
Back to top
|
|
 |
|