{ Set up hardware }
Begin:
{ Set RA1 as input }
{ Set RA6 as output }
Loop:
{ Set RA6 = (not) RA1}
goto Loop
I wouldn't recommend a goto statement.In addition to what uC we would also need to know what you are3 writing it in? Assembler? Compiler? Which?
The code would follow a scheme such as this:
Moderators note: used code tags for CC:{ Set up hardware } Begin: { Set RA1 as input } { Set RA6 as output } Loop: { Set RA6 = (not) RA1} goto Loop
Could you quote another possibility guaranteed to be in every language?I wouldn't recommend a goto statement.
You are being highly unfair. It is obvious that odm can read Cena's mind.Could you quote another possibility guaranteed to be in every language?
Hi, please provide schematic. reason: to find out how you connect the lot and more are you using an external xtal?PIC16F877A
And I use MPLAB IDE v8.83 as program the solution above
And I'm just 17... so that's many things I don't know about too much...
But how about the OSC2 which also mean as RA6?Use the wizard to start a new project and make sure you have the correct chip and compiler selected. In your main.c you need #include <pic16f877a.h>, then you will not get the "undefined identifier error".
Also, as far as I can tell one the datasheet you do not have a RA6. http://ww1.microchip.com/downloads/en/DeviceDoc/39582C.pdf
I don't see a RA6 on that pin. What makes you think OSC2 means RA6?But how about the OSC2 which also mean as RA6?
As the others have observed, the '877A does not have the ability to use one of the OSC pins as RA6. The 16F887A and others do, but not this one. It's important to look carefully at the datasheet for the exact PIC you are using. Many features are exactly the same from PIC to PIC but those subtle differences are why the part numbers are different.But how about the OSC2 which also mean as RA6?
by Jake Hertz
by Jake Hertz
by Aaron Carman
by Aaron Carman