Gast
#2643918
Guten Tag alle Zusammen Ich lerne seit ein paar Wochen mit Hilfe des Internets wie man einen Mikrocontroller Programmiert. Zu meiner Ausrüstung. Ich benutze ein Pollin Board als Oberfläche und habe mir einen Atmega 8 gekauft. Programmieren kann ich ihn über die smartusb (my AVR) Anbindung. (ISP Schnittstelle) Ich programmiere in Basic mit Basecom. Sooooooooooo ich hänge leider bei der Inbetriebnahme fest^^ Mein plan war es alle möglichen Ausgänge vom Atmega 8 auf High zu setzten. Programm: $regfile = "m8def.dat" $crystal = 1000000 Config Portb.0 = Output Config Portb.1 = Output Config Portb.2 = Output Config Portb.3 = Output Config Portb.4 = Output Config Portb.5 = Output Config Portb.6 = Output Config Portb.7 = Output Config Portc.0 = Output Config Portc.1 = Output Config Portc.2 = Output Config Portc.3 = Output Config Portc.4 = Output Config Portc.5 = Output Config Portc.6 = Output Config Portc.7 = Output Config Portd.0 = Output Config Portd.1 = Output Config Portd.2 = Output Config Portd.3 = Output Config Portd.4 = Output Config Portd.5 = Output Config Portd.6 = Output Config Portd.7 = Output Dim Speed As Integer Speed = 1000 Do Portb.0 = 1 Portb.1 = 1 Portb.2 = 1 Portb.3 = 1 Portb.4 = 1 Portb.5 = 1 Portb.6 = 1 Portb.7 = 1 Portc.0 = 1 Portc.1 = 1 Portc.2 = 1 Portc.3 = 1 Portc.4 = 1 Portc.5 = 1 Portc.6 = 1 Portc.7 = 1 Portd.0 = 1 Portd.1 = 1 Portd.2 = 1 Portd.3 = 1 Portd.4 = 1 Portd.5 = 1 Portd.6 = 1 Portd.7 = 1 Loop End Nun das Problem: Ich messe bei der Hälfte der Ports 5,1V - 5,3V und bei den anderen so 4,6V - 4,7V Und bei einen Port messe ich 2,7 V Ist der Atmega vielleicht kaputt?? Danke im Voraus =)