Escolar Documentos
Profissional Documentos
Cultura Documentos
HWTestPart15(WhatIsBaudRate)
bus = core/2
1: A 9S12 has a core clock frequency of 5.5 MHz. What is the SPI0 Baud Rate (in
kb/s to one decimal places) given the following register settings?
SPIBR0 = 0x41;
SPICR10 = 0XD2;
HWTest16(DACLevels)
#
N = Number of conversion bits
Second problem type (max voltage) > Maximum Output = V(REF) Resolution
where Resolution = V(REF) /(2^N)
If Bipolar: Resolution = V(REF) /(2^(N-1))
Voltage Range = V(REF)
Smallest Voltage = V(REF)/(2^N) **if bipolar subtract 1 from N**
2. If a 9bit bipolar DAC has a reference voltage of 12.8 Volts, what is the
maximum voltage ( in Volts to four decimal places) that can be produced?
Bipolar > double tres prior to output calc 12.7500
HWTest18(ADCPRS)
This one’s a little tricky. You need to solve
T(sample) = 2x(PRS+1)/fBus x (n(SMP) +12))
n(SMP) = 2^(SMP+1) [SMP ranges from 0 to 3]
PRS = (( (T(sample)*fBus)/(2^(SMP+1)+12))/2)-1
1. Given the 9S12 Bus clock frequency ADC SMP value below what
must the value of PRS in ATDCTL4 need to be to give the ADC
sample time given?