<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Offizielles Bascom Forum</title>
		<link>http://bascom-forum.de/</link>
		<description>Bascom-avr-forum</description>
		<language>de</language>
		<lastBuildDate>Fri, 18 May 2012 15:35:35 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://bascom-forum.de/images/misc/rss.png</url>
			<title>Offizielles Bascom Forum</title>
			<link>http://bascom-forum.de/</link>
		</image>
		<item>
			<title>Nachbau eines Analoginstruments</title>
			<link>http://bascom-forum.de/showthread.php?4319-Nachbau-eines-Analoginstruments&amp;goto=newpost</link>
			<pubDate>Fri, 18 May 2012 11:18:43 GMT</pubDate>
			<description>Hallo Community, 
 
ich möchte gern ein Analoginstrument wie wir es alle kennen nachbauen. 
Die Idee ist es einen Motor mit einer Nadel zu versehen...</description>
			<content:encoded><![CDATA[<div>Hallo Community,<br />
<br />
ich möchte gern ein Analoginstrument wie wir es alle kennen nachbauen.<br />
Die Idee ist es einen Motor mit einer Nadel zu versehen welche die Werte anzeigt die ich übertrage.<br />
<br />
Aktuell habe ich den Wert 0 bis 100 als Drehzahlausgabe <br />
Auf einem 50 mm Blatt habe ich mir ein Instrument ausgedruckt und der<br />
Zeiger soll da stehen wo der jeweilige wert ist z.B. wenn mein Programm 10 sendet soll der Motor auf Position 10 des ausgedruckten Blatts laufen. <br />
<br />
Hier ein Beispiel genau sowas möchte ich realisieren.<br />
<br />

<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/-JGj4FySnY8?version=3&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded">
	<param name="movie" value="http://www.youtube.com/v/-JGj4FySnY8?version=3&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded" />
	<param name="wmode" value="transparent" />
	<param name="allowfullscreen" value="true" />
	<!--[if IE 6]>
	<embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/-JGj4FySnY8?version=3&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded" allowfullscreen="true" />
	<![endif]--></object>
 <br />
<br />
Nun habe ich gestern einen Scanner geschlachtet den Unipolaren Schrittmotor an einen ULN 2003a gehangen und diesen erstmal versucht zum laufen zu bringen was auch klappte. Was mir negativ aufviel ist das dieser Motor wie ein Servo stottert oder zumindest einen ruhigen lauf einer Nadel nicht ermöglicht. Die Schritte sind einfach zu ruckelig.<br />
<br />
Nun habe ich etwas gelesen das man Drehspulenmotoren nutzen soll da sie eine Dämpfung haben und so wie im Auto ganz ruhig laufen ohne zu ruckeln.<br />
<br />
<b>Hier stellen sich mir viele Fragen:</b><br />
Woher bekomme ich so einen <b>kleinen</b> Motor zu einem fairen Preis ?<br />
Was für ein Treiberbaustein benötigt man dafür ?<br />
Und wie füttert sich so eine Steuerung dann eigentlich?<br />
Der Motor darf sehr klein sein da ja nur eine Nadel darauf sitzt.<br />
<br />
Hat jemand eine Ahnung oder Idee wie ich ein Instrument realisieren kann so das die Nadel sich schon ruhig bewegt?<br />
<br />
<br />
Gruß Bee<br />
<br />
<br />
Aktuell habe ich einen Steppermotor bei 360° mit einer Dämpfung der Nadel allerdings ist das immernoch zu ruckelig. Bei Druck der Taste setze ich den Wert auf  100 beim loslassen wird 0 gesetzt. Das dient zum simplen testen und verstehen was ich da mal wieder basteln will. <br />
<br />
<br />
<br />
Schrittmotor Test:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$regfile = &quot;m328pdef.dat&quot;<br />
$crystal = 14745600<br />
$hwstack = 100<br />
$swstack = 100<br />
$framesize = 100<br />
$baud = 57600<br />
<br />
<br />
Test5:<br />
Dim Phase(4) As Byte<br />
Dim Pos As Long<br />
Dim Pos2 As Word<br />
Dim Stp As Byte<br />
Dim U As Byte<br />
<br />
Portb = 255<br />
<br />
Config Portc = &amp;B00001111<br />
Config Adc = Single , Prescaler = Auto , Reference = Off<br />
<br />
Phase(1) = 1<br />
Phase(2) = 2<br />
Phase(3) = 4<br />
Phase(4) = 8<br />
<br />
Do<br />
<br />
&nbsp; If Pinb.0 = 1 Then U = 100<br />
&nbsp; If Pinb.0 = 0 Then U = 0<br />
<br />
&nbsp; U = U / 2<br />
&nbsp; Pos2 = Pos2 + U<br />
&nbsp; Pos2 = Pos2 - Pos<br />
&nbsp; Pos = Pos2 / 100<br />
&nbsp; Stp = Pos And 3<br />
&nbsp; Stp = Stp + 1<br />
&nbsp; Portc = Phase(stp)<br />
&nbsp; Waitms 10<br />
<br />
Loop</code><hr />
</div> <br />
Auch fand ich diese Seite hier wo Schaltpläne sind allerdings sind die Schriften schlecht zu lesen und der Bauplan sagt mir zur realisierung nicht viel aus: <a href="http://www.x-simulator.de/wiki/Tacho_Controller_by_Elektronikjack" target="_blank">Tacho_Controller_by_Elektronikjack</a></div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>escape123</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4319-Nachbau-eines-Analoginstruments</guid>
		</item>
		<item>
			<title>Wohin mit der Fließkommarechnung?</title>
			<link>http://bascom-forum.de/showthread.php?4318-Wohin-mit-der-Fließkommarechnung&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 19:13:59 GMT</pubDate>
			<description>Hallo Bascomfreunde, 
ich habe ein Problem und mir gehen die Ideen aus :-( 
Das Problem sind 6 Fließkommarechnungen (3 Additionen und 3 Divisionen)...</description>
			<content:encoded><![CDATA[<div>Hallo Bascomfreunde,<br />
ich habe ein Problem und mir gehen die Ideen aus :-(<br />
Das Problem sind 6 Fließkommarechnungen (3 Additionen und 3 Divisionen) welche zu einem bestimmten Zeitpunkt durchgeführt werden sollen.Also habe ich in einem Timerinterrupt von Timer0 ,welcher als Zeitbasis fungiert,einen Flag gesetzt und diesen dann in der Do/Loop ausgewertet und wenn gesetzt, dann die Berechnungen machen lassen und den Flag wieder gelöscht.Das ging anfangs auch ganz gut.Inzwischen ist die Do/Loop aber recht lang geworden so das das Timing nicht mehr stimmt und es zu einer Verzögerung mit dem Flag auswerten sowie den Berechnungen kommt.Dann habe ich versucht diese Berechnungen direkt im Timerinterrupt berechnen zu lassen was zwar dahingehend gut ging das das Timing wieder stimmte,aber leider gibt es nun willkürlich seltsame Zeichen im Display und ab und zu hängt sich der AVR ganz auf.Also hier gehts nicht und da auch nicht.Was nun? Daher meine Frage ob es eine Möglichkeit gibt diese Berechnungen zu einem definierten Zeitpunkt,z.B. gestartet durch einen Flag im Timerinterrupt aber unabhängig von der Hauptschleife durchführen zu lassen ?<br />
<br />
viele Grüße und besten Dank im Vorraus!</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>Interner-Fehler</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4318-Wohin-mit-der-Fließkommarechnung</guid>
		</item>
		<item>
			<title>NetIO mit GUI</title>
			<link>http://bascom-forum.de/showthread.php?4317-NetIO-mit-GUI&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 05:50:51 GMT</pubDate>
			<description>Hallo zusammen 
 
Ich befasse mich seit kurzem mit dem Net IO Board von Pollin. Ich habe auch schon diverse andere Firmwaren aufgespielt, Ulrich...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen<br />
<br />
Ich befasse mich seit kurzem mit dem Net IO Board von Pollin. Ich habe auch schon diverse andere Firmwaren aufgespielt, Ulrich Radig... etc. Nun aber wollte ich eine Version die nicht in c geschrieben ist und ein GUI hat das auf dem ATmega läuft und nicht lokal.<br />
<br />
Gibt es eine solche Version in Bascom die ein Web-GUI auf dem Atmega hat?<br />
<br />
gruss und Danke</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?12-Mini-Webserver-AVR">Mini-Webserver-AVR</category>
			<dc:creator>shadow01</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4317-NetIO-mit-GUI</guid>
		</item>
		<item>
			<title>Lichtprofi</title>
			<link>http://bascom-forum.de/showthread.php?4316-Lichtprofi&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:59:34 GMT</pubDate>
			<description><![CDATA[Warum erscheint seit Neuem in der Forum-Startseite gross das Logo von  
http://lichtprofi.de/ ? 
Bug [ATTACH=CONFIG]5438[/ATTACH] or feature? 
Gruss,...]]></description>
			<content:encoded><![CDATA[<div>Warum erscheint seit Neuem in der Forum-Startseite gross das Logo von <br />
<a href="http://lichtprofi.de/" target="_blank">http://lichtprofi.de/</a> ?<br />
Bug <a href="http://bascom-forum.de/attachment.php?attachmentid=5438"  title="Name:  
Hits: 
Größe:  ">Anhang 5438</a> or feature?<br />
Gruss, elektron</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Grafiken</legend>
			<ul>
			<li>
	<img class="inlineimg" src="/gif.gif" alt="Dateityp: gif" />
	<a href="http://bascom-forum.de/attachment.php?attachmentid=5438&amp;d=1337194703">rolleyes.gif&lrm;</a> 
(1,1 KB)
</li> 
			</ul>
			</fieldset>
	

	

	</div>
 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?13-Offtopic">Offtopic</category>
			<dc:creator>elektron</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4316-Lichtprofi</guid>
		</item>
		<item>
			<title>Problem mit Doppelbelegung von I/O PIN</title>
			<link>http://bascom-forum.de/showthread.php?4314-Problem-mit-Doppelbelegung-von-I-O-PIN&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 14:57:25 GMT</pubDate>
			<description>Hallo zusammen, 
  
ich muss für eine Schaltung einen I/O Pin sowohl als Ausgang als auch als Eingang verwenden. 
Im Normalfall ist der Pin als...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
 <br />
ich muss für eine Schaltung einen I/O Pin sowohl als Ausgang als auch als Eingang verwenden.<br />
Im Normalfall ist der Pin als Ausgang = 1 aktiv.<br />
 <br />
Während einer ISR muss der Port als als Eingang geschaltet und der Zustand am Pin abgefragt werden.<br />
Am Ende der ISR wird er wieder auf Ausgang =1 umgeschaltet.<br />
--&gt; Im Moment sehe ich jedoch (dem Oszi sei Dank), dass der Port nicht umgeschaltet wird, da der Port dauerhaft auf 3,6 V = 1 bleibt.<br />
 <br />
Hat jemand eine Idee wo mein Fehler liegt?<br />
 <br />
Danke für Eure Hilfe !<br />
 <br />
Hier den Bacom Code den ich zum Testen verwende:<br />
======================================<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> <br />
$regfile = &quot;xm256d3def.dat&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
$crystal = 32000000&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp;<br />
&nbsp;<br />
$hwstack = 100<br />
&nbsp;<br />
&nbsp;<br />
$swstack = 100<br />
&nbsp;<br />
&nbsp;<br />
$framesize = 100<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
$lib &quot;xmega.lib&quot;<br />
&nbsp;<br />
&nbsp;<br />
$external _xmegafix_clear<br />
&nbsp;<br />
&nbsp;<br />
$external _xmegafix_rol_r1014<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'Interner System Takt aktivieren<br />
&nbsp;<br />
&nbsp;<br />
Config Osc = Disabled , 32mhzosc = Enabled&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1&nbsp; <br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'Interrupts<br />
&nbsp;<br />
&nbsp;<br />
'==========<br />
&nbsp;<br />
&nbsp;<br />
Config Priority = Static , Vector = Application , Lo = Enabled , Med = <br />
Enabled<br />
&nbsp;<br />
&nbsp;<br />
Config Tcc0 = Normal , Prescale = 1024 , Event_source = E0 , Event_action = <br />
Capture<br />
&nbsp;<br />
&nbsp;<br />
On Tcc0_ovf Tastensensor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp;<br />
&nbsp;<br />
Enable Tcc0_ovf , Lo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
Tcc0_per = 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
Enable Interrupts<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'HW Init<br />
&nbsp;<br />
&nbsp;<br />
'=======<br />
&nbsp;<br />
&nbsp;<br />
Ddra = &amp;B11111111&nbsp; &nbsp; &nbsp;  ' Alle Ports als Ausgangeinstellen<br />
&nbsp;<br />
&nbsp;<br />
Ddrb = &amp;B11111111<br />
&nbsp;<br />
&nbsp;<br />
Ddrc = &amp;B11111111<br />
&nbsp;<br />
&nbsp;<br />
Ddrd = &amp;B11111111<br />
&nbsp;<br />
&nbsp;<br />
Ddre = &amp;B11111111<br />
&nbsp;<br />
&nbsp;<br />
Ddrf = &amp;B11111111<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Porta = &amp;B00000000&nbsp; &nbsp;  ' Alle Ausgänge auf 0 bis auf Port-D.6<br />
&nbsp;<br />
&nbsp;<br />
Portb = &amp;B00000000<br />
&nbsp;<br />
&nbsp;<br />
Portc = &amp;B00000000<br />
&nbsp;<br />
&nbsp;<br />
Portd = &amp;B01000000&nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
Porte = &amp;B00000000<br />
&nbsp;<br />
&nbsp;<br />
Portf = &amp;B00000000<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  '<br />
&nbsp;<br />
&nbsp;<br />
Dim Muster As Byte<br />
&nbsp;<br />
&nbsp;<br />
Muster = 1<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Declare Sub Tastensensor<br />
&nbsp;<br />
&nbsp;<br />
Declare Sub Muster1 <br />
&nbsp;<br />
&nbsp;<br />
Declare Sub Muster2<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'Main<br />
&nbsp;<br />
&nbsp;<br />
'====<br />
&nbsp;<br />
&nbsp;<br />
Do<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Portb.1 = 1<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
If Muster = 1 Then<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Call Muster1<br />
&nbsp;<br />
&nbsp;<br />
Elseif Muster = 2 Then<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Call Muster2<br />
&nbsp;<br />
&nbsp;<br />
End If<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Loop<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
End<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'SUBs<br />
&nbsp;<br />
&nbsp;<br />
'====<br />
&nbsp;<br />
&nbsp;<br />
Sub Muster1<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Toggle Portf.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Grüne LED blinkt wenn Muster-1 Sub abgearbeitet <br />
wird<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Waitms 500<br />
&nbsp;<br />
&nbsp;<br />
End Sub<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Sub Muster2<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Toggle Porta.5&nbsp; &nbsp; &nbsp; &nbsp;  'Rote LED <br />
blinkt wenn Muster-1 Sub abgearbeitet wird<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Waitms 500<br />
&nbsp;<br />
&nbsp;<br />
End Sub<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
'ISR<br />
&nbsp;<br />
&nbsp;<br />
'===<br />
&nbsp;<br />
&nbsp;<br />
Tastensensor:<br />
&nbsp;<br />
&nbsp;<br />
Config Pind.6 = Input&nbsp; &nbsp; &nbsp;  'Port-D.6 auf Input schalten<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
If Pind.6 = 0 Then&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
&nbsp; Muster = 2<br />
&nbsp;<br />
&nbsp;<br />
End If<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Toggle Portb.3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Blaue LED blinkt wenn ISR abgearbeitet wird<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Config Pind.6 = Output&nbsp; &nbsp; &nbsp; 'Port-D.6 als Ausgang schalten <br />
&nbsp;<br />
&nbsp;<br />
Pind.6 = 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Return</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>dreampoi</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4314-Problem-mit-Doppelbelegung-von-I-O-PIN</guid>
		</item>
		<item>
			<title>Anfänger Probleme :-)</title>
			<link>http://bascom-forum.de/showthread.php?4313-Anfänger-Probleme-)&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 11:15:10 GMT</pubDate>
			<description>Hallo, 
 
ich möchte mit einem Attiny13 eine kleine Routine starten. 
Es soll ein Taster betätigt werden, der 30sec einen port 5V frei gibt....</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich möchte mit einem Attiny13 eine kleine Routine starten.<br />
Es soll ein Taster betätigt werden, der 30sec einen port 5V frei gibt.<br />
Innerhalb der 30sec soll an einem Pin ein Eingangssignal von 5V ankommen, ist dies nicht der Fall soll das Programm sich resetten. Kommen die 5v an soll der Port solange 5V ausgeben bist am Eingangspin keine Spannung mehr anliegt und danach sich resetten. <br />
Irgendwie fehlt mir dann der ansatzpunkt... <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$regfile = &quot;attiny13.dat&quot;<br />
$crystal = 1200000<br />
$hwstack = 10<br />
$swstack = 10<br />
<br />
Config Portb.2 = Input&nbsp; &nbsp; &nbsp; &nbsp;  'Taster für Programmstart<br />
Taster Alias Pinb.2&nbsp;  <br />
Portb.2 = 1<br />
<br />
Config Portb.1 = Input&nbsp; &nbsp; &nbsp; &nbsp;  '5V Signalempang für Freigabe<br />
Freigabe Ailias Pinb.1<br />
Portb.1 = 1<br />
<br />
Config Portb.0 = Output&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  '5V Spannungsausgang für Relais <br />
Relais Alias Portb.0<br />
Portb.0 = 0<br />
<br />
Dim Zeit As Long <br />
Const Zeit_min = 1 <br />
Const Zeit_ms = Zeit_min *30000&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' 30sec Freigabe 5V<br />
<br />
If Taster&nbsp; = 0 Then<br />
Relais = 1<br />
Waitms Zeit_min<br />
<br />
<br />
???? und dann verließen sie Ihn<br />
<br />
<br />
do <br />
loop<br />
end</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>diggsn</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4313-Anfänger-Probleme-)</guid>
		</item>
		<item>
			<title>UART Verteilung beim Atxmega 128A1</title>
			<link>http://bascom-forum.de/showthread.php?4312-UART-Verteilung-beim-Atxmega-128A1&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 09:45:58 GMT</pubDate>
			<description>Hallo, 
 
Ich habe mir ein ein ATxmega Testboard aufgebaut, soweit läuft auch alles, ich habe nur ein Verständnissproblem mit der UART Verteilung, 
...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
Ich habe mir ein ein ATxmega Testboard aufgebaut, soweit läuft auch alles, ich habe nur ein Verständnissproblem mit der UART Verteilung,<br />
<br />
also bei dem 128A1 ist ja die USARTC0/1 Pin C6/7 in Bascom normalerweise als COM1 deklariert, nun habe ich mir das Bsp aus dem 1mal1  mit dem internen Temperatursensor geschnappt, nur leider ging das nicht, nach ewigen Fehlersuchen wollte ich mal die USARTD0/1 -&gt; Com2 testen um einen HW defekt auszuschliessen, und siehe da auf einmal funktioniert die USARTC0/1, also eigentlich die COM1.<br />
<br />
Habe ich da was falsch verstanden, oder liegt der Fehler in der Bascomversion, ist übriges die 2.0.7.4 <br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">'$sim<br />
$regfile = &quot;xm128a1def.dat&quot;<br />
$crystal = 32000000<br />
$hwstack = 64<br />
$swstack = 40<br />
$framesize = 40<br />
$baud = 9600<br />
<br />
$lib &quot;xmega.lib&quot;<br />
$external _xmegafix_clear<br />
$external _xmegafix_rol_r1014<br />
Config Osc = Enabled , 32mhzosc = Enabled<br />
Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1<br />
<br />
Const 85_grad_in_kelvin = 358.15&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' 85°C + 273.15 =&nbsp; 358.15 K<br />
<br />
<br />
Config Com2 = 9600 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8<br />
Open &quot;COM2:&quot; For Binary As #1<br />
<br />
'setup the ADC-A converter for internal Temp Measurement<br />
Config Adca = Single , Convmode = Unsigned , Resolution = 12bit , Dma = Off , Reference = Int1v , _<br />
Event_mode = None , Prescaler = 512 , Tempref = Enabled , Ch0_gain = 1 , Ch0_inp = Internal , Mux0 = 0<br />
<br />
Print #1 , &quot;---------START internal TEMP--------------&quot;<br />
<br />
Dim Command As Byte<br />
<br />
Dim Temp_ref_85_c As Word<br />
Dim Tempsense0 As Byte At Temp_ref_85_c Overlay<br />
Dim Tempsense1 As Byte At Temp_ref_85_c + 1 Overlay<br />
<br />
<br />
Dim Offset As Byte<br />
<br />
Dim X As Byte<br />
Dim W As Word<br />
Dim Mean As Word<br />
Dim Kelvin_per_adc_step As Single<br />
Dim Grad_celsius As Single<br />
<br />
'Temperatur Reference Values from Production signature Row<br />
'Value = Temp at 85°C and must be used for internal Temp Sensor calibration<br />
<br />
Declare Sub Read_reference_temp_values()<br />
<br />
Config Portf.4 = Output<br />
Config Portf.5 = Output<br />
Config Portf.6 = Output<br />
Config Portf.7 = Output<br />
Portf.4 = 1<br />
Portf.5 = 1<br />
Portf.6 = 1<br />
Portf.7 = 1<br />
<br />
'Config Portc.7 = Output<br />
'Config Pinc.6 = Input<br />
<br />
Waitms 100<br />
<br />
<br />
Do<br />
Call Read_reference_temp_values()&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Read Temp Ref Values from Production Signature Row<br />
<br />
<br />
Print #1 ,<br />
Print #1 , &quot;------------------------------------------&quot;<br />
Print #1 , &quot;Tempsense0 = &quot; ; Hex(tempsense0) ; &quot; / &quot; ; &quot;Tempsense1 = &quot; ; Hex(tempsense1)<br />
Print #1 ,<br />
<br />
Waitms 100<br />
'For internal Measurements use Unsigned mode, 12 bit, Internal 1.00 V Reference.<br />
<br />
'Ch0_inp = Internal --&gt; Intern wie z.B. Temperatursensor, BANDGAP, Vcc/10 oder den DAC Output zurücklesen<br />
'Mux0 = 0&nbsp; --&gt; interner TEMPERATUR SENSOR<br />
'Prescaler = 512 --&gt; 32MHz/512 = 62,5KHz ADC Clock&nbsp; (MAXIMUM für internal = 100KHz)<br />
<br />
Print #1 , &quot;Temp_ref_85_c bzw. bei 358K =&nbsp; &quot; ; Temp_ref_85_c ; &quot;&nbsp; und bei 0K (bei -273°C) = 0&quot;<br />
<br />
Kelvin_per_adc_step = 85_grad_in_kelvin / Temp_ref_85_c<br />
Print #1 , &quot;Kelvin_per_adc_step = &quot; ; Kelvin_per_adc_step ; &quot; per Step&quot;<br />
<br />
Print #1 ,<br />
<br />
W = Getadc(adca , 0)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'One Dummy Measurement<br />
Waitms 150<br />
Print #1 ,<br />
<br />
Print #1 , &quot;--Internal Temperature--&quot;<br />
<br />
<br />
'#####################TEMPERATURE MEASUREMENT###################################<br />
&nbsp;Mean = 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'clear mean<br />
<br />
&nbsp;For X = 1 To 4<br />
&nbsp; W = Getadc(adca , 0)<br />
&nbsp; Waitms 50<br />
&nbsp; Mean = Mean + W&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Mean Value of the last 4 Measurements<br />
&nbsp; Waitms 100<br />
&nbsp;Next<br />
<br />
&nbsp; Mean = Mean / 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Mean Value of the last 4 Measurements<br />
&nbsp; Grad_celsius = W * Kelvin_per_adc_step<br />
&nbsp; Grad_celsius = Grad_celsius - 273.15<br />
&nbsp; Print #1 , &quot;Temp = &quot; ; W ; &quot; in Grad C = &quot; ; Fusing(grad_celsius , &quot;##.#&quot;) ; &quot; °C&quot;<br />
<br />
<br />
&nbsp; Portf.4 = 0<br />
&nbsp; Portf.5 = 0<br />
&nbsp; Portf.6 = 0<br />
&nbsp; Portf.7 = 0<br />
<br />
&nbsp; Waitms 100<br />
&nbsp; Portf.4 = 1<br />
&nbsp; Portf.5 = 1<br />
&nbsp; Portf.6 = 1<br />
&nbsp; Portf.7 = 1<br />
<br />
Loop<br />
<br />
<br />
End&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'end program<br />
<br />
'---------------SUB-------------------------------------------------------------<br />
<br />
Sub Read_reference_temp_values()<br />
<br />
&nbsp;Offset = &amp;H2E&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Offset for Tempsense0<br />
&nbsp;Command = &amp;H02&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Command for READ SIGNATURE ROW<br />
<br />
&nbsp;!ldS&nbsp; r16, {offset}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Load Offset to Register R16<br />
&nbsp;!ldS&nbsp; r20, {Command}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Load NVM command to Register R20.<br />
&nbsp;!mov&nbsp; ZL, r16&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Load Offset into low byte of Z<br />
&nbsp;!clr&nbsp; ZH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Clear high byte of Z.<br />
&nbsp;!sts&nbsp; NVM_CMD, r20&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Load command now into NVM Command register.<br />
&nbsp;!lpm&nbsp; r16, Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Perform a LPM to read out byte to R16<br />
<br />
&nbsp;Command = &amp;H00&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Command to Clear NVM Command register<br />
<br />
&nbsp;!ldS&nbsp; r20, {Command}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Clear NVM Command register<br />
&nbsp;!sts&nbsp; NVM_CMD, r20<br />
&nbsp;!STS {Tempsense0}, R16<br />
<br />
<br />
<br />
&nbsp;'-----------------------------<br />
<br />
&nbsp;Offset = &amp;H2F&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Offset for Tempsense1<br />
&nbsp;Command = &amp;H02&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Command for READ SIGNATURE ROW<br />
<br />
&nbsp;!ldS&nbsp; r16, {offset}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Load Offset to Register R16<br />
&nbsp;!ldS&nbsp; r20, {Command}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Load NVM command to Register R20.<br />
&nbsp;!mov&nbsp; ZL, r16&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Load Offset into low byte of Z<br />
&nbsp;!clr&nbsp; ZH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Clear high byte of Z.<br />
&nbsp;!sts&nbsp; NVM_CMD, r20&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Load command now into NVM Command register.<br />
&nbsp;!lpm&nbsp; r16, Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Perform a LPM to read out byte to R16<br />
<br />
&nbsp;Command = &amp;H00&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Command to Clear NVM Command register<br />
<br />
&nbsp;!ldS&nbsp; r20, {Command}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Clear NVM Command register<br />
&nbsp;!sts&nbsp; NVM_CMD, r20<br />
&nbsp;!STS {Tempsense1}, R16<br />
<br />
&nbsp; Waitms 100<br />
<br />
End Sub</code><hr />
</div> mfg René</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>dj1yr</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4312-UART-Verteilung-beim-Atxmega-128A1</guid>
		</item>
		<item>
			<title>Kommunikation zwischen Atmega8 und Atmega16</title>
			<link>http://bascom-forum.de/showthread.php?4311-Kommunikation-zwischen-Atmega8-und-Atmega16&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 16:47:35 GMT</pubDate>
			<description>Hallo Leute, 
 
ich probiere im Moment ein Text vom Atmega 8 am Atmega 16 zu schicken. Leider funktioniert das garnicht.... 
Erst mal meine Codes: 
...</description>
			<content:encoded><![CDATA[<div>Hallo Leute,<br />
<br />
ich probiere im Moment ein Text vom Atmega 8 am Atmega 16 zu schicken. Leider funktioniert das garnicht....<br />
Erst mal meine Codes:<br />
<br />
Atmega8<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$regfile = &quot;m8def.dat&quot;<br />
$crystal = 3686400<br />
$baud = 4800<br />
<br />
Dim Wort As String * 8<br />
<br />
Wort = &quot;Hallo&quot;<br />
<br />
Do<br />
Print Wort<br />
Loop<br />
End</code><hr />
</div> Atmega 16<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$regfile = &quot;m16def.dat&quot;<br />
$crystal = 1000000<br />
$baud = 4800<br />
Config Lcdpin = Pin , Db4 = Portd.3 , Db5 = Portd.4 , Db6 = Portd.6 , _<br />
Db7 = Portd.7 , E = Portc.0 , Rs = Portd.2<br />
Config Lcd = 16 * 2<br />
Cursor Off<br />
Cls<br />
<br />
Dim Wort As String * 8<br />
<br />
Do<br />
&nbsp;  Input Wort<br />
<br />
&nbsp;  Locate 1 , 1<br />
&nbsp;  Lcd Wort<br />
<br />
&nbsp;  Locate 2 , 1<br />
&nbsp;  Lcd &quot;.......&quot;<br />
Loop<br />
End</code><hr />
</div> Am PC Empfange ich die Sachen vom Atmega8 richtig. Auf den LCD-Display kann ich auch den Text (&quot;Hallo&quot;) lesen, jedoch sind dort noch andere Zeichen drin.<br />
<br />
Anscheint muss das Problem am Atmega 16 liegen. Es ist ein komplett neuer und deswegen habe ich die $crystal auf 1000000. Bei einer anderen $crystal z.B. 4000000, 8000000, 1600000 zeigt er garnichts an. Auch Die Baudrate habe ich schon verändert. Ich weiß nicht, wo der Fehler liegt. Es wäre schön, wenn jemand helfen könnte.!</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>Devilstar</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4311-Kommunikation-zwischen-Atmega8-und-Atmega16</guid>
		</item>
		<item>
			<title>Getkbd</title>
			<link>http://bascom-forum.de/showthread.php?4310-Getkbd&amp;goto=newpost</link>
			<pubDate>Sun, 13 May 2012 22:33:09 GMT</pubDate>
			<description><![CDATA[Hallo, 
 
Ich möchte gerne eine Tastermatrix abfragen. Nun gibt es im Netz Beispiele mit Widerständen und ohne ??? 
 
Auch in Dons 1x1 gibt's beide...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
Ich möchte gerne eine Tastermatrix abfragen. Nun gibt es im Netz Beispiele mit Widerständen und ohne ???<br />
<br />
Auch in Dons 1x1 gibt's beide Varianten ???<br />
<br />
Gruß midifix</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>midifix</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4310-Getkbd</guid>
		</item>
		<item>
			<title>Werte im Eeprom speichern</title>
			<link>http://bascom-forum.de/showthread.php?4309-Werte-im-Eeprom-speichern&amp;goto=newpost</link>
			<pubDate>Sun, 13 May 2012 21:43:51 GMT</pubDate>
			<description>Hi! 
 
Hab da mal ein kleines Problem. Möchte eine DMX Adresse im int. Eeprom speichern. Habe die VAriable als Word deklariert das es ja bis zu 512...</description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
Hab da mal ein kleines Problem. Möchte eine DMX Adresse im int. Eeprom speichern. Habe die VAriable als Word deklariert das es ja bis zu 512 Kanäle geben kann. bis 255 geht auch alles, aber wenn es darüber hinaus geht vertauscht er beim schreiben beide Bytes. Wie kann ich ihna dazu bringen es anders herum zu speichern?<br />
<br />
mfg<br />
<br />
BLUTENGEL</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>blutengel</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4309-Werte-im-Eeprom-speichern</guid>
		</item>
		<item>
			<title><![CDATA[Zeitdauer DIR("12345678.TXT") aufruf]]></title>
			<link>http://bascom-forum.de/showthread.php?4308-Zeitdauer-DIR(-quot-12345678.TXT-quot-)-aufruf&amp;goto=newpost</link>
			<pubDate>Sun, 13 May 2012 08:25:25 GMT</pubDate>
			<description>Hallo an alle ! 
 
Ich habe ein Problem mit AVR-DOS. Die Karte und alle Functionen (schreiben lesen usw.) gehen problemlos. 
Aber ein einfacher...</description>
			<content:encoded><![CDATA[<div>Hallo an alle !<br />
<br />
Ich habe ein Problem mit AVR-DOS. Die Karte und alle Functionen (schreiben lesen usw.) gehen problemlos.<br />
Aber ein einfacher Aufruf  wie  A$ = Dir(&quot;Info.DAT&quot;) dauert (auch reproduzierbar) 0,1 bis 0,3 Sekunden.<br />
(8 Mhz ATMega128).<br />
Nach meinen ermessen dauert das vielllll zu lange.<br />
<br />
Hat irgend einer Info oder selbst schon mal gemessen wie lange das bei euch dauert ?<br />
<br />
Bin Dankbar für jede Info.<br />
Gruss   Günni (Fileplayer)</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?15-AVR-DOS">AVR-DOS</category>
			<dc:creator>Fileplayer</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4308-Zeitdauer-DIR(-quot-12345678.TXT-quot-)-aufruf</guid>
		</item>
		<item>
			<title>Portproblem</title>
			<link>http://bascom-forum.de/showthread.php?4307-Portproblem&amp;goto=newpost</link>
			<pubDate>Sat, 12 May 2012 20:00:59 GMT</pubDate>
			<description>Hallo Ich schalte mit einem Amega32 einen Atmega16 Slave ( später 2 ) über TWI 20 Relais. 
Alles funktionniert super bis auf die 2 Relais die an Port...</description>
			<content:encoded><![CDATA[<div>Hallo Ich schalte mit einem Amega32 einen Atmega16 Slave ( später 2 ) über TWI 20 Relais.<br />
Alles funktionniert super bis auf die 2 Relais die an Port PD.0 RXD und PD.1 TXD liegen.<br />
Wenn ich keine serielle Daten übertrage d.h. Baud nicht konfiguriere, müsste ich die beiden <br />
Port's doch normal als Ausgamg nutzen können oder sehe ich das falsch ?<br />
MfG und schönes WE  John</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>john</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4307-Portproblem</guid>
		</item>
		<item>
			<title>Hardware SPI  dogm128-6 bascom.</title>
			<link>http://bascom-forum.de/showthread.php?4306-Hardware-SPI-dogm128-6-bascom.&amp;goto=newpost</link>
			<pubDate>Sat, 12 May 2012 19:40:07 GMT</pubDate>
			<description><![CDATA[Halllo, 
ich bräuchte mal eure Hilfe. 
Das Dogm 128-6 kann man per Software SPI so ansteuern: 
 
$lib "glcdeadogm128x6.lbx" 
 Config Graphlcd = 128 *...]]></description>
			<content:encoded><![CDATA[<div>Halllo,<br />
ich bräuchte mal eure Hilfe.<br />
Das Dogm 128-6 kann man per Software SPI so ansteuern:<br />
<br />
$lib &quot;glcdeadogm128x6.lbx&quot;<br />
 Config Graphlcd = 128 * 64eadogm , Cs1 = Porta.0 , A0 = Porta.2 , Si = Porta.4 , Sclk = Porta.3 , Rst = Porta.1<br />
 Cls<br />
 Setfont Font5x6<br />
<br />
<br />
Wie kann ich es per Hardware SPI bim Atmega 168 ansteuern?<br />
<br />
4 Pin werden benötigt<br />
<br />
SI = Mosi<br />
SCL= SCK<br />
C1B= Chip select bei low aktiv. Pin selber aussuchen ? Pin fest auf Low anschliessen schlecht fürs ISP Proggen.<br />
A0 = Abfrage ob Kommando oder Daten. Pin selber aussuchen?<br />
<br />
<br />
Wird die Syntax wie in der Bascom Hilfe vorgenommen?<br />
Syntax for hardware SPI<br />
 <br />
CONFIG SPI|SPIHARD = HARD, INTERRUPT=ON|OFF, DATA_ORDER = LSB|MSB , MASTER = YES|NO , POLARITY = HIGH|LOW , PHASE = 0|1, CLOCKRATE = 4|16|64|128 , NOSS=1|0 , SPIIN=value<br />
<br />
Hat jemand Erfahrungen gesammelt und könnte mir die richtige config mal posten?<br />
Wie sieht es mit den Pins C1B und A0 aus bei Hardware SPI?<br />
<br />
Vorteile gegenüber der Software SPI Lösung sind wohl der kleinere Rechenaufwand und die schnellere Aktualisierung des Display´s.<br />
SPI Clock kann bis 1/2 Taktfrequenz des AVR´s sein!<br />
<br />
Vielen Dank für eure hilfreichen Antworten im Voraus.</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>mirco99</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4306-Hardware-SPI-dogm128-6-bascom.</guid>
		</item>
		<item>
			<title>MCP23S17 als Porterweiterer nutzen, paar Fragen</title>
			<link>http://bascom-forum.de/showthread.php?4305-MCP23S17-als-Porterweiterer-nutzen-paar-Fragen&amp;goto=newpost</link>
			<pubDate>Sat, 12 May 2012 17:35:23 GMT</pubDate>
			<description>Hey, 
 
ich wollte fragen, ist der MCP23S17 Als Baustein der zur I/O 
Porterweiterung ansteuerbar über Bascom ähnlich wie die normalen Ports 
des...</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
ich wollte fragen, ist der MCP23S17 Als Baustein der zur I/O<br />
Porterweiterung ansteuerbar über Bascom ähnlich wie die normalen Ports<br />
des µCs?<br />
<br />
Also Portc.1 = Output?<br />
<br />
Oder gibt es sowas nicht? Gut man müsste den MCP23S17 erst einmal<br />
verbinden und konfigurieren mit dem µC.<br />
<br />
<br />
Michael</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?9-Hardware">Hardware</category>
			<dc:creator>lwlbochum2011</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4305-MCP23S17-als-Porterweiterer-nutzen-paar-Fragen</guid>
		</item>
		<item>
			<title><![CDATA[Wert an einem Portpin ohne den Befehl "SHIFTOUT" ausgeben]]></title>
			<link>http://bascom-forum.de/showthread.php?4304-Wert-an-einem-Portpin-ohne-den-Befehl-quot-SHIFTOUT-quot-ausgeben&amp;goto=newpost</link>
			<pubDate>Sat, 12 May 2012 17:34:29 GMT</pubDate>
			<description><![CDATA[Hallo Gemeinde! 
 
Ich bin momentan an dem "Projekt" dran, Werte auf 7-Segmentanzeigen anzuzeigen. 
Zuvor habe ich lediglich ein zuverlässiges...]]></description>
			<content:encoded><![CDATA[<div>Hallo Gemeinde!<br />
<br />
Ich bin momentan an dem &quot;Projekt&quot; dran, Werte auf 7-Segmentanzeigen anzuzeigen.<br />
Zuvor habe ich lediglich ein zuverlässiges Programm zum Auswerten von Inkrementalgebern erfolgreich geschrieben.<br />
Meine Schaltung sieht so aus, dass ich 3 dieser 7-Segment-Anzeigen habe, welche von 3 in Serie geschalteten Schieberegistern angesteuert werden.<br />
Das funktioniert soweit alles.<br />
Die Sache ist jetzt, dass ich einen Byte-Wert, also 0-255, schrittweise nacheinander an nur einem Portpin binär ausgeben möchte. <br />
Dieser Wert soll dann in das Schieberegister mit einem Takt eingeschrieben werden und dann an einer der 3 Anzeigen eine Zahl ausgeben.<br />
<br />
Da ich nicht so gerne die fertigen Befehle von Bascom nutze und außerdem auch etwas beim Programmieren für die Zukunft lernen möchte, würde ich den Code dafür, so weit es nur möglich ist, selbst schreiben wollen.<br />
Angeblich soll der Befehl &quot;SHIFTOUT&quot; dafür wie gemacht sein, aber wie gesagt, es stört mich, blind Befehle zu nutzen, von denen ich nicht weiß, wie sie funktionieren.<br />
<br />
Ist es in Bascom nicht irgendwie möglich, die Koordinaten eines Bytes zu wählen? <br />
<br />
So in etwa:<br />
<br />
Portd.0 = X.3<br />
<br />
Dabei wäre X die Bytevariable und 3 die Stelle binär gesehen.<br />
<br />
Da ich noch eher zu dem Anfängern gehöre, was das Programmieren in Bascom angeht, habe ich leider keine andere Idee, wie man das umsetzen könnte.<br />
Ich würde mich sehr freuen, wenn mir jemand bei diesem Problem weiterhelfen könnte.:)<br />
<br />
MfG Sven</div>

 ]]></content:encoded>
			<category domain="http://bascom-forum.de/forumdisplay.php?8-Bascom-AVR-Forum">Bascom-AVR-Forum</category>
			<dc:creator>langerblitz</dc:creator>
			<guid isPermaLink="true">http://bascom-forum.de/showthread.php?4304-Wert-an-einem-Portpin-ohne-den-Befehl-quot-SHIFTOUT-quot-ausgeben</guid>
		</item>
	</channel>
</rss>

