Blink without delay: Microchip PIC12F683 and 4 leds

cover

Microchip is one of the most important MCU manufacturer and in our opinion this company produces the best price to performance ratio 8, 16 and 32 bit microcontrollers available on the market. Today we wanna show you how to blink three leds without using the delay macros available in the xc8 compiler “__delay_ms()” and “__delay_us()”. Both delay macros can be very helpful but sometimes it is better to use interrupts instead of to waste CPU cycles with polling. We use a microchip PIC 12F683 (http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010115) to show you how to use Timer0 to perform more than one operation (apparently) at the same time. Continue reading