electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

hitech picc question


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> hitech picc question
Author Message
hakan



Joined: 20 Feb 2002
Posts: 50


Post22 Mar 2003 21:39   

hitech picc question


hi,

i use hitec picc

when i have only one device (like lcd) i can use printf function. but when i have two device how can i select the device? i want to use printf function with bouth of them.
Back to top
Google
AdSense
Google Adsense




Post22 Mar 2003 21:39   

Ads




Back to top
year



Joined: 21 Feb 2002
Posts: 101


Post23 Mar 2003 4:44   


Make a global vairiable to decide what device. (or Add routine to printf and export...)

You may edit printf routine to reference this.

You will set and reset this variable in caller routine...

PS: Printf routine is very heavy. Do not try make "printf"....
Back to top
neuralc



Joined: 06 Nov 2001
Posts: 274
Helped: 6


Post23 Mar 2003 13:00   


HI,

Before of all I think that you must consider if you really need to use printf (need lot of code and time to execute). So, if you need only to print text on the LCD (without formating values) you can use the lcd.c library (found easly on the web, if you whant it, let me know).

The functions inside are simple and you can make easly a function to write values.

Hope Help

NeuralC
Back to top
nebisman



Joined: 13 Apr 2002
Posts: 291
Helped: 1


Post10 Dec 2003 1:34   

Re: hitech picc question


Could you explain me how to setup the printf function for display on LCD. My need is to visualice floating and integer numbers , please help
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> hitech picc question
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
hitech PICC examples ? (2)
MPLB v6.1 and HITECH PICC (16)
proteus and hitech picc (13)
which book to learn picc (hitech) (3)
Help me please. Can't compile hitech picc. (6)
hitech picc and bootloader for pic16f877 (1)
Hitech PICC and Source Level debugging. (1)
Is there any difference between PICC vs. PICC-18? (2)
Hitech Simulator? (1)
hitech installer (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS