mikroC - C Compiler for Microchip PIC microcontrollers
Hardware Connection
|
|
| 4.7uF | |
|
|
| + |
|
| 7uF | + | C1+ | Vcc |
| V+ | GN | ||
.4 |
| C1- | D | |
7uF.4 |
| T1out | ||
| + | C2- | R1out | |
|
| C2+ | R1in | |
1 |
|
| V- | T1in |
6 |
|
| ||
2 |
|
| T2out | T2in |
7 |
|
| ||
|
|
|
| |
3 |
|
| R2in | R2out |
8 | 7uF |
|
|
|
4 |
|
|
| |
9 | .4 | + | MAX232 | |
5 |
serial cable (1 to 1)
1
6Receive data (Rx)
7Send data (Tx)
8
4
9
5
mikroC
making it simple...
PIC16F877A
+5V |
|
| +5V |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| MCLR/Vpp/THV RB7/PGD |
|
|
| ||||
|
|
|
|
| 10K |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RA0/AN0 | RB6/PGC |
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RA1/AN1 | RB5 |
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RA2/AN2/Vref- | RB4 |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RA3/AN3/Vref+ | RB3/PGM |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RA4/TOCKI | RB2 |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RC2/CCP1 | RC5 |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RC3 | RC4 |
|
|
| |||
|
|
|
|
|
| 4MHz |
|
|
|
|
|
|
|
|
|
| RD0/PSP0 | RD3/PSP3 |
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RD1/PSP1 | RD2/PSP2 |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page |
|
274 | MikroElektronika: Development tools - Books - Compilers |
|