Bin relativ neu auf diesem Gebiet und habe schon die ersten Probleme. Habe mir eine kleine Schaltung mit dem AtMega8-16PU aufgebaut, welche erst einmal nur eine LED einschalten soll. Die Programmierung wird mit Bascom über ein USB Interface realisiert. Mit Bascom-AVR kann ich den uC auch flashen und auslesen, jedoch passiert rein gar nichts an den angeklemmten Pins. Weiß echt nicht wo das Problem zu finden sein kann. Ich hoffe, das mir jemand helfen kann.
1 | $regfile = "M8def.dat" |
2 | $crystal = 1000000 |
3 | $hwstack = 100 |
4 | $swstack = 100 |
5 | $framesize = 100 |
6 | |
7 | Config Portc.0 = Output |
8 | Config Portc.1 = Output |
9 | Config Portc.2 = Output |
10 | Config Portc.3 = Output |
11 | |
12 | Portc.0 = 1 |
13 | Portc.1 = 1 |
14 | Portc.2 = 1 |
15 | Portc.3 = 1 |
16 | |
17 | End |
Grundschaltung: http://www.kreatives-chaos.com/images/36.png ISP: http://www.kreatives-chaos.com/images/40.png