pic program crashing


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    right, i've placed serout2's after every single initialisation line and i discoverd something REALLY confusing...

    The serout2's stopped after this line...

    Code:
    TRISE = 255
    Why on earth would a TRISE operation affect serout2 command on PORTD?

    To prove it, i commented out the TRISE command and everything works perfectly...

    so, why does the TRISE cause a problem with SEROUT2

  2. #2


    Did you find this post helpful? Yes | No

    Default

    and then, when i open the datasheet for the 16f877a and search for trise i find this....

    SUMMARY OF REGISTERS ASSOCIATED WITH PORTD
    89h TRISE IBF OBF IBOV PSPMODE — PORTE Data Direction Bits
    Well, thats helpfull!

    TRISE affects PORTD!

    That is another for the FAQ's

    Thanks for everyones help

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. vb6 to program PIC
    By redpeak in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st September 2009, 00:25
  3. Reading Program back from PIC
    By schlaray in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th May 2007, 15:23
  4. Which pic has a big flash program memory?
    By amindzo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st November 2006, 20:35
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 16:45

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