Hummmm..... The ascii for '0' is 30 hex, and for '1' is 31 hex. What is the bcd for '0' and '1'? Hummmm....... Bill ----- Original Message ----- From: "Ian Forse" To: Sent: Saturday, August 03, 2002 11:45 AM Subject: [PIC]: Serial Output with Hi Tec C > I am using an F877 to produce a 10 bit A/D reading. This is combined into a > single variable. This is then passed to a binary to bcd routine which gives > me a single variable xxxx (i.e. 1023, 0963, 0053, 0007). I now want to sent > this to the terminal in the following format x.xxx (i.e. 1.023, 0.963, > 0.053, 0.007). The serial comms is OK but I am not sure which is the best > method method to produce this output. > > Any suggestions please? > > Ian Forse > ------------------------------------------------ ------------------ > http://mdm1.bravepages.com > Technical support for the Multifunction Display Module > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body