Hi,
I am currently working on TinyOS-2.x version. I need to attach a 7-segment LED 
screen to my development platform so that i can display some data on the 
Screen. The screen expects a Clock and Data signal. The peripheral has a 
MM74HC595 serial in parallel shift register which expects a clock and data 
signal (1byte) from the host microcontroller. Then, the screen has further 3 
more 74HC595 which get their data from its predecesors. So, if I am able to 
load 1byte of data on each clock cycle correctly should do the trick. In this 
regard, i saw that there are some device drivers for mm74hc595 available at 
/tos/chips/mm74hc595.
 
I have written the HplMM74HC595PinsC.nc file as directed in the MM74HC595C.nc 
as follows:
 
/**
 * Mapping the 74HC595 shift register pins to Atmega128 pins for chipconz 
platform.
 *
 * @author Varun Jain 
 * @version $Revision: 1.1 $ $Date: 2008/08/22 18:56:06 $
 */
configuration HplMM74HC595PinsC {
  provides {
    interface GeneralIO as Ser;
    interface GeneralIO as Sck;
    interface GeneralIO as Rck;
  }
}
implementation {
  components HplAtm128GeneralIOC as IO;
  
  Ser    = IO.PortD3;
  Sck    = IO.PortD5;
  Rck   = IO.PortD2;
}
 
 
What i am unable to understand is that in my application, I will need to use 
this MM74HC595C interface. But i do not understand how can i wire it up.Is 
there any test application in which you have used this interface. I am 
believing that i will need to do something like this:
 
/* TestAppC.nc */
configuration TestAppC {}

implementation {
// Other components
 
components MM74HC595;
TestC.???  = MM74HC595;
}
 
?? ----> What will the interface i will need to use in the TestC 
implementation......
What i do not really understand is that i need to send data on only 1pin (Ser 
in thid case) so how can i do this in the application. I mean in the TestC what 
is the interface that i should use .. GeneralIO or ???
 
Any help will be really appreciated.
 
 
Cheers,
Varun

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to