Hi Rob,
Perhaps those were missing because the basic use for RC4 and RC5 on those
PICs is D+ and D- of the USB.
I guess you've did as recommended in datasheet to use them as inputs:
"To use pins, RC4 and RC5, as digital inputs, the USB module must be
disabled (UCON<3> = 0) and the on-chip USB transceiver must be dis-abled
(UCFG<3> = 1). The internal USB transceiver has a POR value of enabled."
On the other hand, C4 and C5 are only digital inputs even the pin diagram
drawing shows them bidirectional just because of the USB...

best wishes,



On Thu, Jul 29, 2021 at 10:16 PM Rob CJ <[email protected]> wrote:

> Hello Oliver, Majid,
>
> I fixed the device files with the missing RC4 and RC5 input pins. Will be
> available in the next bee release.
>
> Kind regards,
>
> Rob
>
> ------------------------------
> *Van:* [email protected] <[email protected]> namens Rob CJ <
> [email protected]>
> *Verzonden:* maandag 26 juli 2021 12:29
> *Aan:* 'Oliver Seitz' via jallib <[email protected]>
> *Onderwerp:* Re: [jallib] Pin_c4 undefined in PIC18F2550 ?!?😳😳😳
>
> Hi Oliver, Majid,
>
> Thanks for the info. I will have a look at the Python script that
> generates the device files to see what is going on. I just  received a list
> of devices from Rob Hamerling for which the pins are missing (list below).
>
> Once I fixed it  I will upload the device files so that they will be part
> of one of the bee packages.
>
> Device files with PORT_RC4 but missing pin_C4
>
> 18f4450.jal
> 18f46j53.jal
> 18f2550.jal
> 18f4550.jal
> 18lf2450.jal
> 18lf2553.jal
> 18f2455.jal
> 18f4553.jal
> 18lf2455.jal
> 18lf4450.jal
> 18lf2550.jal
> 18lf4455.jal
> 18f4455.jal
> 18lf4550.jal
> 18lf4553.jal
> 18lf46j53.jal
> 18lf4458.jal
> 18lf27j53.jal
> 18f2553.jal
> 18f27j53.jal
> 18f26j53.jal
> 18f4458.jal
> 18lf47j53.jal
> 18f47j53.jal
> 18lf2458.jal
> 18lf26j53.jal
> 18f2450.jal
> 18f2458.jal
> Device files missing pin_C4: 28
>
>
> Kind regards,
>
> Rob
>
> ------------------------------
> *Van:* 'Oliver Seitz' via jallib <[email protected]>
> *Verzonden:* maandag 26 juli 2021 09:06
> *Aan:* 'Oliver Seitz' via jallib <[email protected]>
> *Onderwerp:* Re: [jallib] Pin_c4 undefined in PIC18F2550 ?!?😳😳😳
>
> Sorry, my answer was not totally correct. Those pins are input only, the
> lat and the 'put parts are not available on that device. Also there's no
> direction for c4 and c5. Anyway, to be used as inputs, the pin_c4 and
> pin_c5 alias should be defined.
>
> --
> var volatile bit    pin_C4                    at PORTC : 4
> --
> var volatile bit    pin_C5                    at PORTC : 5
> --
>
> Greets,
> Kiste
>
>
>
>
>
> Am Montag, 26. Juli 2021, 09:01:31 MESZ hat 'Oliver Seitz' via jallib <
> [email protected]> Folgendes geschrieben:
>
>
>
>
>
> Hi Majid,
>
> this time, you really spotted a device file error.
>
> The chip has no pin_c3, but the device file does also not define the pins
> c4 and c5, which is indeed an error of the device file.
>
> Until the device file is fixed, add these lines to your program:
>
> --
> var volatile bit    LATC_LATC4                at LATC : 4
> var volatile bit    pin_C4                    at PORTC : 4
> --
> procedure pin_C4'put(bit in x at LATC : 4) is
>    pragma inline
> end procedure
> --
> var volatile bit    LATC_LATC5                at LATC : 5
> var volatile bit    pin_C5                    at PORTC : 5
> --
> procedure pin_C5'put(bit in x at LATC : 5) is
>    pragma inline
> end procedure
> --
>
>
> Greets,
> Kiste
>
> Am Montag, 26. Juli 2021, 08:48:48 MESZ hat majid ebru <
> [email protected]> Folgendes geschrieben:
>
>
>
>
>
> 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/c16e1fb4-0547-48ef-9954-224bb58f8bf8n%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/1669519631.747340.1627282888545%40mail.yahoo.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/687613790.752262.1627283190792%40mail.yahoo.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/AM0PR07MB6241B3541AF2D5239C145ACAE6E89%40AM0PR07MB6241.eurprd07.prod.outlook.com
> <https://groups.google.com/d/msgid/jallib/AM0PR07MB6241B3541AF2D5239C145ACAE6E89%40AM0PR07MB6241.eurprd07.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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/AM0PR07MB62411718300CF54CF589A643E6EB9%40AM0PR07MB6241.eurprd07.prod.outlook.com
> <https://groups.google.com/d/msgid/jallib/AM0PR07MB62411718300CF54CF589A643E6EB9%40AM0PR07MB6241.eurprd07.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAM%2Bj4qvi%3DoxCU4HQ8nDnTxjyEP-Vsf_%3DeNF3OWoVkXzxv%2BAesQ%40mail.gmail.com.

Reply via email to