My PICKIT2 debugger/programmer started giving this PK2Error0049: VPP Voltage error. Check target and retry operation message when i closed the MPLAB IDE while the Debugger was running and after that all my coding work got held up. But i got a temporary solution for this and here it is,
Using Bitfields in C programming we can access individual bits of a memory location. Bitfields in microcontroller programming can be used to declare register structures and get access to individual bits of the microcontroller registers.
Infinite loops are a very bad practice in Embedded programming, One should never use an loop statement which runs forever unless it is the main system loop. Programmers often use statements like
C language is very powerful programming language, You can literally do anything you want with a micro-controller and its peripherals using C. The most important attribute of C language is the pointers. These pointers can be made to point to variables, memory locations, Registers and functions.
Microcontrollers reset problems are created when you are using same power supply for driving the microcontroller and the motor.
If your board is not behaving as expected then there is a way to find out ,
I faced a strange problem recently. I was trying to drive a stepper motor through a ULN2803 driver using an 89S52 microcontroller. But the motor was not rotating even after sending the proper excitation sequences. I observed that the voltages at the microcontroller ports were all correct.
On contrast to their Through Hole (TH) counterparts using SMD components not only makes your PCB look neat and beautiful, you don’t need to make a drill hole for each pin of the component. SMD components are smaller in size than through hole parts. There are a wide range of choices available in SMD component packages to fit your application.
If you are a student and doing your academic projects on your own, then here are a few Embedded related component vendors who can provide you with almost any sensor, microcontrollers , interface boards, Embedded development kits etc.