SEROUT on a 16F1947


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: SEROUT on a 16F1947

    I would start here

    http://support.melabs.com/content/56...f-16F1946-1947
    Published on 12-04-2013 10:03 AM

    With PBP 2.60 and later (up to 3.0.7.x), PBP commands that automatically set the TRIS bits will not work properly on PORTF or PORTG of the 16F1946/1947.

    An issue with bank selection for the TRIS register has been identified.

    Hopefully, this will be corrected by version 3.0.8.x
    2.60(A,B,C) will continue to have this issue.

    There are no workarounds.

  2. #2
    Join Date
    Feb 2016
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: SEROUT on a 16F1947

    Thanks for looking at it!
    I've tried a few more things, ending with:

    Include "modedefs.bas"

    ANSELF = 0 'Set PortF to digital
    TRISF = 0 'PortF = outputs
    ADCON0 = 0 'Turn off A/D

    Low PortF.1

    Start:
    Toggle PortF.1
    Pause 10
    Serout PortF.2,4,["data"]
    Goto Start

    There is no serial data coming out of PortF.2, but PortF.1 toggles about every 26mS.

    When it says there is no work around, does that mean I cant set them manually and there is no way to make it work?

    Or, am I still missing a setup for the A/D or something?

    Thanks!

Similar Threads

  1. PULSIN ON PORTF and PORTG ON 16F1947
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 9th December 2013, 00:54
  2. Replies: 10
    Last Post: - 26th November 2013, 08:38
  3. Help with, SEROUT
    By Kimto in forum mel PIC BASIC
    Replies: 6
    Last Post: - 29th March 2006, 08:15
  4. serout
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th February 2006, 15:50
  5. Serout IR TX
    By Jųan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th January 2006, 23:53

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