16f1847 hserout


+ Reply to Thread
Results 1 to 9 of 9

Thread: 16f1847 hserout

  1. #1

    Default 16f1847 hserout

    Hello Folks -- going to (hopefully) use a 16F1847 with HSEROUT. Always have used the software SEROUT before so this is new territory.

    To possibly save time, could someone tell me the commands to configure this chip for using the UART and HSEROUT at 9600 baud please. So much easier to just ask then spend all day searching.

    BIG THANKS for any help.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,840

    Default Re: 16f1847 hserout

    So much easier to just ask then spend all day searching
    how are you off for socks and underpants ?
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,037

    Default Re: 16f1847 hserout

    Do this:

    On page 154 of the Pic Basic Reference Manual copy the DEFINES and test them to confirm that your circuit works as expected at 2400 baud.

    I know it is not exactly what you want but after that giant leap I am sure you will be able to do next steps forward.

    Ioannis

  4. #4

    Default Re: 16f1847 hserout

    Thanks.
    My ultimate goal is to interface a 16F1847 to a Raspberry PI 3B with RS485. The PI UART though needs 3.3v but I do see that the 16F1847 will work at 3.3V ? Can anyone verify that it performs reliably at that voltage?

  5. #5

    Default Re: 16f1847 hserout

    3.3v seems to be working well so far. I breadboarded the pic feeding into the PI uart.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,037

    Default Re: 16f1847 hserout

    If the datasheet says it works on 3.3Volts there is no doubt that it will. Trust it.

    Ioannis

  7. #7
    Join Date
    Jan 2014
    Posts
    83

    Default Re: 16f1847 hserout

    100% 16f1847 work at 3,3v , I worked many time.

  8. #8

    Default Re: 16f1847 hserout

    Fellas --

    Is there any way to simply flip a byte so that MSB becomes LSB or vice versa?
    Can't remember what the default is but I need to reverse it (or redo my *^% switches).

    Thanks.

  9. #9
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,329

    Default Re: 16f1847 hserout

    Code:
    FOR i = 0 to 7
    Correct.0[7-i] = Mistake.0[i]
    NEXT
    or
    Code:
    Correct = Mistake REV 8

Similar Threads

  1. Micro code studio -- 16F1847
    By Michael in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2020, 21:08
  2. Micro code studio -- 16F1847
    By Michael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th February 2020, 23:01
  3. Code verification errors 16F1847
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 7th May 2018, 00:33
  4. Hserout
    By mazytis in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2015, 03:10
  5. 16F1847 Usart and I2C
    By Seahound1 in forum Serial
    Replies: 6
    Last Post: - 18th December 2012, 20:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts