Debug with parity?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    cmolson's Avatar
    cmolson Guest


    Did you find this post helpful? Yes | No

    Default

    Thats the problem I am facing. I do not have control of the Oscillator or the baud rate or parity. I tried serout2 and it is too slow to handle (also serout) at 9600bps and 3.579mhz. I have teseted the PIC at 10mhz and it can output 9600bps using serout without a hitch, unfortunatly the crystal is fixed at 3.479mhz.. grrr

    I have written the code for my applciation and it works perfectly when using no parity... I wish there was a way to send 1 bit out serially after each transmission of a byte with odd parity. I guess the question would be, does anyone think it wouldn't be too hard to create an assembly routine which sends a parity bit serially depending on the byte to be transmitted?
    Last edited by cmolson; - 2nd December 2005 at 18:06.

  2. #2
    cmolson's Avatar
    cmolson Guest


    Did you find this post helpful? Yes | No

    Default

    One method I saw which seems very basic, is to simply output the bits of each byte and use a pauseus 104 to generate 9600 bps. this way I could send the parity bit. For receivein i do the same thing except I can simply discard the parity bit. This is eally annoying since the parity bit isnt the last i can't simply discard it.

  3. #3
    Reven's Avatar
    Reven Guest


    Did you find this post helpful? Yes | No

    Question

    One small question. How can I use 2 stop bit?
    Now I use in my code 7E1 and I want to use 7E2.
    Thanks!!

Similar Threads

  1. N-Bit_MATH
    By Darrel Taylor in forum Code Examples
    Replies: 38
    Last Post: - 16th December 2010, 14:48
  2. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 20:41
  3. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  4. debug not working with MPASM assempler
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2009, 07:51
  5. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46

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