Forum: Mikrocontroller und Digitale Elektronik AD-Wandler im 2333


von Karsten Röder (Gast)


Lesenswert?

Hallo!

Wie kann ich bei dem Atmel 2333 den A/D-Wandler ansprechen?

Danke!

Karsten

von Claus Kühnel (Gast)


Lesenswert?

Hier ist ein Beispiel mit BASCOM-AVR:

'--------------------------------------------------------------------
'                  ADC.BAS
'  demonstration of GETADC() function for 8535 micro
'--------------------------------------------------------------------
'configure single mode and auto prescaler setting
'The single mode must be used with the GETADC() function

'The prescaler divides the internal clock by 2,4,8,15,32,64 or 128
'Because the ADC needs a clock from 50-200 KHz
'The AUTO feature, will select the highest clockrate possible
Config Adc = Single , Prescaler = Auto
'Now give power to the chip
Start Adc

'With STOP ADC, you can remove the power from the chip
'Stop Adc

Dim W As Word , Channel As Byte

Channel = 0
'now read A/D value from channel 0
Do
  W = Getadc(channel)
  Print "Channel " ; Channel ; " value " ; W
  Incr Channel
  If Channel > 7 Then Channel = 0
Loop
End

von Michael (Gast)


Lesenswert?

Das hat ihm wohl richtig geholfen :-)

von Patrick Küpper (Gast)


Lesenswert?

Wie viel kostet der Atmel-2333 jetzt und wo kann ich ihn bekommen?

von Roland Praml (Gast)


Lesenswert?

Der 2333er wird nicht mehr hergestellt, entweder 4433er oder atmega8
verwenden.

Gruß
Roland

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.