Or just
Loop:
IF A = 1 AND B < 10 THEN
B = B + 1
GOTO Loop
ENDIF
Type: Posts; User: ALFRED; Keyword(s):
Or just
Loop:
IF A = 1 AND B < 10 THEN
B = B + 1
GOTO Loop
ENDIF
Do you mean how would you have the different LEDs flash a different number of times depending on how many times you push the button? This could be accomplished by waiting for the input pin to go high...
I am not sure if you can have more than one condition in a WHILE WEND (although it would be easy enough to find out with a test program). If you can't have more than one condition then you could try...
I fixed the problem. As it turned out there was no problem with my origonal code. The problem lay in the configuration of pin B0. I traced the bad signals I was getting back to that point with my...
Here's the code:
TRISA = 0
TRISB = 2
CMCON = 7
ADCON1 = %00001111
ADCON0 = 0
symbol Off_1 = PortA.0
Symbol On_1 = PortA.1
I have been recompiling the code for the PIC I want to use all along and it still does not work. My hardware is built so that all the corsponding I/O pins on ports A and B are conected to the same...
Hello, I am working on a program that checks the continuity of several circuits and processes the data to genarate several output signals. I have the code working flawlessly on my 16F84A but when I...
If you find MOSFETs confusing you may wish to use an H-Bridge IC. The SN754410 is a full H-bridge in a DIP package. I have successfuly used this chip to drive two motors forwards and backwards on a...
I recomend using an lm386 audio op amp to handle the amplification. If you boost the gain up by connecting a 20uf capacitor accross pins 1 and 8 you may get some distortion at the ouput to make your...
My project will be using SRAM. EEPROM or flash will not work since I will be constantly re-writing the memory. I understand that external memory busses have been around but on some of the microchip...
I am working on a project that will require large amounts of RAM. It has come to my attention that some of the new PICs include an external memory bus. Apperently, this bus is able to acces up to 2MB...
It worked!! thanks for the idea Chris. I am still not exactly clear on why it didn't work the first time but hey, it works now so no complaints. again thanks for all the help.
Hey guys, thanks for the ideas. Although what Chris said seems to make sense, I was able to run this code on a PIC16F88 with no problems at all. I also wrote a similar program that uses portc.4 as...
Hello, I am having some trouble geting simple data into my PIC16F767. I have writen a program that goes somthing like this.
TRISB = %11111111
TRISA = %00000000
ADCON1 = %00001111
Start: IF...
Hi, I recently wrote a program to control 12 servos. The program ran perfectly on my PIC16F84-A but when I tried to run it off my 16F88 it did not control all of the servos properly. The F88 caused...
Hi, does anyone know how I could transfer byte sized variables from one PIC to another? I would like to use the USART for my application but I could not make it work. From my understanding the USART...
HI, I tried the code that Ron Marcus posted and it did not work. I think the problem is in the receiver PIC software, (when I hook a speaker up to the serial line I can hear the data flowing). I...
Hi, I tried Ron Marcus's "endif" and it did not compile. nothing seems to be working and I am beginning to thing that I should try the HSERIN and HSEROUT commands instead. My actual application will...
Hi, i just realized that I typed my code in wrong. I had it the way you suggested but it still doesn't work. any other ideas of what could be wrong?
Thanks for any more help.
Hi, I am trying to interface two PICs together via serial connection. I am using two PIC16F88s running at 4mhz. PortB.0 on the tx chip is connected to PortB.0 on the rx chip. I have a button...