What do you have attached to port C? i don't beleive there is
anything there for you to test... so you may think it's not working, but
it actually is flashing a bit that doesn't have any visible output.
there is a chasm :: of carbon and silicon :: that software can't bridge
(e) firstname.lastname@example.org :: email@example.com
firstname.lastname@example.org :: email@example.com
yesterday it worked :: today it is not working :: Windows(tm) is like that
all your base are belong to us
On Wed, 18 Apr 2001, Shaun H wrote:
> Apologies if this is too simple a question. I am a student with very basic
> understanding of
> C programming & hardware matters.
> I've got a uCSIMM and uCGardener Kit, have have installed everything, and
> now have the test program from the manual running. This program flashes an
> LED connected to port D bit 0.
> I would like to use Port C for another program, have tried to transfer the
> PortD program to check Port C but unfortunately, it doesn't work.
> I'm a little concerned that there might be a hardware
> failure with Port C, but am I missing something obvious??
> Is there something extra that I need to do in order to get Port C working
> as IO??
> Any help appreciated.
> Best wishes,
> Shaun H.
> #include <asm/MC68EZ328.h>
> int main(void)
> PCSEL |=0x01;
> PCDIR |=0x01;
> puts("port C d0 LED should be blinking...");
> PCDATA ^=0x01;
This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:43 EST