Normal i/o required on portc , pin6, 7 18f27k40


Results 1 to 16 of 16

Threaded View

  1. #7
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Normal i/o required on portc , pin6, 7 18f27k40

    another thing to note on the 2xk40 ,4xK40 , is that usart 2 default pins share the ISCP pins

    although notes on PBP3.1.1 for the k40 indicate a possible ISCP lockout can occur , i have not had this happen

    what i have found is that while programing using iscp , with the terminal port connected , which also provides alt power to my device , the device driver for the usb to ttl chip can occasionally hang the pc while the ISCP is programing

    so i would recommend allocating other pins for usart2 when designing with k40 , if you ever need the ISCP port ,

    the k40 PPS port make it nice to do this

    charles recommends in the notes
    RX2 = RB5 on 2xk40, 4x40
    TX2 = RB4 on 2xk40 , 4xk40

    DEFINE HSER2_RXREG PORTB
    DEFINE HSER2_RXBIT 5
    DEFINE HSER2_TXREG PORTB
    DEFINE HSER2_TXBIT 4



    cheers

    Sheldon
    Last edited by longpole001; - 29th July 2018 at 03:31.

Similar Threads

  1. Replies: 10
    Last Post: - 26th July 2018, 04:14
  2. 18f27k40 - adc settings
    By longpole001 in forum PBP3
    Replies: 5
    Last Post: - 12th July 2018, 11:34
  3. 18f4550 portc.4 and portc.5 problem
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th October 2008, 20:52
  4. 16f877 portc.6 & portc.7
    By DavyJones in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 12th January 2008, 04:38
  5. HOW do you initialize PortC to normal I/O??
    By Len in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th June 2005, 18:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts