![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| what do you mean by "protection diode"? 4148? zenner? LED? what type of diode? | |
| |
| | (permalink) |
| its an general purpuse diode that is in parallel whith the motor an coducts the oposite way that we aply curent. It aculy an short curcut for back emf. it dosent need to be big since it dosent have to conduct a lot of curent.
__________________ Il give you shocking experience. | |
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| Code: #include <system.h>
void main()
{
trisa = 00b;
trisb = 111b;
porta = 00b;
while(1){
switch(portb)
{
case 100b: porta = 10b;break;
case 110b: porta = 10b;break;
case 010b: porta = 11b;break;
case 011b: porta = 01b;break;
case 001b: porta = 01b;break;
case 000b: porta = 00b;break;
case 111b: porta = 00b;break;
}
}
} | |
| |