Ultra Start 16xx Manuel d'utilisateur Page 5

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 37
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 4
MEB/0404
© 2004 Texas Instruments Inc, Slide 5
Memory
Write Less Code
Other MCU
movf ADCRESH,W
movwf RAMH
bsf STATUS 0x20
movf ADCRESL,W
bcf STATUS 0x20
movwf RAML
84 bits / 24 cycles
10-bits
10-bit
ADC
MSP430
mov ADC10MEM,RAM
48 bits / 6 cycles
The example shows the effectiveness of the MSP430’s 16-bit architecture in a common
function, the process of servicing an integrated 10-bit ADC saving the conversion code to
RAM.
•The MSP430 can move any 8 or 16-bit value from any memory location to any memory location
in the entire address space in one instruction.
•The 8-bit MCU requires numerous instructions, and is forced to break the 10-bit ADC output into
two bytes. The limitation of an accumulator based architecture is also shown with data always
passing through the accumulator. The need to always pass data through the accumulator and
being forced to change memory pages with the 8-bit MCU increases code size, reduces
performance and increases power consumption.
•A question to ask is if whether your application manipulates data greater than 8-bits, i.e. 10-bit+
data converters.
Vue de la page 4
1 2 3 4 5 6 7 8 9 10 ... 36 37

Commentaires sur ces manuels

Pas de commentaire