Re: [uCsimm] using uCSIMM Port C for IO

From: Evan Stawnyczy (evan@lineo.com)
Date: Thu Apr 19 2001 - 16:11:36 EDT


port 'C' is for LCD functionality... but by default it's not being
used... (unless you have an LCD) you'd have to issue something like:

--<snip>--
(*(volatile unsigned char *))0xfffff413)=0xff; /* set all pins to no
                                                  dedicated functionality
                                               */
(*(volatile unsigned char *))0xfffff400)=0xff; /* set all pins to output
                                               */
--<snip>--

and -ta-da you're program should work!

good luck ;)

.evan stawnyczy.
(uC)linux developer
maintainer: uCuserland/uCbootstrap
there is a chasm :: of carbon and silicon :: that software can't bridge
(e) evan@lineo.ca :: evan.stawnyczy@lineo.com
        evan@lineo.com :: e@lineo.ca
(p) 416.621.0125.240
(f) 416.621.0190
yesterday it worked :: today it is not working :: Windows(tm) is like that
all your base are belong to us

On Thu, 19 Apr 2001, Shaun H wrote:

a> Hi Evan,
l>
l> Thanks for your reply :-)
>
y> >What do you have attached to port C?
o> connected to pin 30 on the ucSIMM is a 1K resistor with LED.
u>
r> I assumed that, on boot up, pins 23-30 default to become General
> Purpose
b> I/O Port C. Then the bit0 on Port C should switch on & off?
a>
s> I know that these pins serve as the LCD Controller also, which is why I
e> wondered if there might be a need for some other C command??
>
a> Thanks,
r>
e> Shaun
>
b
e
l
o
n
g

t
o

u
s!

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:43 EST