Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

hitech picc question - how can i select the device

Status
Not open for further replies.

hakan

Member level 2
Joined
Feb 20, 2002
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
340
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.
 

year

Member level 3
Joined
Feb 21, 2002
Messages
62
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
441
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"....
 

neuralc

Full Member level 4
Joined
Nov 6, 2001
Messages
236
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,298
Activity points
2,202
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
 

nebisman

Full Member level 4
Joined
Apr 13, 2002
Messages
226
Helped
10
Reputation
22
Reaction score
9
Trophy points
1,298
Activity points
1,849
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
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top