| Documents |
C Library, and Kernel Module
Look in the readme files.
Building Howto
Original uir hardware was designed by Martinus & Ties Bos. Their web page has
either moved or is unavailable. So I prepared this document for those who want
to build their own uir.
The schema:
Schematic changes explanation/discussion:
- Cond's on quartz are used for oscillator frequency stabilization, oscillator
startup etc. UIR works with RC oscillator which is far more inaccurate. If you
are planing to use UIR in 'normal' environment (your room) these are not needed.
- 5V1 on RS232 TXD is also not needed because there is one inside PIC port,
especially as maximal current is limited with R1 (100k).
- Circuit needs 7mA (2mA PIC + 5mA SFH according to datasheets) when it's not
sending data to PC, which can be supplied by RS232 RTS. When sending data it
depletes RTS and reserve stored in C1. This solution is 0.25 DM (0.1$) more
expensive but has less parts, better exploits available current and is more
reliable. The hidden gain is that now you can use 4 wire OLD MICE CABLE to
connect UIR to PC!
The simple one:
When programming, folowing configuration bits must be set:
-
PIC12C508/509: OSC XT for use with quartz, OSC IntRC for internal oscillator; WDT ON (watch dog timer); MCLRE INT (internal startup)
-
PIC16C84/F84: OSC XT; WDT ON (watch dog timer);PWRTE ON
|