Discussion Forum

About printf

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Mahesh M
Posted
12-Nov-2007 12:36 GMT
Toolset
C51
New! About printf

If i have two serial port in the controller(interfaced 16c550) how to access both using printf library

Read-Only
Author
Per Westermark
Posted
12-Nov-2007 12:54 GMT
Toolset
C51
New! RE: About printf

Either write your own com2_printf() that makes use of vsnprintf() and then copies the formatted string to the second port, or add a variable that controls which physical port that should receive the output from printf().

Read-Only
Author
Per Westermark
Posted
12-Nov-2007 12:56 GMT
Toolset
C51
New! RE: About printf

Either write your own com2_printf() that makes use of vsnprintf() and then copies the formatted string to the second port, or add a variable that controls which physical port that should receive the output from printf().

By the way, I don't like forums that tells me that I have already posted once, when the forum has specifically not accepted the post...

Read-Only
Author
Per Westermark
Posted
12-Nov-2007 12:57 GMT
Toolset
C51
New! RE: About printf

There must be some problem with caching or delayed insert on the server. After my first try, a full reload of the page did not contain any answer.

Read-Only
Author
Andy Neil
Posted
12-Nov-2007 14:03 GMT
Toolset
C51
New! Previous example

http://www.keil.com/forum/docs/thread4150.asp

The question has come up several times - so try a bit of searching (don't forget the 'Advanced' search)...

Read-Only
Author
tempin sak
Posted
12-Nov-2007 14:52 GMT
Toolset
C51
New! Has anyone built led cube?

Hi,

I want to build a 4x4x4x4 LED cube using blue LED's or bicolor (RGB LED's). Has anyone built something like this? Any schematics, code? No matter what microcontroller used. Buy i want it working.

you can see some sample videos on youtube.

thank's for any help

Read-Only
Author
Drew Davis
Posted
12-Nov-2007 19:46 GMT
Toolset
C51
New! RE: Has anyone built led cube?

I'm afraid my species is limited to manipulating a mere three spatial dimensions, so I could at best help you with a 3x3x3 cube.

(Keil: your GalactiNet firewall seems to be acting up again.)

Read-Only
Author
afta haight
Posted
12-Nov-2007 21:17 GMT
Toolset
C51
New! RE: Has anyone built led cube?

An idea would be to use the "union" command in ANSI-C. Then You can control a X-dimensional array. You can possibly use a random function or some other function on how to lit the differen t LED:s.You also have to check the different compiler manuals wether they support onions or not.

If you need help we listen and you ask

Good luck!

Read-Only
Author
Andy Neil
Posted
13-Nov-2007 07:54 GMT
Toolset
None
New! RE: use the "union" command in ANSI-C

"use the 'union' command in ANSI-C"

Why? What would that achieve?

"Then You can control a X-dimensional array"

'C' naturally supports multi-dimensional arrays - unions have nothing to do with it!

Read-Only
Author
Andy Neil
Posted
12-Nov-2007 21:19 GMT
Toolset
C51
New! RE: Has anyone built led cube?

Does this have anything even remotely to do with printf?

"I want to build a 4x4x4x4 LED cube using blue LEDs"

Using them for what?

"i want it working."

Again, what does "working" mean?
Doing what??

"you can see some sample videos on youtube"

The whole youtube site is entirely full of videos of all sorts of stuff - what one(s) are you talking about??

Read-Only
Author
Per Westermark
Posted
12-Nov-2007 22:40 GMT
Toolset
C51
New! RE: Has anyone built led cube?

I know how to build a 16-led "4-dimensional" hypercube (i.e. 2x2x2x2 LED) folded into two 3-dimensional cubes inside each other, but I don't want to even think about a 4x4x4x4 hypercube with 256 LED. The folding part is slightly outside my geometric thinking capabilities, and if the fourth dimension isn't folded into our three dimensions but temporal, I would have problems sending the control signal forward or backward in time.

My next problem is that a 4x4 side is too little for projecting text, so I can't use it as output device for the printf() function.

Read-Only
Author
afta haight
Posted
13-Nov-2007 15:59 GMT
Toolset
C51
New! can wattage can be increased?

i have an 80sa451 but it is running slow and i want to overclock to run quigly.

i know you need more wattage to do it.

but is it possible to increase the wattage source.
i.e for example if a consider a battery with 12v,6A, then the watts it can be produce is maximum of 72w. is it possible to extract more than that i.e 200w .by connecting any circuits.

Read-Only
Author
Per Westermark
Posted
13-Nov-2007 16:08 GMT
Toolset
C51
New! RE: can wattage can be increased?

Is it really worth it, trying to waste other peoples time just for the fun of it? Go abuse another forum instead!

Next Thread | Thread List | Previous Thread Start a Thread | Settings