Tutorials

img
Sometimes in your projects you simply do not have enough I/O lines available, take for example a lot of the multiple LED examples, these use 8 outputs to control 8 LEDs via your PIC, that can restrict the amount of outputs you would have available...

In this example we connect an LED to PB2 (Pin 14) of an Attiny 2313. The PWM output is obtained from the OC0A output of timer/counter0.   Schematic [caption id="attachment_30" align="alignnone".

img
This is a very similar example to our ATMEGA16 and LCD example. We simply connect our 16x2 LCD display to our Attiny2313 PORTB. Again for simplicity the code is written in MikroC PRO for AVR. We actually added an LCD breakout to our Attiny2313 development/experimenting...
img
Similar to our previous example when we flashed a single LED, in this case we connect 3 LEDs up to Pin 5, 6 and 7 which are PB0,1 and 2. We will then flash 3 LEDs Here is the schematic for this example Schematic [caption...
This div height required for enabling the sticky sidebar