serout2 apparently changing other I/O?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    5

    Default Re: serout2 apparently changing other I/O?

    @ Henrik Yep, agreed on all counts. I tried the LATA solution, too, and then found that PIC12F1501 doesn't have LATA...

    Correct ANSELA fixed the problem and allowed me to keep the diagnostics.

    I also had time to look at the effects of not setting the ANSELA bit on the analog input. While there was no measurable difference near the power supply rails, at 1.2V input a correct setting reduced power consumption by about 700uA.

    I can't explain why, but adding a delay before the SEROUT2 didn't change the duration of the pulse... but removing the SEROUT2 removed the problem... curious.

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

    Default Re: serout2 apparently changing other I/O?

    What? It have LATA register, it compile and it works.... maybe you need to upgrade, or double check the chip you compile for?


    anyway, since the problem is solved...
    Steve

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

  3. #3
    Join Date
    Oct 2012
    Posts
    5

    Default Re: serout2 apparently changing other I/O?

    mister_e, I just downloaded a new data sheet to prove you wrong. but you're right... I will need spend more time on why it didn't work for me, (And why I didn't find it when I searched my data sheet before...) When I get LATA to compile I'll use that method just for the correct-ness of it.

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

    Default Re: serout2 apparently changing other I/O?

    Steve

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

  5. #5
    Join Date
    Oct 2012
    Posts
    5

    Default Re: serout2 apparently changing other I/O?

    Yep, that was it. The version of PBP in my shop was current, and had no problem. The copy at the customer's site was ordered from DigiKey, must have been on the shelf a while...

Similar Threads

  1. changing osc on the fly
    By viewgsm in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 6th February 2010, 16:13
  2. Changing Settings ???
    By tico in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th December 2006, 04:10
  3. Mode changing on the fly
    By Angus Anderson in forum GSM
    Replies: 1
    Last Post: - 28th November 2006, 09:58
  4. Changing 18F WDT postscaler on-the-fly
    By Bruce in forum Code Examples
    Replies: 4
    Last Post: - 1st August 2006, 22:09
  5. Changing avatar
    By Demon in forum Off Topic
    Replies: 6
    Last Post: - 9th March 2005, 17:32

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