16F88 with LCD, UART use and all ADC's possible ?


Closed Thread
Results 1 to 4 of 4
  1. #1

    Default 16F88 with LCD, UART use and all ADC's possible ?

    Hi all

    I was wondering if it will be possible to use the following pin configuration

    RB0-RB3 as LCD D4-D7
    RA6,RA7 as E,RS

    RA0-RA4 (AN0-AN4) as 10bit ADC
    RB6,RB7 (AN5,AN6) as 10bit ADC

    And use the UART as a RS485 driver

    RB2 as RX (already in use for the LCD)
    RB5 as TX (already in use for the LCD)

    RB0,RB1,RB3 or RB4 as TX/RX for the SP485 line driver


    Thanks

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: 16F88 with LCD, UART use and all ADC's possible ?

    The question is not really clear, if you are using the uart pins on the pic for your rs485 then you can't really use them for the lcd.

    If you are hoping to double up on the pin function and use RB2 as the rx you might get away with it as long as data is only arriving when the lcd is not updating and vice versa.

    RB5 is not allocated in your post to the lcd?

    Why not just use a 16F886

    Be very careful with the MCLR on the 16F88 in the configs, if you disable it to use the pin as an I/O you won't be able to program it again via ICSP without great difficulty. It has a hardware gotcha which is a total pain. I always leave it enabled and pulled high with a 10K and dedicated to the ICSP function. Try it if you want ;(

    The 16F886 does not have this problem.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: 16F88 with LCD, UART use and all ADC's possible ?

    Hi

    Well you are right,

    is it possible to use LCDOUT in a way that D4-D7 of the LCD or not 4 I/O ports in a row

    as I need all the ADC's portA is not an option

    unfortunatly RX and TX from the uart on port B are in lower and higher part of portb

    Thanks


    Quote Originally Posted by retepsnikrep View Post
    The question is not really clear, if you are using the uart pins on the pic for your rs485 then you can't really use them for the lcd.

    If you are hoping to double up on the pin function and use RB2 as the rx you might get away with it as long as data is only arriving when the lcd is not updating and vice versa.

    RB5 is not allocated in your post to the lcd?

    Why not just use a 16F886

    Be very careful with the MCLR on the 16F88 in the configs, if you disable it to use the pin as an I/O you won't be able to program it again via ICSP without great difficulty. It has a hardware gotcha which is a total pain. I always leave it enabled and pulled high with a 10K and dedicated to the ICSP function. Try it if you want ;(

    The 16F886 does not have this problem.

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: 16F88 with LCD, UART use and all ADC's possible ?

    Do a search for LCD_ANYPIN and I am sure you might find a DT solution to your problem

    http://www.picbasic.co.uk/forum/show...ght=LCD_AnyPin
    Last edited by Jumper; - 18th January 2012 at 14:36.

Members who have read this thread : 2

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