Hi, Sorry about that. I'll try to be more clear with my explanation. > > Hi, I'm trying to send an ID "1011001101" using PIC18f252 through > > ultrasonic transducers. > > How is this sent from the PIC ? Using the UART ? Or using a "normal" > I/O pin ? And how fast ? > > How long are the "0" and the "1" ? I'm sending my ID through PIC18f252 through I/O ports in which the transducer used is MA403R. The data sheet is a bit hard to find but it's only 2 pin with one connected to the I/O ports and the other one to the ground. My problem is how to code it in PIC. > > What "ultrasonic transducers" ? An URL to a data sheet would be fine > if someone would like to look it up, but at least part number or "type" > of transducer would/could help to know. > > > My question is do i need to do something to > > make sure that each bit (1 then 0 then 1 then 1, etc) are transmitted > > for an equal amount of time? Maybe every 2 rising edge?? > > What "rising edge" ??? Sorry about this. I was thinking about sending each bits of the id for as long as 2 clock cycle which I'm still not sure it's the right concept or not. > > > Do I need to declare for each signal to be high and low for a certain > > time or will it be automatically done? > > Where would it be declared ? And who would do anything > automaticly ? The PIC or the transducer ? > For here, I meant the PIC. There's nothing need to be done to the transducer. It's the PIC that's hard to setup. Thank you. _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist