Interface of DC Motor
Interface of DC Motor
Interface of DC Motor
#include<pic18f458.h>
void main(void)
{
TMR2ON = 0;
while(1)
{
PR2 = 74;
CCPR1L = 18;
TMR2ON = 1;
}
}
Output :
U1
13 OSC1/CLKI RC0/T1OSO/T1CKI 15
1 MCLR/VPP RC1/T1OSI 16 16 8 U2
RC2/CCP1 17 36
2 18 2
RA0/AN0/CVREF RC3/SCK/SCL IN1 VSS VS OUT1
3 23 7
RA1/AN1 RC4/SDI/SDA IN2 OUT2
4 24 1
RA2/AN2/VREF- RC5/SDO EN1
5 25
RA3/AN3/VREF+ RC6/TX/CK
6 26
RA4/T0CKI RC7/RX/DT
7 9
RA5/AN4/SS/LVDIN EN2
14 19 10 11
RA6/OSC2/CLKO RD0/PSP0/C1IN+ IN3 OUT3 GND
20 15 14
RD1/PSP1/C1IN- IN4 GND OUT4
33 21
RB0/INT0 RD2/PSP2/C2IN+
34 22
RB1/INT1 RD3/PSP3/C2IN-
35 27 L293D
RB2/INT2/CANTX RD4/PSP4/ECCP1/P1A
36 28
RB3/CANRX RD5/PSP5/P1B
37 29
RB4 RB5/PGM RD6/PSP6/P1C
38 30
RB6/PGC RD7/PSP7/P1D +88.8
39
RB7/PGD
40 8
RE0/RD/AN5
9
RE1/W R/C1OUT/AN6
10
RE2/CS/C2OUT/AN7
PIC18F458