I am still getting logged off the forum with just about everything I do (Reading messages, trying to post,...). I also just noticed that there doesn't seem to be anyone posting new messages. The...
Type: Posts; User: JimAvanti; Keyword(s):
I am still getting logged off the forum with just about everything I do (Reading messages, trying to post,...). I also just noticed that there doesn't seem to be anyone posting new messages. The...
Hello Henrik,
I am trying to send you a private message, but I keep getting logged off each time I attempt to. Could you send me a private message so that I can see if reply works? Thanks,
Jim
I am having problems posting private messages. I keep getting logged off with every attempt. I thought I would try a forum message to see if I have the same problem.
Jim
That worked Awesome! Thank you so much! I don’t know why I was thinking I was running at 4GHz, but even at 8GHz I didn’t think it would sound that good. Perfect!
Jim
I didn't think a 4MHz PIC would be fast enough to get a decent tone by toggling a pin in a loop, but I will definitely give it a try. The frequency is not critical, but I was looking for a nice...
Art,
I have working boards already designed using the 10F222, which I chose because of the small pin count and because the 10F322 could be used in its place (Except PBP does not support the 322). I...
Something that toggles the port 1 time through the same loop would give you an equal 50% duty if that is what you are trying for:
HEAD:
PORTB.6 = PORTB.6 ^ %1
Goto HEAD
Can you just turn the interrupt off just before executing the Pulsout command and then turn it back on just after it is complete?
I am using a 10F222 6-pin device to simply generate a tone when trigger input is high. The tone is adjustable by using an analog input simply tied to a 10k POT between 5V and ground. The 10F222,...
Has anyone ever used a TI TPA2016D2 stereo Audio AMP? It has an optional I2C interface for setting its functions. I am looking for a code example for setting gain. It is a QFN package, but there...
Hi Dave,
I just looked at the datasheet for the LTC6990 and it does look like it could work for what I need. I would have to test how the frequency ranges sound first, but it seems to have...
Henrik,
Without hardware PWM I don't really need to go any further with this. It is working good enough for what I need it for and the tone range is good. I knew this would be a very small...
Thanks again Henrik,
This works pretty good now. I would still like to get rid of the sound command and replace it with a steady HPWM signal eventually, but this will get me by for now and it...
Thanks Scampy,
That worked. I was using #ASM & #ENDASM instead of ASM & ENDASM.
Jim
Henrik,
You are absolutely correct. I indented the entire line including the "@". It worked once I indented. I also tried the ASM/ENDASM without the "#" and that also worked.
Thanks,
Jim
Dave,
The program I wrote so far is just a simple test to generate sound (Attached). It uses the sound command like your program and it works, but I wanted to eventually use hardware PWM so that...
Henrik,
I did have the .inc file line commented out (That is the first thing I usually do when working with a new pic). I tried
"__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON & _IOFSCS_8MHZ" indented...
I am trying to do what seems like one of the simplest PIC programming tasks I ever did and it is turning into a nightmare. All I want to do is use the smallest pin count device possible to monitor 1...
Dave,
I did try without the "PROTECT_OFF". I was testing different things and forgot I left that in there. I just tried what you sent me and I get errors with the #CONFIG and #ENDCONFIG. Maybe...
I have used many different pics before, but I am having a problem using a 10F222. In compiler options I have PBPL unchecked and under the assembler tab I have "Use MPASM" Checked (I am using a 64bit...
I need to program some PICs that my pickit3 does not support. In searching through my ZIF adapters (To see if any can be adapted to work with the U2 programmer) I came across an old programmer I...
Yes, Registers are what I meant. I just ordered a few PIC10F322 & 12F1840 chips (They are very small - 6 & 8 pin). I figure the best way to be sure I get the tones I want at a volume I expect would...
Mark,
I have the source code in C (MPLAB) and compiled HEX code. I would like to see if you can flash them for me with the HEX code. I can wait until you get back. I made 4 boards. you can...
Hi Henrik,
It is a discontinued design by someone else and made available for download with HEX file and C source code. It does use the USB module so it would probably be difficult to modify. I...
Hello all,
I have Hex code for a PIC16C745 and I already laid out boards with a Pickit 2 / 3 compatible header. I assembled 4 boards before I realized the pickit 2 / 3 can't program this device. ...