Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC - binary to ascii

Status
Not open for further replies.

PauloMota

Junior Member level 1
Joined
Jan 28, 2003
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Natal, Brazil
Activity points
127
Hi friends!

I need to convert a 16 bit binary to 5 digits ascii. I found some examples in PICLIST but they didn't work (I don't know why). I think that I'll have to burn several neurones to make a good routine.
Does anybody have other examples?

Thanks in advance

Paulo.
 

Hia
Take a look at www.prjc.com in examples codes section. it have been writen for 8051 asm but it is easy to translate them to pic asm
 

If you use CCS pic compiler, you can use sprintf function.
sprintf is like printf, but result is stored in memory array.
:)
 

try this routine, it works very well. is written in C
 

Check out at microchip.com homepage. There is application note with quick and small routines conversion between 8bit -> 2 digit, 8bit -> 3 digit and 16bit -> 5digit. The routine can be expaded to any size. Checked with 32bit.
 

hi,

If you need real working solution for this visit,s epe mag ftp site where you can find this under pic trick folder enjoy
 

Thanks friends!

I'll check all suggestions. I found a great site with all EPE PIC projects source code published in EPE Magazine.

Take a look!

**broken link removed**

:)

Paulo.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top