Author Archives:

2.1. Experiment to read data from PORTB and outpu to the PORTC

# include <mega8535.h> # include <delay.h> void main(void) { DDRB=0×00; PORTB=0xFF; DDRC=0xFF; #asm(“nop”); while (1) { PORTC=PINB; }; }

Posted in Tutorial AVR C Codevision | Leave a comment

1.3. Experiments turn on the LED and the shift to right

In this experiment an LED that is connected to PORTC will be turned on alternately # include <mega8535.h> # include <delay.h> int temp; void main(void) { DDRC=0xFF; temp=1<<7; //bit ke-7 diberi logika 1 PORTC=~temp; delay_ms(100); while (1) { // Place … Continue reading

Posted in Tutorial AVR C Codevision | Leave a comment

1.2. Experiment to turn on/off using BIT

In this experiment led is connected to PORTC will be turned on and off with the instruction BIT # include <mega8535.h> # include <delay.h> // Declare your global variables here void main(void) { DDRC=0XFF; while (1) { // Place your … Continue reading

Posted in Tutorial AVR C Codevision | Leave a comment

1.1. Experiment turn on/off LED

In the following experiment portC functioned as an output and eight LED will turn on and off continuously, using delay subrutine. # include <mega8535.h> # include <delay.h> // Declare your global variables here void main(void) { PORTC=0XFF; while (1) { … Continue reading

Posted in Tutorial AVR C Codevision | Leave a comment

Testing programmer AVRISP MKII with Codevision

After successfully using AVRISP MKII programmer using the AVR Studio 4 for purposes of programming, debugging and downloading to the device, then the next step is to use the Software codevision to do programming using C language, debugging and downloading … Continue reading

Posted in Programmer AVR | Leave a comment

Testing Programmer AVRISP USB MKII with AVR Studio 4

If the steps have been undertaken and manufacture hardware driver installation AVRISP MKII programmer has finished, the next step is to conduct the trial process by using the AVR Studio software, go to the AVR Studio software, create a new … Continue reading

Posted in Programmer AVR | Leave a comment

Building Programmer AVRISP USB MKII Part II

After the process of making a series of hardware AVRISP USB MK II is completed, and has filled the firmware, then the next step is to install the drivers on your computer or laptop, but first it must be ensured … Continue reading

Posted in Programmer AVR | 1 Comment

Building Programmer AVRISP with serial using Ponyprog

To make filling the firmware on the ATmega8 that will be used on the MK II programmer AVRISP then you need a programmer who can you make another in a simple, inexpensive enough to use components, resistors, zener, capacitors and … Continue reading

Posted in Programmer AVR | 1 Comment

Building Programmer AVRISP MKII USB Part I

Here is a series of AVR programmer using the USB port, the circuit is a modification of USBasp I have it simple, with firmware AVRISP MKII, so the circuit, compatible with AVR Studio 4, and codevision which already include downloader … Continue reading

Posted in Programmer AVR | 3 Comments

4.5. Experiment Using SW to shift character to the left or right

In this experiment will print a character on the lcd screen character, and by using a switch then the character can be shifted right and left. .include “m8535def.inc” .org 0×0000 ; ldi r16,low(RAMEND) out SPL,r16 ldi r16,high(RAMEND) out SPH,r16 ; … Continue reading

Posted in Tutorial AVR Asembly | 2 Comments