PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ADC erzeugt Bus Fault



superjany
19.04.2010, 16:58
Hallo,

ich versuche zur Zeit den ADC am LM36965 zum Laufen zu bringen. Bisher
bin ich immer ganz gut mit dem Democode von StellarisWare gefahren.
Diesmal allerdings weiß ich nicht so recht weiter.

Hier erstmal der Code:


unsigned long ulValue;
//
// Enable the first sample sequence to capture the value of channel 0
when
// the processor trigger occurs.
//
ADCSequenceConfigure(ADC_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC_BASE, 0, 0, ADC_CTL_IE | ADC_CTL_END |
ADC_CTL_CH0);
ADCSequenceEnable(ADC_BASE, 0);
//
// Trigger the sample sequence.
//
ADCProcessorTrigger(ADC_BASE, 0);
//
// Wait until the sample sequence has completed.
//
while(!ADCIntStatus(ADC_BASE, 0, false))
{
}
//
// Read the value from the ADC.
//
ADCSequenceDataGet(ADC_BASE, 0, &ulValue);


Bei ADCSequenceConfigure lande ich allerdings im Handler vom Bus Fault... Kann mir jemand weiterhelfen?

Vielen Dank schonmal,
Jan

superjany
23.04.2010, 20:02
Problem hat sich erledigt.