[Tinyos-help] getting to grips with PORTC on AVRs
Mirko Bordignon
mirko.bordignon at ieee.org
Mon Jan 29 14:09:54 PST 2007
Hi there,
briefly speaking: I successfully ported TinyOS-2.x to a generic
AtMega128 dev board (mainly recycling and adjusting mica-family
code), on which I can successfully run all the test applications,
from Blink to TestSerial etc etc (believe me that there are no
problems in that sense, everything is there up and running).
What is strange, and I wonder if anybody does have any hint, is that
I cannot properly use PORTC as an output port: nor using it with the
GeneralIO interface and related components, neither manually setting
DDRC and PORTC I can get high logic values on any of its pins, while
both these two methods -let's say the elegant, proper way and the
debug one- work flawlessy on the other ports.
What is even more strange is that, inspecting DDRC and PORTC values
via debugging, they pretend to be set respectively to output mode and
to high while a multimeter easily reveals they're not (or at least
that the output value is low); I double checked the hardware, in fact
just compiling and uploading a 5 lines C code which just sets high
ouput values on port C (tinkering with the usual DDRC and PORTC) gets
the job done, so it is totally a tinyos related trouble. Any idea?
thanks
Mirko Bordignon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070129/a8d84988/attachment.html
More information about the Tinyos-help
mailing list