HSEROUT pin use


Closed Thread
Results 1 to 13 of 13

Thread: HSEROUT pin use

  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.

  7. #7
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Smile

    James,

    Congratulations on the baby! I wondered what had happened to you. I hope this next year is a better one for you.

    Jerry.
    If your oscilloscope costs more than your car...

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


    Did you find this post helpful? Yes | No

    Default

    Hi Jerry!
    I thought I had emailed you explaining everything to you? Perhaps now I know why there was no reply from you!

    I assume your project was taken care of by someone else? Same rates apply!!

    Take care.

    James.

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


    Did you find this post helpful? Yes | No

    Default

    James,
    have a look to RCSTA register, SPEN bit.

    Congrats for your brand new kid

    Quote Originally Posted by jmgelba
    Mister E, that non paying customer virtually destroyed my business forcing me to take a job and not spend much time selling circuit boards.
    You can't imagine how much i'm with you and how much i understand that my friend... kinda stuff i don't want to say in public...
    Last edited by mister_e; - 14th December 2007 at 21:22.
    Steve

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

  10. #10
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    jmgelba, Hey James, you never did pay me the $200 for the Boost Pressure Gage code I wrote for you.....

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    PM me your details Dave.

    Just dug that up from the depths.... seems it was never completed.
    Pm me your address and I'll send you a check.
    Last edited by jmgelba; - 15th December 2007 at 19:41.

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


    Did you find this post helpful? Yes | No

    Default

    Dave,
    I want to offer you a public appology. I was waiting on you to send me the .bas but I've just read through our correspondance and it appears you were waiting on me to send payment at which you would release the .bas.
    I thought you had bigger fish to fry and had forgotten all about my project. I never continued with the project as I had an accident and totalled the car the project was for.
    So, I applogise and wish to resolve this asap.

    Regards,
    James.

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


    Did you find this post helpful? Yes | No

    Default

    My personal opinion of that is that everything should have been discussed on your respective PM boxes rather than in public... hope Admin/Asst Admin might delete this post...
    Steve

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

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