two serial ports


Results 1 to 15 of 15

Threaded View

  1. #6
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: two serial ports

    Thanks for the comments guys,

    Current PIC is an 18F4580. I use the standard serial comms to communicate with a PC applications. I'm developing the project to include additional sensors and as such need more real estate to display the results, so I've obtained a 128 x 64 FLCD, which with a similar font to an LCD, gives me 7 x 21 characters which is ideal.

    I've also puchase a serial / i2c / SPI piggy back driver for the display, and at the moment have it running in serial mode as it was not wanting to do much more than control the back light etc. If I can get this running under i2c it would free up the TC/RX pins for either serial connection with the PC or the use of a serial wi-fi board mentioned above.

    However I have 4 lines of code which simply fail to compile following the conversion from serial to i2c

    Code:
    i2cwrite SDApin,SCLpin,$00,$42,"TP",DEC1 Pid_channel+1,0
    When compiled MCS states "Expected [ at line 743" and "Expected ] at line 743" but placing the brackets after the address and at the end, or any combo thereafter results in "Bad expression" error....

    Any ideas
    Attached Images Attached Images  

Similar Threads

  1. defines values for 2nd / 3rd serial ports
    By longpole001 in forum General
    Replies: 3
    Last Post: - 29th January 2015, 02:45
  2. serial ports, the servo control.
    By m.nobre in forum Serial
    Replies: 0
    Last Post: - 7th December 2009, 17:16
  3. multipal serial ports
    By Andre_Pretorius in forum Serial
    Replies: 2
    Last Post: - 11th September 2007, 15:53
  4. How many serial ports can 1 PIC handle?
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd March 2005, 05:34
  5. Which PIC supports 2 HW serial ports?
    By charliez in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th July 2004, 09:01

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