Jump to content
ELFORUM - Forumul electronistilor

itoa in PICCLITE


vlad_2770

Recommended Posts

Cum pot transforma in PICC LITE un intreg in sir de caractere pentru a-l afisa pe un LCD?am vazut intr-un pdf ca doar atoi , itoa nu exista.va multumesc.

Link to comment
  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

  • vlad_2770

    7

  • Cristiano

    2

  • MirceaM

    1

Top Posters In This Topic

ajuta-ma te rog cu un exemplu mic in care folosesti sptrinf() si in care afisezi un intreg.Nu mai gasesc fisierul pdf de la picc lite sa ma uit la ce spui tu si pe net am gasit foarte putin :#include /* For baseline and midrange processors */ unsigned char sprintf (char *buf, const char * fmt, ...) /* For high-end processors */ unsigned char sprintf (far char *buf, const char * fmt, ...)Return ValueThe sprintf() routine returns the number of characters placed into the buffer.NB: The return value is a char not an int.multumesc.

Link to comment

am gasit alt compilator P I C C 8.02. are mai multe librarii si acum mi-a gasit acea librarie dar am o eroare:Fixup overflow in expression (loc 0xF04 (0xF04+0), size 1, value 0xA2) ce poate fi gresit?

Link to comment

printf() si sprintf() in implementare ANSI ocupa multa memorie, daca ai PICCLite ori varianta demo de la PICC (ambele limitate la maxim 1k ori 2k de cod, in functie de procesorul ales) s-ar putea sa nu aiba destula memorie.

The linker then adjusts referencesto these symbols - a process known as address fixup. If the symbol address turns out to be too large tofit into the space in the instruction generated by the code generator, a fixup overflow error occurs.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines