eeec
Newbie level 4
Schematic / IC Internally
Hello. i will try explain how it works internally from my understanding. i need help to confirm if i am right or not and to add on what i have missed out. Thanks you for reading this.
So this schematic is for a stepper motor driver. (attachment)
Point 1
Voltage get step down to 5V.
Question = why is there an extra cap? C4 ([Point 1]Compare) (attachment)
AND
How does it work internally? ([Point 1] See Page 7) (attachment)
i don't understand how it works internally and how 5V come out when input is more than 5V?
------------------------------------------------------------------------------------------------------------------
Point 2 Pic ( lets not talk about programming but how it fetch the program )
PIC gets powered on by Pin 14
--------------------------------------------
*********** NOTE********* See attachment ([Point 2] See Page 15) as reference
When there is a voltage on pin 16 (high)
it generate OSC1 clock cycle.
internally in this OSC1 clock cycle there is 4 quadrature clocks, Q1,Q2,Q3,Q4.
So whenever OSC1 goes up and down Q1,Q2,Q3,Q4 will go up and down too..one at a time. (cycles continue)
---------------------------------------------
Program counter increase every time Q1 goes up
AND
instruction is fetched from PIC and put it in Q4, the instruction is decoded and executed in the next Q1 through Q4
So in simple term is it?...
when osc1 goes up once Q1 = Fetch program from PIC and put it in Q4 and it will execute and decode instruction
when osc1 goes down and up Q2 = it will execute and decode instruction
when osc1 goes down and up Q3 = it will execute and decode instruction
when osc1 goes down and up Q4 = it will execute and decode instruction
next cycle
when osc1 goes up once Q1 = Fetch another program from PIC and put it in Q4 and it will execute and decode instruction from the previous cycle.
when osc1 goes down and up Q2 = it will execute and decode instruction
and so on?..
--------------------------------------------------------------------------------------------------------------------------
After that the data is send to PIN 6 and 7. and it goes to motor driver. (5804)
---------------------------------------------------------------------------------------------------------------------------
here is the point where i got stuck.
beside on the infomation that is given from PIN 6 and 7, how does it turn the motor? i know how a motor turn..by energize the coil. but how it turn BASE on the data? i have to know internally how it works..any one can provide schematic on this? all i have is..5804 datasheet. (attachment)
also why do we have to put a resistor or cap before ground? noise? example in the schematic R6
thanks you all for read. =)
Point 2 - see page 15
Hello. i will try explain how it works internally from my understanding. i need help to confirm if i am right or not and to add on what i have missed out. Thanks you for reading this.
So this schematic is for a stepper motor driver. (attachment)
Point 1
Voltage get step down to 5V.
Question = why is there an extra cap? C4 ([Point 1]Compare) (attachment)
AND
How does it work internally? ([Point 1] See Page 7) (attachment)
i don't understand how it works internally and how 5V come out when input is more than 5V?
------------------------------------------------------------------------------------------------------------------
Point 2 Pic ( lets not talk about programming but how it fetch the program )
PIC gets powered on by Pin 14
--------------------------------------------
*********** NOTE********* See attachment ([Point 2] See Page 15) as reference
When there is a voltage on pin 16 (high)
it generate OSC1 clock cycle.
internally in this OSC1 clock cycle there is 4 quadrature clocks, Q1,Q2,Q3,Q4.
So whenever OSC1 goes up and down Q1,Q2,Q3,Q4 will go up and down too..one at a time. (cycles continue)
---------------------------------------------
Program counter increase every time Q1 goes up
AND
instruction is fetched from PIC and put it in Q4, the instruction is decoded and executed in the next Q1 through Q4
So in simple term is it?...
when osc1 goes up once Q1 = Fetch program from PIC and put it in Q4 and it will execute and decode instruction
when osc1 goes down and up Q2 = it will execute and decode instruction
when osc1 goes down and up Q3 = it will execute and decode instruction
when osc1 goes down and up Q4 = it will execute and decode instruction
next cycle
when osc1 goes up once Q1 = Fetch another program from PIC and put it in Q4 and it will execute and decode instruction from the previous cycle.
when osc1 goes down and up Q2 = it will execute and decode instruction
and so on?..
--------------------------------------------------------------------------------------------------------------------------
After that the data is send to PIN 6 and 7. and it goes to motor driver. (5804)
---------------------------------------------------------------------------------------------------------------------------
here is the point where i got stuck.
beside on the infomation that is given from PIN 6 and 7, how does it turn the motor? i know how a motor turn..by energize the coil. but how it turn BASE on the data? i have to know internally how it works..any one can provide schematic on this? all i have is..5804 datasheet. (attachment)
also why do we have to put a resistor or cap before ground? noise? example in the schematic R6
thanks you all for read. =)
Point 2 - see page 15
Attachments
Last edited by a moderator: