Well... The answer on how to do it is easy. You simply can not. It is impossible. The pins do not have output transistors. There is no way to use c4 or c5 as outputs.
If you can't use other pin locations or another type of controller, you have to solder wires to your board to be able to use other pins which do have output transistors. There is no pin_c4_direction or pin_c5_direction because the hardware of those pins can not be outputs.Β See the attached bit of the datasheet. Pins c2 and c6 are called "Digital I/O". I/O stands for Input/Output. Pins c4 and c5 are called "Digital Input". That stands for Input and not Output. Β Greets, Kiste Am Montag, 26. Juli 2021, 12:03:55 MESZ hat majid ebru <[email protected]> Folgendes geschrieben: Ok KisteΒ Now How can I set direction and use alias ?! On Monday, July 26, 2021 at 11:33:29 AM UTC+4:30 majid ebru wrote: > Also > Pin_c5 not defined in PIC18F2550 ?!π³ > > > On Monday, July 26, 2021 at 10:57:57 AM UTC+4:30 majid ebru wrote: >> Hi to all >> >> I use PIC18F2550. >> >> When I complie I have error >> >> [Error] (X-GLCD-10.jal) [Line 69] "pin_c4" not defined >> [Error] (X-GLCD-10.jal) [Line 69] '=' expected (got 'pin_c4_direction') >> [Error] (X-GLCD-10.jal) [Line 70] "pin_c4_direction" not defined >> [Error] (X-GLCD-10.jal) [Line 70] unexpected token: pin_c4_direction >> >> Pin_c4 undefined ?!!Why π³π³π³π€£ -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/e449d318-0f82-4d48-959c-e608e1033b27n%40googlegroups.com . -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1965690428.773553.1627295505269%40mail.yahoo.com.
