Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports
voltages is applied first, are beside the point, the programmers electronics are in charge of that. The point is that the
program can be loaded to the microcontroller even when it is soldered onto the target device. Normally, the loaded
program can also be changed in the same way. This function is called ICSP (In-Circuit Serial Programming). It is necessary
to plan ahead when using it.
It is not complicated at all! It is only necessary to install a 4-pin
connector onto the target device so that the necessary programmer
voltages may be applied to the microcontroller. In order that these
voltages don't interfere with other device electronics, design some sort
of circuit breaking into this connection (using resistors or jumpers).
Fig. 3-10 ICSP Connection
These voltages are applied to socket pins in which the microcontroller is to be placed.
Fig. 3-11 Programmer On-Board Connections
Port C and TRISC Register
Port C is an 8-bit wide, bidirectional port. Bits of the TRISC Register determine the function of its pins. Similar to other
ports, a logic one (1) in the TRISC Register configures the appropriate port pin as an input.
Fig. 3-12 Port C and TRISC Register
All additional functions of this port's bits will be explained later.
Port D and TRISD Register
Port D is an 8-bit wide, bidirectional port. Bits of the TRISD register determine the function of its pins. A logic one (1) in
the TRISD register configures the appropriate port pin as input.
http://www.mikroe.com/en/books/picmcubook/ch3/ (7 of 10)5/3/2009 11:32:31 AM