Serial LCD on 12F675


Results 1 to 5 of 5

Threaded View

  1. #5
    anj's Avatar
    anj Guest


    Did you find this post helpful? Yes | No

    Default Serout affected by other pins

    Gday Melanie
    I have continued mucking around with this and have eliminated the LCD and ADC, and now have a very basic example that fails
    on demand.
    To allow me to get a decent CRO result i have also reset the pause time.
    'set CRO timebase to 2mS for best results
    -----------------------------------
    serpin con 1 ' serial output pin
    sermode con 0 ' output mode driven true, fails after any pin is set???
    ANSEL = 0
    TRISIO = %00000000 '
    start:
    SerOut serpin, sermode, [ "T" ]
    1) GPIO.1 = 1 <-serout pin
    2) GPIO.4 = 0
    3) GPIO.1 = 1 <-serout pin
    pause 6
    goto start
    end
    -----------------------------------
    results i get are
    Pulse OK with idle time HIGH ( Ie std serout no other ops )
    1), 2) and 3) commented out. ( std serout )
    1) only commented out.

    Pulse OK with idle time LOW ( Ie incorrect )
    3) only commented out.
    1) and 3) commented out.

    over to you.
    Andrew

    Dont worry, ive got it. I found an FAQ on the MEL american site re the 16F675 defaulting its comparator to ON. I have been using a 16F88 up till now and that defaults to off, hence i didnt even think to check it.
    Interestingly enough, my serout was on the -ve comparator input, so not sure why it behaved that way.
    Anyway, i add CMCON = 7 at the top and she appears to be happy. Sorry for wasting yr time.
    Andrew

    Last edited by anj; - 1st April 2004 at 06:36.

Similar Threads

  1. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 04:51
  2. Please help with EDE702 - Serial to LCD interface
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2008, 02:48
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Serial LCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2007, 08:31
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

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