On Wed, Jun 28, 2000 at 04:26:25PM -0700, SoftwareIntern wrote:
> The waveform I need is divided into aprox 120 micro-second parts, (9600 bps,
> 8N1 no handshaking) each part has either a high, (representing a 1), or a
> low (a 0).
>
> For instance, if I wanted to send an 'A', the waveform I'd need would look
> something like this
>
> ____ ___ ___ ____________
> | | | | | |
> | | | | | |
> --- --------------- ---
>
> with each bit being about 3 - long ( - = aprox 40 micro-seconds), The UART
> on the device should handle all of this, I just don't seem to be able to get
> the clock set right (at least thats what I assume I'm doing wrong). Also I
> don't know if the Ir port is forced to use the Non Integer Prescaler (the
> microprocessor has two prescalers, an integer and a non integer, it look
> like Ir devices are forced to use the non integer prescaler)
>
> Thomas Anderson
Note that the irda narrower pulses might work depending on the target.
However you should be able to set the thing up for Irda and simply hit
the register that says IrDA mode (- to go back to full width, and
maybe the output polarity)
www.execpc.com/~tz has sertool.zip which includes some hardware
banging which you might be able to adapt.
Also, if you open the serial port and do something like:
SerControl(SerL, serCtlIrDAEnable, 0, 0);
It will switch the UART to IrDA mode (but also does the narrow pulses).
You need to unnarrow the pulses, and check the polarity (also note
that the uart is AC coupled so sending a break will not result in
constant on).
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/