baudrate von 19200, nur der rest keine ahnung. und dann mal frage ob das funktioniert 2 * Funk-AVR-Evaluations-Board v1.2 2 * Atmel ATmega 32 mit 16MHz Clock vom Board 2 * RFM12S
Danke an Benedikt ich habe die Module mit zwei Anpassungen zum laufen bekommen. Ich habe ein tamega32 in Verbindung mit avr bord von robotikhartware gennutzt. 1. es muste nur die pins vom port änder #define SDI 5 //5 #define SCK 7 //6 #define CS 4 //7 #define SDO
4F 03 C4 FF 77 zurück und nicht 03 C4 00 88 zum Ausschalten 1 mal F4 02 10 E6 --> <--- 4F 02 90 DD > Nun frage ich mich wie der physische Aufbau ausehen müsste um einen AVR mit dem W-bus zu verbinden. Bin nur Hobbybastler...
www.hoperf.com/doce/pro/RFM12.html (Im programming guide gibts auch ein Schaltplan-Beispiel mit AVR)
habe ich nie gemessen, da meine Messgeräte alle nur 0,1mA Auflösung haben. Der mega48 lief mit einem 32kHz Quarz, der den AVR alle 5s aufweckte, und eine Messung startete und 1s später den auslas. 1x pro Minute wurde der Wert dann in den externen Flash (waren sogar glaube ich 512kbyte) geschrieben. Das
Bin Einsteiger in AVR GCC (sonst arbeite ich mit ASM) und habe heute das erste C Programm mit AVR GCC geschrieben. Hatte keine Probleme mit dem Compiler, läuft alles super, aaaaber im Build-Fenster steht: 2316 bytes
0.0; return -PIBY2; } z = y/x; if (fabs(z) < 1.0f) { atan = z/(1.0 + 0.28*z*z); if (x < 0.0) { if (y < 0.0) return atan - M_PI; return atan + M_PI; } } else { atan = PIBY2 - z/(z*z + 0.28); if (y < 0.0) return atan -
moin, moin, kurzer Zwischenstand: Die AVR-Seite mit dem FAT16-Dateisystem funktioniert jetzt. Lösung: 1GB-Speicherkarte - warum das Ganze mit den kleinen Karten (4, 32, 512MB) nicht funktioniert ist mir schleierhaft. Egal - so kleine
seht Ihr den Versuchsaufbau mit den ganzen Nabelschnüren (V24Moppel-Terminal, V24AVR-Terminal, AVR_Promer und die Testanschlüsse für das Oszi) Das Oszibild zeigt im oberen Kanal das /ACK-Signal vom AVR und im unteren das /OBF aus dem Moppel. Auf beiden Seiten wird jeweils das Byte
Ach ja nochwas, das ganze läuft an nem ATmega32 mit 16MHz, im moment zum testen allerdings nur mit 1MHZ weil ich dachte dass es vielleicht an den Wartezyklen liegt ..
noch sagst, was genau "nicht so wirklich" funktioniert, wäre das hilfreich... BTW: Für den ATMega32 stimmt die Interrupt-Tabelle aber überhaupt nicht. Der Mega32 hat mehr als 8 KB Flash und deshalb sind die Vektoren 32 Bit lang, weil rjmp nur 8K ansprechen kann. Dürfte aber für Deine Anwendung keine
;*************************************************************************** ;* Atmel AVR-microcontroller and Epson LC-Display-controller SED1374 * ;* for use with "1/4VGA"-Display (320*240 pixel) Samsung UG32-F05 * ;* Data input via Linear Technology LTC1298 12Bit ADC * ;* Data output via
Der Code ist der vom FatFs, aber angepasst von einem mega64 auf einen mega32. Daher sind die Kommentare etwas gemischt. ASSR ist auf 0 weil ich kein 32kHz Quarz drann habe und daher keinen async kann, egal ob Timer0 das in meinem Fall kann oder nicht. OC2 toggelt nicht,
Aufgrund der geschilderten und einiger anderer Merekwürdigkeiten gehe ich abere davon aus, das der mega32 das Zeitliche gesegnet hat, er ist definitiv defekt. Also danke an alle, das Beispiel funktioniert im Simulator und ich denke auch in einem neuen mega32. Gruß, Ulrich
left dividend rol dd32u_1 rol dd32u_2 rol dd32u_3 dec dcnt32u ;decrement counter brne d32u_2 ;if done ret ; return d32u_2: rol drem32u_0 ;shift dividend into remainder rol drem32u
Abschluss Dipl.-Ing (FH) Elektrotechnik, Fachrichtung Informationstechnik Einstiegsgehalt Mitte 2005: ~32k€, 37h/Wo., Software-Entwickler (Firmware auf AVR bis Datenbankanwendung auf PC) Mitte 2006 Firmenwechsel wg. ausbleibender Gehaltserhöhung, nun ~51k€, 40h/Wo., Software-Entwickler im Embedded-Bereich
34k in Berlin sind utopisch, ich würde hier nicht über 28k gehen. 38k sind auch in BaWü und Bayern utopisch. Hier wären 32k IMO die Obergrenze.
dv16uL ; restore remainder adc drem16uH,dv16uH clc ; clear carry to be shifted into result rjmp d16u_28 ;else d16u_27:sec ; set carry to be shifted into result d16u_28:rol dd16uL ;shift left dividend rol dd16uH rol drem16uL ;shift dividend into remainder rol drem16uH sub drem16uL,dv16uL ;remainder = remainder
otherwise. R (Result) equals Rd after the operation. Example: add r1,r2 ; Add r2 to r1 (r1=r1+r2) add r28,r28 ; Add r28 to itself (r28=r28+r28) Words: 1 (2 bytes) Cycles: 1 17 0856E–AVR–11/05 ADIW – Add Immediate to Word Description: Adds an immediate value (0 - 63) to a register pair and places the result
library (lcd_io.c) Author: Chris efstathiou hendrix@otenet.gr Date: 2/2/2003 6:35:06 ìì Software: AVR-GCC with AVR-AS Target: any AVR device Comments: This software is FREE. DESCRIPTION Basic routines for interfacing a HD44780U-based text lcd display Based on Volker Oth's lcd library (http://members.xoom.com
otherwise. R (Result) equals Rd after the operation. Example: add r1,r2 ; Add r2 to r1 (r1=r1+r2) add r28,r28 ; Add r28 to itself (r28=r28+r28) Words: 1 (2 bytes) Cycles: 1 17 0856D–AVR–08/02 ADIW – Add Immediate to Word Description: Adds an immediate value (0 - 63) to a register pair and places the result
library (lcd_io.c) Author: Chris efstathiou hendrix@otenet.gr Date: 2/2/2003 6:35:06 ìì Software: AVR-GCC with AVR-AS Target: any AVR device Comments: This software is FREE. DESCRIPTION Basic routines for interfacing a HD44780U-based text lcd display Based on Volker Oth's lcd library (http://members.xoom.com
Temperature Range °C Soldering Temperature, for 10 seconds 300 (1.6mm from case ) Mounting torque, 6-32 or M3 srew 10 lbf in (1.1N m) Thermal Resistance Parameter Typ. Max. Units RθJC Junction-to-Case ––– 0.75 RθCS Case-to-Sink, Flat, Greased Surface 0.50 ––– °C/W RθJA Junction-to-Ambient ––– 62 www.irf.com
otherwise. R (Result) equals Rd after the operation. Example: add r1,r2 ; Add r2 to r1 (r1=r1+r2) add r28,r28 ; Add r28 to itself (r28=r28+r28) Words: 1 (2 bytes) Cycles: 1 17 0856D–AVR–08/02 ADIW – Add Immediate to Word Description: Adds an immediate value (0 - 63) to a register pair and places the result
of words & cycles (Min/Max) c o m m e n t s ;* "ADD32" 6 4/5 Size of Add32sign ;* "SUB32" 16 6/15 Size of Sub32sign ;* "MUL32" 24 460/556 Size of Mul32b, based on AVR200 16x16 unsigned ;* "DIV32" 28 528/688 Size of Div32b, based on AVR200 16/16 unsigned
don´t have to be changed for the use for the most part. Both files you can find in the directory ($avr)/include. For further information look up the program make and its helpfile. The structure of a possible makefile: # This part includes the make1 file of the include directory # include $(AVR)/include
Features High-performance, Low-power AVR 8-bit Microcontroller Advanced RISC Architecture – 133 Powerful Instructions – Most Single Clock Cycle Execution – 32 x 8 General Purpose Working Registers + Peripheral Control Registers – Up to 16
otherwise. R (Result) equals Rd after the operation. Example: add r1,r2 ; Add r2 to r1 (r1=r1+r2) add r28,r28 ; Add r28 to itself (r28=r28+r28) Words: 1 (2 bytes) Cycles: 1 17 0856D–AVR–08/02 ADIW – Add Immediate to Word Description: Adds an immediate value (0 - 63) to a register pair and places the result
Features High-performance, Low-power AVR 8-bit Microcontroller Advanced RISC Architecture – 133 Powerful Instructions – Most Single Clock Cycle Execution – 32 x 8 General Purpose Working Registers + Peripheral Control Registers – Up to 16
don´t have to be changed for the use for the most part. Both files you can find in the directory ($avr)/include. For further information look up the program make and its helpfile. The structure of a possible makefile: # This part includes the make1 file of the include directory # include $(AVR)/include
n G Y 2 F D 1 R R 2 1 1 1 0 1 L D 3 M 1 C A 3 2 3 1 R 5 2 T 1 R F F 4 K 1 C LCS suBMS 5 ADS T A 2 28 AVR450 AVR450 Appendix 2: Power Supply The power supply unit for the battery charger is built around a TOP224 from Power Integration. The flyback The schematic below shows a power supply that supplies
dv16uL ; restore remainder adc drem16uH,dv16uH clc ; clear carry to be shifted into result rjmp d16u_28 ;else d16u_27:sec ; set carry to be shifted into result d16u_28:rol dd16uL ;shift left dividend rol dd16uH rol drem16uL ;shift dividend into remainder rol drem16uH sub drem16uL,dv16uL ;remainder = remainder
- Dieser Beispielcode ist geschrieben für 8MHz CPU-Takt! ;* - Teile des Codes stammen aus den Math32-Routinen ;* ;* ----------------------------------------------------- ;* Subroutines... ;* ;* Number of words & cycles (Min/Max) c o m m e n t s ;* "DIV32" 28 528/688 Size of Div32b, based on AVR200 16
ATmega8: 1.85 LPC2103: 2.50 ATmega32: 3.50 LPC2103: 3.75 Der Preisunterschied zum AVR ist im Hobby- und Kleinserienbereich also völlig zu vernachlässigen. Und die nächste, noch-lower-cost-Generation ist schon im Anmarsch (Cortex M3
Flash/32k RAM / 60MHz / 32-bit zum Preis eines Atmega128.