Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd December 2007, 08:19 AM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
The IR213X series six-channel gate drivers just drive the MOSFETs including bootstrap for PWM to the high side. I use a PIC 16F628A to send it the 6 inputs in the bit patterns below. TableHigh is for the PWM.

TableHigh ADDWF PCL, f ;data TableHigh for bit pattern
; moved left one. RB0 is step input
retlw b'00001100'
retlw b'00100100'
retlw b'00110000'
retlw b'00010010'
retlw b'01000010'
retlw b'01001000'


TableLow ADDWF PCL, f ;data TableLow for bit pattern
retlw b'00001000'
retlw b'00100000'
retlw b'00100000'
retlw b'00000010'
retlw b'00000010'
retlw b'00001000'
Hi, does mean that I need both IR213X and PIC16F628A to achieve this? Can I just use PIC16F877A to do the project? As I wish I can just use 1 micro-controller to operate the project. And if PIC16F877A able to do this task, I will now start learning the basic of PIC16F877A.
doinfinity is offline  
Old 2nd December 2007, 01:52 PM   (permalink)
Default

From what I have seen, the PIC16F877A is the PIC16F628A’s bigger brother with more I/O and uses the same instructions. If you are equipped to program a 16F84, you can probably use it on these chips. Go for it!
__________________
C:\WHUT ?
Beware the asterisk *

Last edited by ClydeCrashKop; 2nd December 2007 at 01:59 PM.
ClydeCrashKop is offline  
Old 2nd December 2007, 02:25 PM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
From what I have seen, the PIC16F877A is the PIC16F628A’s bigger brother with more I/O and uses the same instructions. If you are equipped to program a 16F84, you can probably use it on these chips. Go for it!
I see. So that the PIC16F series use the same instruction set. I can learn by using any PIC16F micro-controller, then apply what i learn on other PIC16F model.
doinfinity is offline  
Old 2nd December 2007, 03:24 PM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
From what I have seen, the PIC16F877A is the PIC16F628A’s bigger brother with more I/O and uses the same instructions.
Actually the wrong way round! the 628 is the 877's little brother, the 877 came out a LONG time before the 628. If I recall correctly the 877 was only the second EEPROM PIC to be released (after the 16C(F)84) - and caused a great deal of excitement at the time.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 4th December 2007, 01:23 PM   (permalink)
Default

Just so I don’t get you in trouble if you are using these bit patterns.
Some of those IR103X chips use active low logic so you need to invert the bit patterns that I posted earlier. Turn on the low side for each phase first, then for PWM, alternate between low side only and both low and high.

Inverted for active low logic.
-------- Low only ---------- both low and high
Phase 1 111011 ---------- 111001
Phase 2 101111 ---------- 101101
Phase 3 101111 ---------- 100111
Phase 4 111110 ---------- 110110
Phase 5 111110 ---------- 011110
Phase 6 111011 ---------- 011011
(I had to put the dashes in to keep the columns formatted.)
I used Nigel’s second tutorial on LEDs at a template. It doesn’t take much modification to drive a 3 phase motor. Use the LEDs to confirm that it is doing what you want it to before using a IR103X chip. His Main board 3 is for the 16F877.
You might actually do this in a week if you can get parts that fast.
__________________
C:\WHUT ?
Beware the asterisk *

Last edited by ClydeCrashKop; 4th December 2007 at 01:35 PM.
ClydeCrashKop is offline  
Old 4th December 2007, 05:12 PM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
Just so I don’t get you in trouble if you are using these bit patterns.
Some of those IR103X chips use active low logic so you need to invert the bit patterns that I posted earlier. Turn on the low side for each phase first, then for PWM, alternate between low side only and both low and high.

Inverted for active low logic.
-------- Low only ---------- both low and high
Phase 1 111011 ---------- 111001
Phase 2 101111 ---------- 101101
Phase 3 101111 ---------- 100111
Phase 4 111110 ---------- 110110
Phase 5 111110 ---------- 011110
Phase 6 111011 ---------- 011011
(I had to put the dashes in to keep the columns formatted.)
I used Nigel’s second tutorial on LEDs at a template. It doesn’t take much modification to drive a 3 phase motor. Use the LEDs to confirm that it is doing what you want it to before using a IR103X chip. His Main board 3 is for the 16F877.
You might actually do this in a week if you can get parts that fast.
Is there I need a PIC microcontroller and IR103X chip, then this project is easier? If only use a PIC microcontroller, then is more difficult to complete this project?
doinfinity is offline  
Old 4th December 2007, 10:37 PM   (permalink)
Default

If you just use the PIC, then you have to make your own boot strap circuits to drive the 3 high side, N channel MOSFETs. I did it. That is why the positive logic on the first bit patterns. But it will take more than a week.
__________________
C:\WHUT ?
Beware the asterisk *
ClydeCrashKop is offline  
Old 7th December 2007, 07:43 AM   (permalink)
Default

Quote:
Originally Posted by ClydeCrashKop
If you just use the PIC, then you have to make your own boot strap circuits to drive the 3 high side, N channel MOSFETs. I did it. That is why the positive logic on the first bit patterns. But it will take more than a week.
Hi ClydeCrashKop, thank you for your information.

I wonder if there is any example code similar to the project of soft start SCR gate trigger? As I think it will be easier if I have some sample code to learn from.
doinfinity is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Motor microcontroller NoamL Robotics Chat 3 24th November 2003 04:48 PM
converting 3 phase motor to single phase norberto fines Electronic Projects Design/Ideas/Reviews 6 2nd September 2003 11:21 PM
Speed control for a 3 phase motor? ed sparks General Electronics Chat 1 2nd May 2003 05:22 AM
How Do I change the direction of an AC single phase motor? eqbilly Electronic Projects Design/Ideas/Reviews 5 28th April 2003 09:09 PM
Motor run caps Prof.Insane General Electronics Chat 9 29th March 2003 07:35 PM



All times are GMT. The time now is 09:14 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker