If i have two serial port in the controller(interfaced 16c550) how to access both using printf library
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...
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.
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)...
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
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.)
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!
"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!
View all questions in Keil forum