Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

help me in my first test motor servo with Pic16F877A

Status
Not open for further replies.

blaze13

Newbie level 1
Joined
Jul 26, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Iraq
Activity points
1,290
pic16f877a with servo

Hi I am new and I don't have experience to mikroC in my first test motor servo with Pic16F877A , if anyone can help me so i will be glad so much. how writing too simple program can i control angle in servo motor run some time Left and return Right ?. please anyone help me . thank all of
 

James1

Newbie level 6
Joined
Nov 24, 2010
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
Re: servo motor pic16f877a

Hi -

I am trying to interface a dc servo motor with pic16F877A, the code is written in
Basic. I don't see the hardware responding at all to the code. I think it is because of the initialization of the configuration bits. So can you help me out with what and how to initialize parameter in Basic.

Regards
Ankit
 

mrcube_ns

Advanced Member level 1
Joined
Apr 10, 2002
Messages
452
Helped
48
Reputation
96
Reaction score
34
Trophy points
1,308
Location
Europe
Activity points
3,814
Re: servo motor pic16f877a

Without schematic no one can help you.
You have to know which PIC pin is for what purpose, so you have to dedicate that pin for it's purpose.

Some I/O pin can be analog input, digital I/O ... So you have to configure in your project that this pin is digital I/O, than to set TRISXy to 0 for Output or 1 for Input .....
Have also to configure STATUS, OPTION, INTCON ....

Mr.Cube
 

James1

Newbie level 6
Joined
Nov 24, 2010
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
Re: servo motor pic16f877a

Hi -

For my proper understanding can u send me a code written in Basic for pic16F877A(16Mhz) using pin say B.1(here I have a led attached), seeing the program it will be easier for me to understand the initializing parameters and setting config bits.
Compiler I am using is MicroCode Studio.

Regards
Ankit
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top