C Serial Communication BCD

This is a discussion on C Serial Communication BCD within the C Programming forums, part of the General Programming Boards category; Hi Folks, We have a Clock System that pumps out BCD data signal to a Serial Port RS232. Do you ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    1

    Question C Serial Communication BCD

    Hi Folks,

    We have a Clock System that pumps out BCD data signal to a Serial Port RS232. Do you know any program or C Code that can read and decode this BCD data via Serial Port RS232? I have tried reading these data using HyperTerminal & Indigo Terminal but it can only read BIN/HEX/DEC/ASCII/OCT and not BCD. We need a software that can read BCD. Anyone knows?

    Thank you very much

    Zac

  2. #2
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    868
    Reading data from a serial port and "decoding" BCD should be treated as two separate issues. It's not exactly difficult to convert to/from BCD. See http://en.wikipedia.org/wiki/Binary-coded_decimal. As for serial port reading, it's platform dependent.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Duplex communication thro serial port
    By Priyachu in forum Linux Programming
    Replies: 1
    Last Post: 05-30-2009, 04:03 AM
  2. Serial port Communication
    By vin_pll in forum C++ Programming
    Replies: 23
    Last Post: 01-07-2009, 08:32 AM
  3. Serial pot communication through c program
    By vin_pll in forum C++ Programming
    Replies: 2
    Last Post: 01-01-2009, 11:52 AM
  4. Please help with serial communication problem - Long
    By spdylude in forum Windows Programming
    Replies: 3
    Last Post: 04-06-2005, 09:41 AM
  5. Serial communication packets
    By Roaring_Tiger in forum C Programming
    Replies: 3
    Last Post: 04-26-2003, 08:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21