Missing a bit


Closed Thread
Results 1 to 2 of 2

Thread: Missing a bit

  1. #1
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    153

    Default Missing a bit

    I need a fresh set of eyes on this. Im trying to send 5c which is 01011100
    it is not sending correctly. It is sending 0111010 looking at the scope which is almost correct but it is missing the second 0 on the left. And yes I know it is inverted and this is correct. I need this 0, so it should look like 00111010 on the scope I have this working using bit banging and have compaired the two pattern's the bit bang works great this missing 0 does not.


    For Bits = 0 to 7
    Command_bit = value.0[Bits]
    if command_bit = 1 then
    low portb.2
    else
    input portb.2 'if command_bit = 0 then input portb.2
    endif
    pauseus 104
    next

  2. #2
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    153


    Did you find this post helpful? Yes | No

    Default missing a bit

    I have it working now I changed the pauseus time to a lower setting as the program overhead was giving me too long a pauseus time and putting my bits out of range

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. How to receive stream of bytes using PIC USART
    By unifoxz in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 20th June 2009, 10:38
  3. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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