Just in case anyone is interested I've posted a small lump of code for using various TOS-un-supported ATMEGA128 Timer and Port features:
http://www.etantdonnes.com/Motes/AVR128timers.zip Contents: HPLPort.nc -- interface for byte access to I/O port HPLPortCM.nc -- impl of above for Port C, read or write whole port HPLT1pwm.nc -- interface for PWM or freq-gen output using Timer1A,B HPLT1pwmM.nc -- impl of above using PortB5,6 (PWM1A,B) as outputs HPLT3capture.nc -- interface for Timer3 timing capture (or PWM input) HPLT3captureM.nc -- impl of above using using PortE7 (INT3) as input HSMotors.nc -- interface to run Hobby-Servo PWM motors HSMotorsM.nc -- impl of above, with a bunch of confusing control code EncDrive.nc -- example user code for HSMotors to us added encoder For the last three, if you want to run small motors for robots or something, there's more info about an encoder hack that I'm developing at: http://www.etantdonnes.com/ROBOCAR/encoder/ It's all documented at what I consider superior-TOS levels, meaning the files have relevant comments, and are tested at about the average level... MS _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help