Shopping list electronic

R2, R4 resistors, 22k (2 off). VR1, VR2 miniature preset potentiometers (trimpots) 100k (2 off). D1, D3 infrared Light-emitting diodes, 5 mm (2 off). D2, D4 infrared photodiodes, BP104 or similar (2 off). ici cmos 4011 quadruple nand gate. 3-way PCB plugs and sockets (2 off). 14-pin d.i.L. ic socket. 0.9 mm VCB terminal pins (4 off). Stripboard, 15 strips x 22 holes. Materials for the shields. R1, R2 resistors, 10k ((2 off). 2-way screvj terminal. MS1, MS2...

Software for programming

The most direct way of programming a PIC is first to write the program in assembler, using a simple text editing program such as Notepad. This, or something similar, is provided as part of the Windows package. The top photo opposite shows a screen-shot of an assembler listing in Notepad. When the file is saved, Notepad creates a file in text file format .txt . When asked for the file name to save it under, type the name with the extension '.asm' not '.txt', and not without an extension . It is...

The Intcon register

Pin Layout Pick 16f88

This register controls the processing of interrupts. The bits of interest are lt 7 gt GIE 1 interrupts enabled, 0 interrupts disabled. This bit is used to switch all interrupts on or off with a single command. lt 6 gt PEIE 1 enable peripheral interrupts, 0 disable these interrupts. lt 5 gt TOIE 1 enable timer TR0 overflow interrupts, 0 disable. lt 4 gt INT 1 enable INT interrupt, 0 disable. The INT interrupt is an external interrupt occurring when RA2 changes. The direction of change that...