HSEROUT pin use


Closed Thread
Results 1 to 13 of 13

Thread: HSEROUT pin use

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default HSEROUT pin use

    Can I bit bash a handshake out of the HSEROUT pin then start serial comms with the same pin after the handshake?
    I thought I read somewhere that once a HSER command or define was in the program, the HSER pins where only accessable to the UART. Is this correct?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    HSERIN/HSEROUT use the according TX/RX pins, there's no way to swap to other pins unless you open the pic and modify it yourself

    But some PIC, don't remind wich... maybe 16F690, allow to use only TX pin, leaving RX as a standard i/o... or i mixed up things use RX but leave TX as standard.. the usual 'datasheet' will tell
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default

    If I read your post correctly, I think you slightly missunderstood what I'm trying to do. I need to use the RX TX pins associated with HSERIN/HSEROUT for another use BEFORE I use them as a serial port. I need to send out a simple series of long pulses through the TX pin to handshake with the host before I switch to 14400 baud serial communications.

    I understand about reading the datasheet, however I havent choosen a PIC yet as this is in the early stages of quoting the project and seeing if the customers project is even possible with their budget and pcb size requirements. chances are though, I'll try and get this thing working on a 18F1320 as I have THOUSANDS of them left over from a non paying customer.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You can use these pins just like any other I/O-pins. Just disable the UART, do what you need to do, then enable the UART again when you need it.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well yes... i really misunderstood...

    have THOUSANDS of them left over from a non paying customer.
    it sucks
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default

    So how do I enable and disable at will? Do I assign a VAR BIT for the usart and toggle it as required?


    Mister E, that non paying customer virtually destroyed my business forcing me to take a job and not spend much time selling circuit boards. This is why I havent been in the forum recently. Fortunatly, things are better and I am able to spend time rebuilding the business, and spend some time with my 5 week old son.
    I dont program much, except for simple projects and my own personal creations and experiments. I spend my time doing pcb layout, and board assembly, either building using customer supplied parts, or in the case of the non paying customer, buying parts myself and charging for a completed assembly. At my busiest I was producing around 750 boards a week. Now I am lucky to produce 75 a month.

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 17:44
  2. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  3. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 19:12
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17: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