Yep. That was a typo. Thanks for catching that.
Thanks so much for helping me with this. Sorry for not getting back sooner. I was out for two weeks with Covid and then I got sidetracked by a...
Type: Posts; User: keithv; Keyword(s):
Yep. That was a typo. Thanks for catching that.
Thanks so much for helping me with this. Sorry for not getting back sooner. I was out for two weeks with Covid and then I got sidetracked by a...
Thank you very much for that lesson, Richard. I really need to work on learning ASM.
I checked the amount of flash used on the previous version. It's at exactly 2k words with the inefficient PBP...
That explains a lot. I should have realized what the problem was since the flash on the 16F684 is 2048 and the compiler was complaining about something being more than 2047.
Wow. Nice catch. Eighth is spelled incorrectly too.
I was worried about that. I'm using PBP3.0 midrange edition. I seem to recall a little counter in the lower left hand corner of the dev environment that told you how much space your code was using....
I'm using the PIC16F684. The previous version of this code worked just fine when the PT2399 delay chip had a very precise delay time, but they have become inconsistent which causes the tap tempo...
Duh. Sorry. I'm a pretty much a newb and it's been at least a year since I've used PBP. It took me like 2 days to figure everything that was going on here, and I was the one that wrote it.
I'm...
Sorry. It's pretty long. This is for use with an electronic music effect device - and echo module. It's doing 3 main things. The first is a signal routing/bypass that uses A5, C3, and C5 to turn...
How do I locate the relevant code fragment?
[ASM ERROR] Argument out of range (2135 not between 0 and 2047) (0) : Error[126]
When I click "compile" the progress bar gets all the way up to 100% and then it goes from green to red and I get...
It's probably your copy and paste, because it's done it to me before on this forum, but if the code is indeed correct, your ANSEL, ANSELH, TRISC, and TRISA don't look right. It should a % sign...
I removed the midi connections and just connected the TX of the transmitting PIC to the RC of the receiving PIC. Here is the code I'm using for each:
transmitting:
define OSC 20
define...
Adding the dec modifier didn't help. I tried adding it to hserout as well and it didn't work. Maybe it's my hardware. This is what I'm trying to use.
8641
Can you recommend something else...
Yes, the LDC is working just fine. The baud rate is the standard MIDI baud rate. I'm trying to make a MIDI controller.
I've updated the code with the suggestions and made it a little more...
That didn't help. I also realized that PORTC register should have been TRISC=%10000000. I fixed that, but it didn't help either.
Thanks for all the suggestions. I've been sidetracked by another project, but I will revisit this and give them a try and let you know how it works out.
I'm trying to get one PIC to talk to the other. I'm not using MIDI messages at this point, but I am using MIDI hardware to connect the two PICs. The schematics are found here ...
I added at .1uF to the 5v and that did seem to reduce the noise a bit. Not to an acceptable level, but it did help.
I'm using a small bread board. The PIC and power supply are on one side of the bread board. The jacks are on the other side. The jacks are your typical enclosed 1/4" stereo jack like a Switchcraft...
To make this as simple as possible, all this is, is a 5v power supply, a PIC, and two 1/4" jacks that share ground. The PIC is only connected to +5v and ground. The CCP1 pin isn't connected to...
I was hoping there was a solution in the software and not the hardware. I've seen other similar projects where they used the same PIC16F684 but used a 20MHz external crystal higher frequencies.
It seems to be in the ground. Even so much as sharing the ground with shielded coax where the signal isn't even going anywhere near the MCU still has noise.
I'm trying to use PWM within a circuit that handles an audio signal. It's creating a lot of high frequency noise. I'm using a 16F684. I've tried separating the analog and digital ground planes. ...
Thanks so much!
Yes! That fixed it. I didn't realize that each data space had its own address. I thought everything in the statement was stored at the designated address.
write 4, 1, 2, 3
So 1 is stored...