Word to nibbles


Closed Thread
Results 1 to 13 of 13

Thread: Word to nibbles

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    WIRD WIRD WEIRD can't confirm it here...
    what about if you split your SEROUT statement in two like..
    Code:
    SEROUT PORTA.3,BRate,[32,Leader,#DataOut[5],#DataOut[4]]
    SEROUT PORTA.3,BRate,[#DataOut[3],#DataOut[2],#DataOut[1],10]
    or in a multiple line like
    Code:
    SEROUT PORTA.3,BRate,[32,Leader,#DataOut[5],_
                          #DataOut[4],#DataOut[3],_
                          #DataOut[2],#DataOut[1],10]
    the little thing that could do... i said could, if DataOut is a word size variable BUT i tried it also... works for me.

    BTW there's certainely somebody here or at MELABS who know why... over for me
    Steve

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

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    PBP offers pretty limited support for the 12-bit core.

    Calls and computed jumps can only be made to the first half (256 words) of any code page on the 12-bit core with PBP due to the meager resources on the 12-bit core.

    And, all PBP library routines have to squeeze into the 1st page, so it's tough to do much with PBP on a 12-bit core unless you're pretty creative.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    mmm now that make sense to me. So as i suggest before, trying to compile with another PIC would have solved the problem.. well if a 14 or 16 bit core where choose of course.

    Thanks Bruce for the neat and deep explanation.
    Steve

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

  4. #4
    Gauge Guy's Avatar
    Gauge Guy Guest


    Did you find this post helpful? Yes | No

    Smile Thanks

    Thanks to you all for your input, I think the mystery is solved. On my next project, I'll remember the limitations of the 12 bit core.

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  2. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 07:25
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  4. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 15:23

Members who have read this thread : 1

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